[R-SIG-Mac] fail to install packages from source on OSX 10.9

Randy Lai randy.cs.lai at gmail.com
Wed Oct 23 16:07:06 CEST 2013


Sorry of sending this again.
I forgot to say that I am using R 3.0.2 on OSX 10.9

I tried several packages including MASS, mvtnorm,...
However, this should be related to https://bugs.launchpad.net/raspbian/+bug/1007014
PS: I have edited /Library/Frameworks/R.framework/Versions/3.0/Resources/etc/Makeconf for CC and fortran compilers.


install.packages("MASS", type="source")
trying URL 'http://cran.us.r-project.org/src/contrib/MASS_7.3-29.tar.gz'
Content type 'application/x-gzip' length 485067 bytes (473 Kb)
opened URL
==================================================
downloaded 473 Kb

* installing *source* package ‘MASS’ ...
** package ‘MASS’ successfully unpacked and MD5 sums checked
** libs
gcc-4.7 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include    -fPIC  -mtune=core2 -g -O2  -c MASS.c -o MASS.o
gcc-4.7 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include    -fPIC  -mtune=core2 -g -O2  -c lqs.c -o lqs.o
gcc-4.7 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -L/usr/local/lib -o MASS.so MASS.o lqs.o SHLIB_LIBADD = -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
gcc-4.7: error: SHLIB_LIBADD: No such file or directory
gcc-4.7: error: =: No such file or directory
make: *** [MASS.so] Error 1
ERROR: compilation failed for package ‘MASS’
* removing ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/MASS’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/MASS’

The downloaded source packages are in
	‘/private/var/folders/w9/7w10svxj5093z4831n7m27w00000gp/T/RtmpJ22Kbt/downloaded_packages’
Warning message:
In install.packages("MASS", type = "source") :
 installation of package ‘MASS’ had non-zero exit status




install.packages("mvtnorm", type="source")
trying URL 'http://cran.us.r-project.org/src/contrib/mvtnorm_0.9-9996.tar.gz'
Content type 'application/x-gzip' length 140034 bytes (136 Kb)
opened URL
==================================================
downloaded 136 Kb

* installing *source* package ‘mvtnorm’ ...
** package ‘mvtnorm’ successfully unpacked and MD5 sums checked
** libs
gcc-4.7 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include    -fPIC  -mtune=core2 -g -O2  -c miwa.c -o miwa.o
gfortran -arch x86_64   -fPIC  -g -O2  -c mvt.f -o mvt.o
gcc-4.7 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include    -fPIC  -mtune=core2 -g -O2  -c randomF77.c -o randomF77.o
gfortran -arch x86_64   -fPIC  -g -O2  -c tvpack.f -o tvpack.o
gcc-4.7 -arch x86_64 -std=gnu99 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG  -I/usr/local/include    -fPIC  -mtune=core2 -g -O2  -c tvpackAux.c -o tvpackAux.o
gcc-4.7 -arch x86_64 -std=gnu99 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -L/usr/local/lib -o mvtnorm.so miwa.o mvt.o randomF77.o tvpack.o tvpackAux.o SHLIB_LIBADD = -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64 -L/usr/local/lib/x86_64 -L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3 -lgfortran -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
gcc-4.7: error: SHLIB_LIBADD: No such file or directory
gcc-4.7: error: =: No such file or directory
make: *** [mvtnorm.so] Error 1
ERROR: compilation failed for package ‘mvtnorm’
* removing ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/mvtnorm’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.0/Resources/library/mvtnorm’

The downloaded source packages are in
	‘/private/var/folders/w9/7w10svxj5093z4831n7m27w00000gp/T/RtmpJ22Kbt/downloaded_packages’
Warning message:
In install.packages("mvtnorm", type = "source") :
 installation of package ‘mvtnorm’ had non-zero exit status


More information about the R-SIG-Mac mailing list