[R-SIG-Mac] Fwd: Installing R from source: "../i386/ldpaths: No such file or directory"

Marius Hofert marius.hofert at math.ethz.ch
Sun Oct 2 16:09:08 CEST 2011

Okay, I found out that I have to start R via "R --arch=x86_64", then I can start R. 
I simply created a shell alias and I can now just use "R". 

See also the full post: http://www.mail-archive.com/r-sig-mac@stat.math.ethz.ch/msg02207.html

Begin forwarded message:

> From: Marius Hofert <marius.hofert at math.ethz.ch>
> Subject: Installing R from source: "../i386/ldpaths: No such file or directory"
> Date: 2011-10-02 15:11 
> To: Help R <r-sig-mac at r-project.org>
> Hi,
> I tried to install R from source on a new MacBook Air running 10.7.1. I followed the steps in the R-Faq and did:
> (1) installed Xcode 4.1
> (2) installed a *corresponding* Fortran compiler from
> http://r.research.att.com/tools -> "Apple Xcode gcc-42 add-ons" [the
> correct version for Xcode 4.1 on Lion was gfortran-lion-5666-3.pkg]
> (3.1) downloaded and unpacked the latest R sources from CRAN (R-2.13.2.tar.gz)
> cd ~/Downloads
> (3.2) chose the architecture (x86_64, i386, ppc or ppc64):
> arch=x86_64
> (3.3) created a build directory 
> mkdir build
> cd build
> (3.4) configured R
> ../R-2.13.2/configure r_arch=$arch  CC="gcc -arch $arch" \
>     CXX="g++ -arch $arch" F77="gfortran -arch $arch" \
>     FC="gfortran -arch $arch" OBJC="gcc -arch $arch" \
>     --x-includes=/usr/X11/include --x-libraries=/usr/X11/lib \
>     --with-blas='-framework vecLib' --enable-BLAS-shlib --with-lapack
> (3.5) built R
> make -j8
> (3.6) installed R in /Library/Frameworks
> sudo make install
> (4) made R visible from the command line
> sudo ln -s /Library/Frameworks/R.framework/Resources/R /usr/local/bin/R 
> Executing R in the shell (even after restart) brought:
> bash-3.2$ R
> /usr/local/bin/R: line 229: /Library/Frameworks/R.framework/Resources/etc/i386/ldpaths: No such file or directory
> I found a similar something similar on https://stat.ethz.ch/pipermail/r-help/2007-December/147771.html but it was not answered. 
> I check with the installation (from binaries) on another Mac. There the folder /Library/Frameworks/R.framework/Resources/etc contains "i386", "repositories", and "x86_64", but for the new installation, I only found subdirectories "repositories" and "x86_64". 
> Cheers,
> Marius

More information about the R-SIG-Mac mailing list