[Rd] jpeg() and png() in R-2.4.x (PR#9423)

Hin-Tak Leung hin-tak.leung at cimr.cam.ac.uk
Thu Dec 21 13:32:05 CET 2006


Hi Sophie,

(It is not good to abuse the bug system to asking for help that way...
as others no doubt has already written. R-help may be a more
appropriate channel for your questions)

One possibility is your "linux - mandriva 2007 - 64bits"
assertion. I don't use Mandriva myself (my work machine is fedora
6 and home slackware 11), but I had a copy of the Mandriva 2007 
powerplus pack (the "everything+open+proprietary" pack) directly
from one of Mandriva's own technical staff in the last linux-related
conference I went to, because a french collegue of mine wants the
powerplus pack :-).

My french colleague found something quite strange about the mandriva 
pack - all the rpms are listed as for i586 architecture; the readme says
the DVDs are dual-arch and would work on opterons... I don't have access 
to a running Mandriva system, and my french colleague had opted for 
Ubuntu in the end (and it isn't an important/interesting-enough question
I want to ask my mandriva contact directly - one learns not to abuse
useful resources :-) ...), so maybe you can tell me if Mandriva 2007
on opteron is truly dual-arch. I would like to see your output of
"file /usr/lib*/libjpeg*" . Here is mine:

$file /usr/lib*/libjpeg*
/usr/lib64/libjpeg.so:        symbolic link to `libjpeg.so.62.0.0'
/usr/lib64/libjpeg.so.62:     symbolic link to `libjpeg.so.62.0.0'
/usr/lib64/libjpeg.so.62.0.0: ELF 64-bit LSB shared object, AMD x86-64, 
version 1 (SYSV), stripped
/usr/lib/libjpeg.so:          symbolic link to `libjpeg.so.62'
/usr/lib/libjpeg.so.62:       symbolic link to `libjpeg.so.62.0.0'
/usr/lib/libjpeg.so.62.0.0:   ELF 32-bit LSB shared object, Intel 80386, 
version 1 (SYSV), stripped

and your "file /usr/lib*/R/lib/*" output (or equivalent where you 
install your R 2.4 and R 2.3). Here is mine (I have both 32-bit R
and 64-bit R on my system):

$ file /usr/lib*/R/lib/*
/usr/lib64/R/lib/libRblas.so:   ELF 64-bit LSB shared object, AMD 
x86-64, version 1 (SYSV), stripped
/usr/lib64/R/lib/libRlapack.so: ELF 64-bit LSB shared object, AMD 
x86-64, version 1 (SYSV), stripped
/usr/lib64/R/lib/libR.so:       ELF 64-bit LSB shared object, AMD 
x86-64, version 1 (SYSV), stripped
/usr/lib/R/lib/libRblas.so:     ELF 32-bit LSB shared object, Intel 
80386, version 1 (SYSV), stripped
/usr/lib/R/lib/libRlapack.so:   ELF 32-bit LSB shared object, Intel 
80386, version 1 (SYSV), stripped
/usr/lib/R/lib/libR.so:         ELF 32-bit LSB shared object, Intel 
80386, version 1 (SYSV), stripped

One possibility is that your R 2.3 is 32-bit and you just have 32-bits 
of everything and limited 64-bit support. (and you want to talk to 
Mandriva and/or dig out your mandriva DVD if such is that case).

Good luck.

Hin-Tak Leung

ripley at stats.ox.ac.uk wrote:
> The file INSTALL says
> 
>    The main source of information on installation is the `R Installation
>    and Administration Manual', an HTML copy of which is available as file
>    `doc/html/R-admin.html'.  Please read that before installing R.  But
>    if you are impatient, read on but please refer to the manual to
>    resolve any problems.  (If you obtained R using Subversion, the manual
>    is at doc/manual/R-admin.texi.)
> 
> I suspect this was an installation problem, in which case it is covered in 
> that manual.  Configure reports on the capabilities it found, e.g.
> 
>    Interfaces supported:      X11, tcltk
>    External libraries:        readline
>    Additional capabilities:   PNG, JPEG, iconv, MBCS, NLS
>    Options enabled:           shared BLAS, R profiling, Java
> 
> and you have not told us what your build reported.
> 
> An alternative is covered by ?capabilities
> 
>       X11: (Unix)  Are the 'X11' graphics device and the X11-based data
>            editor available?  This loads the X11 module if not already
>            loaded, and checks that the default display can be contacted
>            unless a 'X11' device has already been used.
> 
> which if false will imply that jpeg and png are not available (but tcltk 
> could be).
> 
> You need to demonstrate that this really is a bug in R and not a 
> mis-report using scarce resources (R-core time).  (The R build not 
> magically finding missing components of your OS is not a bug.)
> 
> 
> On Wed, 20 Dec 2006, sophie.martin at actigenics.com wrote:
> 
>> I have tried to install R-2.4.x on my computer (linux - mandriva 2007 -
>> 64bits), with tar file for R-4.2.1 and rpm file for R-2.4.0, and
>> function capabilities() says to me that JPG, PNG and TCLTK are not
>> available. However, with the version R-2.3.x with whicc I work , they
>> are available.
>> May be it's a bug, or may be my mandriva 2007 distribution are not all
>> required libraries ? But I have not find "REQUIREMENTS" files on the
>> CRAN site to verify that.
>>
>> Thanks for your help,
>>
>> Sophie Martin
>



More information about the R-devel mailing list