[R-SIG-Mac] X11 missing? ... was Re: [R] rgl persp3d bounding box color problem.
Kasper Daniel Hansen
khansen at stat.berkeley.edu
Wed Mar 4 07:31:05 CET 2009
Regarding PATH and R.app. It is a well-known issue on OS X that R.app
does not inherit the environment variables set in the shell (for
example in ~/.profile or ~/.bashrc).
For example, it is complete standard that you get different output from
# echo $PATH
The easiest way to fix this is to set the environment variable using
the ~/.Rprofile and set it for example by
Sys.setenv(PATH = "SOMETHING")
It can also be fixed by editing environment.plist (do a Google search
On Mar 3, 2009, at 20:14 , Duncan Murdoch wrote:
> On 03/03/2009 6:40 PM, Rob Goedman wrote:
>> I did notice in your log.txt file the following message:
>> ld warning: in /usr/local/lib/libfreetype.dylib, missing required
>> architecture x86_64 in file
>> It seems a bit far fetched for the missing symbol to come from
>> that library though (but this is a
> I think it probably did -- the FT symbols are FreeType, used by rgl
> to draw nice fonts.
> But I don't know how to fix this, other than configuring without
> Freetype (and so without nice fonts).
> Duncan Murdoch
>> As I normally work on R-2.9, I just went back to R-2.8.1 and tried
>> the terminal procedure.
>> Got the rgl examples running without problems. So that is not the
>> cause of the error message either.
>> I also noticed you are using the latest rgl from R-Forge (83-751),
>> while I was using 83-3.
>> Both versions work on my system.
>> If someone could help out where _FT_Attach_File comes from ...
>> On Mar 3, 2009, at 2:48 PM, David Winsemius wrote:
>>> Tried that method:
>>> The compilation proceeded without error and was reported:
>>> <snip quite a bit of material attached as rgl-compile.log>
>>> ** building package indices ...
>>> * DONE (rgl)
>>> However, in R refreshing the Package Manager and attempting to
>>> load rgl fails to load with this error report:
>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>> unable to load shared library '/Users/davidwinsemius/Library/R/
>>> 2.8/ library/rgl/libs/x86_64/rgl.so':
>>> x86_64/ rgl.so, 6): Symbol not found: _FT_Attach_File
>>> Referenced from: /Users/davidwinsemius/Library/R/2.8/library/rgl/
>>> Expected in: dynamic lookup
>>> Error : .onLoad failed in 'loadNamespace' for 'rgl'
>>> Error: package/namespace load failed for 'rgl'
>>> -- thanks for all the eyeballs and ideas
>>> David Winsemius
>>> On Mar 3, 2009, at 5:16 PM, Rob Goedman wrote:
>>>> On my system libpng-config and xmkmf are in /usr/X11/bin, as on
>>>> your system.
>>>> Adding /usr/X11/bin to my path did not help. I think /usr/X11R6
>>>> is just a link back to /usr/X11.
>>>> Did you try the terminal suggestion?
>>>> Download rgl_0.83-3.tar.gz from CRAN, then in a terminal
>>>> Robs-Intel:~ rob$ pwd
>>>> Robs-Intel:~ rob$ cd Downloads/ # To wherever the
>>>> rgl.....tar.gz got stored
>>>> Robs-Intel:Downloads rob$ ls
>>>> Robs-Intel:Downloads rob$ R_ARCH=/x86_64 R CMD INSTALL --
>>>> configure- args='--disable-carbon' rgl_0.83-3.tar.gz
>>>> * Installing to library ‘/Library/Frameworks/R.framework/
>>>> Resources/ library’
>>>> * Installing *source* package ‘rgl’ ...
>>>> checking for gcc... gcc-4.2 -arch x86_64 -std=gnu99
>>>> checking for C compiler default output file name... a.out
>>>> checking whether the C compiler works... yes
>>>> checking whether we are cross compiling... no
>>>> I know, it is not the ultimate solution, but it might help to
>>>> know this works on your system.
>> R-SIG-Mac mailing list
>> R-SIG-Mac at stat.math.ethz.ch
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
More information about the R-SIG-Mac