[R-SIG-Mac] make install fails
Simon Urbanek
simon.urbanek at r-project.org
Tue Dec 1 17:29:45 CET 2009
Kasper,
On Dec 1, 2009, at 9:46 , Kasper Daniel Hansen wrote:
> Fresh R-devel (as well as R-2.10) on a fresh install of Snow Leopard
> (not an upgrade). Using Xcode 3.2.1. Building in a separate
> directory from the source.
>
> ../R-devel-src/configure $OPTIONS
> make
> sudo make install
>
> The sudo make install fails with
>
> <SNIP>
> mkdir /Library/Frameworks/R.framework/Versions/2.11/Resources/share/
> locale/en at quot/LC_MESSAGES
> en at quot
> make -f ../R-devel-src/Makefile.fw top_srcdir=../R-devel-src install
> Creating R framework ...
> /bin/bash: line 0: cd: /Library/Frameworks/R.framework/Resources/
> lib: No such file or directory
> make[1]: *** [install-R-framework] Error 1
> make: *** [install] Error 2
>
> This setup worked (on Leopard) when I had installed the CRAN binary
> and then compiled R-devel myself. My guess is that something is up
> with the install script, but that it only gets triggered in this
> specific case (fresh install).
>
Not for me - I have just tried exactly your script on a clean 10.6.2
system and it worked without problems...
> My $OPTIONS are
> ../${SRCDIR}/configure SHELL='/bin/bash' \
> r_arch=x86_64 \
> CC="/usr/bin/gcc-4.2 -arch x86_64 -std=gnu99" \
> CFLAGS="-g -O2 -std=gnu99 -march=nocona" \
> CXX="/usr/bin/g++-4.2 -arch x86_64" \
> CXXFLAGS="-g -O2 -march=nocona" \
> OBJC="/usr/bin/gcc-4.2 -arch x86_64" \
> F77="/usr/bin/gfortran-4.2 -arch x86_64" \
> FFLAGS="-g -O2 -march=nocona" \
> FC="/usr/bin/gfortran-4.2 -arch x86_64" \
> FCFLAGS="-g -O2 -march=nocona" \
> --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib \
> --with-system-zlib \
> --with-blas='-framework vecLib' --with-lapack
>
> The offending line is line 36
> 35 @## the resulting libR will point dyld to the fat libR
> regardless of its origin
> 36 (part of) @(cd "$(R_FRAMEWORK_DIR)/Resources/lib" && \
>
> $R_FRAMEWORK_DIR/Resources exists, but does not have a "lib" subdir.
>
> My guess is that the cd command ought to be cd $(R_FRAMEWORK_DIR)/
> Libraries instead of $(R_FRAMEWORK_DIR)/Resources/lib
>
Wrong guess (Libraries is a symlink to lib). "lib" should be there
from the install target.
Can you, please, send me the output of
ls -l /Library/Frameworks/R.framework
ls -l /Library/Frameworks/R.framework/Versions
ls -l /Library/Frameworks/R.framework/Versions/2.11
ls -l /Library/Frameworks/R.framework/Versions/2.11/Resources
Thanks,
Simon
> I'll keep away from my system for some hours in case someone wants
> me to probe deeper and/or test.
>
> Kasper
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
More information about the R-SIG-Mac
mailing list