[R] Problems installing packages on MacOS with R 2.00

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Nov 15 10:54:15 CET 2004


It is R 2.0.0!  Your problem is that you do not have g77 installed, or at 
least, not the same version as was used to compile your version of R.
(Please do read the posting guide and tell us where you got R from -- I 
suspect you did not compile it yourself.)

I think this should be in the MacOS X FAQ, but unfortunately the version 
on CRAN linked from the sidebar and the main FAQ at

    http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html

is for R 1.9.1, not 2.0.0.  Did your installation come with a current 
version?

However, a further problem is that many packages which use Fortran code 
cannot be compiled for MacOS X as it does not have a shared Fortran 
run-time library.  So I suspect that if you do install g77-3.4.2 you will 
find that you cannot compile package acepack, and that is why no 
pre-compiled version of the package is available.


On Mon, 15 Nov 2004, Marco Chiarandini wrote:

> Dear all,
>
> I have a problem installing a package required by Hmisc on MacOS 10.3.5 with 
> R 2.00.
>
> g77   -fno-common  -g -O2 -c avas.f -o avas.o
> g77   -fno-common  -g -O2 -c rlsmo.f -o rlsmo.o
> gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o 
> acepack.so ace.o avas.o rlsmo.o  -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: *** [acepack.so] Error 1
> ERROR: compilation failed for package 'acepack'
>
> I found on the Internet a fix for R 1.8 which suggests to delete the 
> -lfrtbegin library from /Applications/StartR.app/RAqua.app/Contents/etc but 
> this path does not exists anymore on R 2.00.
>
> How could I solve the problem.

> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

PLEASE do!


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list