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. Thank you in advance for the help. Marco ------------------------------------------------------------------------ ----------------- Marco Chiarandini, Fachgebiet Intellektik, Fachbereich Informatik, Technische Universit??t Darmstadt, Hochschulstra??e 10, D-64289 Darmstadt - Germany, Office: S2/02 Raum E317 Tel: +49.(0)6151.166802 Fax: +49.(0)6151.165326 email: machud at intellektik.informatik.tu-darmstadt.de web page: http://www.intellektik.informatik.tu-darmstadt.de/~machud
Problems installing packages on MacOS with R 2.00
4 messages · Brian Ripley, Marco Chiarandini
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
Dear Prof. Ripley,
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 took R from http://cran.at.r-project.org/. True, I did not compiled it: it was the R 2.0.0 (lastest version) bin package. However, I have g77 version 3.4 (October 2003) installed on MacOS. I deleted both -lfrtbegin and -lg2c from FLIBS in /Library/Frameworks/R.framework/Resources/etc/Makeconf and now Hmisc compiles fine. I could not find a directory /usr/local/lib/gcc/powerpc-apple-darwin6.8/ in my installation.
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.
------------------------------------------------------------------- Marco Chiarandini, Fachgebiet Intellektik, Fachbereich Informatik, Technische Universit??t Darmstadt, Hochschulstra??e 10, D-64289 Darmstadt - Germany, Office: S2/02 Raum E317 Tel: +49.(0)6151.166802 Fax: +49.(0)6151.165326 email: machud at intellektik.informatik.tu-darmstadt.de web page: http://www.intellektik.informatik.tu-darmstadt.de/~machud
On Mon, 15 Nov 2004, Marco Chiarandini wrote:
Dear Prof. Ripley,
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 took R from http://cran.at.r-project.org/. True, I did not compiled it: it was the R 2.0.0 (lastest version) bin package. However, I have g77 version 3.4 (October 2003) installed on MacOS.
Which is rather old, and this was looking for 3.4.2 (and 3.4.3 is current). Have you read the posting guide yet?
I deleted both -lfrtbegin and -lg2c from FLIBS in
You can safely delete -lfrtbegin. I don't believe you can safely delete -lg2c, as some packages do need code from it. On my systems that includes acepack, but as you have a system using libR.dylib, it may be that libR.dylib contains the routines that acepack needs from -lg2c.
/Library/Frameworks/R.framework/Resources/etc/Makeconf and now Hmisc compiles fine. I could not find a directory /usr/local/lib/gcc/powerpc-apple-darwin6.8/ in my installation.
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.
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