[R-SIG-Mac] make install fails

Kasper Daniel Hansen khansen at stat.berkeley.edu
Tue Dec 1 15:46:19 CET 2009

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
sudo make install

The sudo make install fails with

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).

../${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

I'll keep away from my system for some hours in case someone wants me to probe deeper and/or test.


More information about the R-SIG-Mac mailing list