[R-SIG-Mac] Oops --- still have problems building R from source.

Berend Hasselman bhh at xs4all.nl
Tue May 25 06:39:44 CEST 2010


On 25-05-2010, at 06:30, Rolf Turner wrote:

> 
> On 25/05/2010, at 4:24 PM, Berend Hasselman wrote:
> 
>> 
>> On 25-05-2010, at 05:54, Rolf Turner wrote:
>> 
>>>   .
>>>   .
>>>   .
>>>> gcc -arch x86_64 -std=gnu99 -I. -I../../../src/include -I../../../src/include   -I/sw/include -I/usr/local/include -DHAVE_CONFIG_H   -fPIC  -g -O2 -c dataentry.c -o dataentry.o
>>>> gcc -arch x86_64 -std=gnu99 -I. -I../../../src/include -I../../../src/include   -I/sw/include -I/usr/local/include -DHAVE_CONFIG_H   -fPIC  -g -O2 -c devX11.c -o devX11.o
>>>> gcc -arch x86_64 -std=gnu99 -I. -I../../../src/include -I../../../src/include   -I/sw/include -I/usr/local/include -DHAVE_CONFIG_H   -fPIC  -g -O2 -c rotated.c -o rotated.o
>>>> gcc -arch x86_64 -std=gnu99 -I. -I../../../src/include -I../../../src/include   -I/sw/include -I/usr/local/include -DHAVE_CONFIG_H   -fPIC  -g -O2 -c rbitmap.c -o rbitmap.o
>>>> gcc -arch x86_64 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names  -undefined dynamic_lookup -single_module -multiply_defined suppress -L/sw/lib -L/usr/local/lib -o R_X11.so dataentry.o devX11.o rotated.o rbitmap.o -lSM -lICE  -lX11 -lXt -lXmu   -L../../../lib -lR   -Wl,-framework -Wl,CoreFoundation
>>>> ld: library not found for -lSM
>>>> collect2: ld returned 1 exit status
>>>> make[4]: *** [R_X11.so] Error 1
>>>> make[3]: *** [R] Error 2
>>>> make[2]: *** [make.X11] Error 2
>>>> make[1]: *** [R] Error 1
>>>> make: *** [R] Error 1
>>> 
>>> Anyone have any ideas as to what I need to do to o'erleap *this* hurdle?
>> 
>> You still seem to have /sw/include and /sw/lib active.
>> 
>> On my Snow Leopard 10.6.3 libSM.dylib is in /usr/X11/lib.
> 
> 
> Not ``still'' actually; ``again''.  I found that when I had /sw moved
> aside there were a couple or three utilities (dos2unix; aspell) that I
> like to use, that were gone.
> 
> So I reinstalled fink, thinking that it was a ***broken*** fink that was
> causing problems, so if I reinstalled it, it wouldn't be broken any more
> and all would be well.
> 
> And things went well up to this point ....
> 
> Is there any way that I can keep /sw around and tell ``make'' not to use it?
> Or something like that.  (Please be monosyllabic!!! :-) )
> 


mv /sw /sw.notused

and edit your Bash .profile to NOT source the init script of Fink (If I remember correctly).
Because that's how the Fink include and lib paths are activated and how Fink modifies your PATH. (I think).

Berend


More information about the R-SIG-Mac mailing list