[R-SIG-Mac] install of nls.lm failed

joerg van den hoff j.van_den_hoff at fz-rossendorf.de
Wed Jun 29 18:33:08 CEST 2005


hi everybody,

trying to install nls.lm  under R.2.1.0 and Tiger I got:

======================cut============================
* Installing *source* package 'minpack.lm' ...
** libs
g77   -fno-common  -g -O2 -c chkder.f -o chkder.o
g77   -fno-common  -g -O2 -c dogleg.f -o dogleg.o
g77   -fno-common  -g -O2 -c dpmpar.f -o dpmpar.o
g77   -fno-common  -g -O2 -c enorm.f -o enorm.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c fcn_lmder.c -o fcn_lmder.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c fcn_lmdif.c -o fcn_lmdif.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c fcn_message.c -o fcn_message.o
g77   -fno-common  -g -O2 -c fdjac2.f -o fdjac2.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c get_element.c -o get_element.o
g77   -fno-common  -g -O2 -c lmder.f -o lmder.o
g77   -fno-common  -g -O2 -c lmdif.f -o lmdif.o
g77   -fno-common  -g -O2 -c lmpar.f -o lmpar.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c nls_lm.c -o nls_lm.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c prod.c -o prod.o
g77   -fno-common  -g -O2 -c qform.f -o qform.o
g77   -fno-common  -g -O2 -c qrfac.f -o qrfac.o
g77   -fno-common  -g -O2 -c qrsolv.f -o qrsolv.o
g77   -fno-common  -g -O2 -c r1mpyq.f -o r1mpyq.o
g77   -fno-common  -g -O2 -c r1updt.f -o r1updt.o
g77   -fno-common  -g -O2 -c rwupdt.f -o rwupdt.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c transpose.c -o transpose.o
gcc-3.3 -no-cpp-precomp 
-I/Library/Frameworks/R.framework/Resources/include 
-I/usr/local/include   -fno-common  -g -O2 -c vector.c -o vector.o
gcc-3.3 -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o 
minpack.lm.so chkder.o dogleg.o dpmpar.o enorm.o fcn_lmder.o fcn_lmdif.o 
fcn_message.o fdjac2.o get_element.o lmder.o lmdif.o lmpar.o nls_lm.o 
prod.o qform.o qrfac.o qrsolv.o r1mpyq.o r1updt.o rwupdt.o transpose.o 
vector.o -framework vecLib 
-L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -lg2c -lSystem 
-framework R
ld: warning -L: directory name 
(/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2) does not exist
ld: can't locate file for: -lg2c
make: *** [minpack.lm.so] Error 1
ERROR: compilation failed for package 'minpack.lm'
======================cut============================
indeed, (/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2) does not 
exist (rather, there only is a /usr/lib/gcc/powerpc-apple-darwin6.8/4.0.0).

since the library path seems to be set by R CMD INSTALL, not by the 
package content itself (no Makefile ...), I would be grateful if someone 
could help me out: is the lib-path somehow  hardcoded in the binary 
(.dmg) of R?


regards,

joerg



More information about the R-SIG-Mac mailing list