[R-SIG-Mac] Loading rgl fails on 2.7.0
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Feb 12 12:24:13 CET 2008
You need the development libraries, not just the run-time components.
On Tue, 12 Feb 2008, Michael Kubovy wrote:
> Thanks. I had already tried to install with menu Package & Data:Package
> Installer from CRAN (Sources). That crashed R.
> Now on your advice, I ran
>> install.packages('rgl', type = 'source', lib =
>> '/Library/Frameworks/R.framework/Versions/2.7/Resources/library')
> trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rgl_0.76.tar.gz'
> Content type 'application/x-gzip' length 803143 bytes (784 Kb)
> opened URL
> ==================================================
> downloaded 784 Kb
>
> * Installing *source* package 'rgl' ...
> checking for gcc... gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
> -mmacosx-version-min=10.4 -std=gnu99
>
> <snip>
>
> checking for sys/types.h... rm: conftest.dSYM: is a directory
> rm: conftest.dSYM: is a directory
> yes
>
> <snip>
>
> The downloaded packages are in
> /private/var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-/RtmpkjuNX6/downloaded_packages
> Warning message:
> In install.packages("rgl", type = "source", lib =
> "/Library/Frameworks/R.framework/Versions/2.7/Resources/library") :
> installation of package 'rgl' had non-zero exit status
> yes
> checking png.h usability... no
> checking png.h presence... no
> checking for png.h... no
> checking for png_read_update_info in -lpng... no
> configure: libpng header and lib found
> configure: using libpng dynamic linkage
> checking for X... no
> configure: error: X11 not found but required, configure aborted.
> ERROR: configuration failed for package 'rgl'
> ** Removing
> '/Library/Frameworks/R.framework/Versions/2.7/Resources/library/rgl'
>
> So it's not seeing X11, even though I had it running.
>
> On Feb 12, 2008, at 12:44 AM, Prof Brian Ripley wrote:
>
>> The URL is for a binary package from CRAN.
>>
>> So the 'what I am doing wrong' is attempting to use CRAN binaries with a
>> non-CRAN build of R. I've succeeded with type="source". That repository
>> ('http://cran.r-project.org/bin/macosx/universal/contrib/2.7) is not
>> current -- it has not been touched for 2.5 months.
>>
>> There is no 'R 2.7.0' as yet: this is R-devel and it is somewhat unstable
>> -- there is a new quartz() device and I fixed a segfault since the version
>> mentioned and there are graphics changes in progress that may lead to
>> incorrect output until finished. You should expect to have to install
>> packages from source in the exact R version you use -- that is if you
>> update R-devel you may need to re-install packages. (I only know that to
>> be true of packages providing graphics devices, but the principle is
>> general.)
>>
>> On Mon, 11 Feb 2008, Duncan Murdoch wrote:
>>
>>> On 11/02/2008 9:09 PM, Michael Kubovy wrote:
>>>> Hi,
>>>>
>>>> Can anyone tell me what I'm doing wrong here:
>>>>
>>>>> install.packages('rgl')
>>>> trying URL
>>>> 'http://cran.r-project.org/bin/macosx/universal/contrib/2.7/rgl_0.74.tgz'
>>>> Content type 'application/x-gzip' length 3194464 bytes (3.0 Mb)
>>>> opened URL
>>>> ==================================================
>>>> downloaded 3.0 Mb
>>>>
>>>>
>>>> The downloaded packages are in
>>>> /var/folders/TG/TG6nWu2pHYCI-BdWWiyMxU+++TI/-Tmp-//RtmpHTwuaH/
>>>> downloaded_packages
>>>>
>>>>> require(ca)
>>>> Loading required package: ca
>>>> Loading required package: rgl
>>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>>> unable to load shared library '/Library/Frameworks/R.framework/
>>>> Resources/library/rgl/libs/i386/aglrgl.so':
>>>> dlopen(/Library/Frameworks/R.framework/Resources/library/rgl/libs/
>>>> i386/aglrgl.so, 6): Library not loaded: /Library/Frameworks/
>>>> R.framework/Versions/2.6/Resources/lib/libR.dylib
>>>> Referenced from: /Library/Frameworks/R.framework/Resources/library/
>>>> rgl/libs/i386/aglrgl.so
>>>> Reason: image not found
>>>> Error : .onLoad failed in 'loadNamespace' for 'rgl'
>>>> Error: package 'rgl' could not be loaded
>>>
>>> It looks as though rgl is referencing something from R 2.6. Did you
>>> build rgl, or download a binary?
>>>
>>> Duncan Murdoch
>>>
>>>>
>>>> R version 2.7.0 Under development (unstable) (2008-02-05 r44340)
>>>> i386-apple-darwin8.10.1
>>>>
>>>> locale:
>>>> en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>>>>
>>>> _____________________________
>>>> Professor Michael Kubovy
>>>> University of Virginia
>>>> Department of Psychology
>>>> USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
>>>> Parcels: Room 102 Gilmer Hall
>>>> McCormick Road Charlottesville, VA 22903
>>>> Office: B011 +1-434-982-4729
>>>> Lab: B019 +1-434-982-4751
>>>> Fax: +1-434-982-4766
>>>> WWW: http://www.people.virginia.edu/~mk9y/
>>>>
>>>> _______________________________________________
>>>> R-SIG-Mac mailing list
>>>> R-SIG-Mac at stat.math.ethz.ch
>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac at stat.math.ethz.ch
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>
>>
>> --
>> Brian D. Ripley, ripley at stats.ox.ac.uk
>> Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
>> University of Oxford, Tel: +44 1865 272861 (self)
>> 1 South Parks Road, +44 1865 272866 (PA)
>> Oxford OX1 3TG, UK Fax: +44 1865 272595
>
> _____________________________
> Professor Michael Kubovy
> University of Virginia
> Department of Psychology
> USPS: P.O.Box 400400 Charlottesville, VA 22904-4400
> Parcels: Room 102 Gilmer Hall
> McCormick Road Charlottesville, VA 22903
> Office: B011 +1-434-982-4729
> Lab: B019 +1-434-982-4751
> Fax: +1-434-982-4766
> WWW: http://www.people.virginia.edu/~mk9y/
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-SIG-Mac
mailing list