Compilation error on mgcv_1.1-7 on OS X (10.3)
On Mon, 1 Nov 2004, Jon Egil Strand wrote:
I run into a compilation error when updating to mgcv_1.1-7 in R 2.0.0 on OS X 10.3. Note that other pacakges have compiled nicely. Some details are given below, but in short it looks like it's seeking for /usr/local/lib/powerpc-apple-darwin6.8/3.4.2/ which I don't have. But I do have /usr/lib/gcc/darwin/3.3 i.e a lower version of GCC in a different directory. More details at end. I am sorry if this is very easy to configure, but as long as I am unable to do it I will be very grateful for any help. ----------------------------------- Compilation details ----------------------------------- gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include -I/usr/local/include -fno-common -g -O2 -c qp.c -o qp.o gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include -I/usr/local/include -fno-common -g -O2 -c tprs.c -o tprs.o gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o mgcv.so gcv.o magic.o mat.o matrix.o mgcv.o qp.o tprs.o -framework vecLib -L/usr/local/lib -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2/../../.. -lfrtbegin -lg2c -lSystem -lcc_dynamic -framework R ld: warning -L: directory name (/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2) does not exist 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: -lfrtbegin make: *** [mgcv.so] Error 1 ERROR: compilation failed for package 'mgcv'
My guess would be that this package requires G77 in order to link correctly as that library is for Fortran. Install this and try it again. <http://hpc.sf.net/g77v3.4-bin.tar.gz> ---------------------------------------------------------- SIGSIG -- signature too long (core dumped)