[R] Solved: Fortran compilation error

From: Brian Beckage <Brian.Beckage_at_uvm.edu>
Date: Sat 11 Jun 2005 - 03:33:16 EST

I solved this problem by installing a newer version of the fortran (g77 3.4) compiler from hpc.sourceforge.net into usr/local.


At 12:49 PM -0400 6/10/05, Brian Beckage wrote:
>I'm trying to install a package that requires a Fortran compiler
>(Hmisc) using R CMD INSTALL. I downloaded the package source onto my
>Desktop, unzipped it, and then typed:
>R CMD INSTALL /Users/brianbeckage/Desktop/Hmisc
>* Installing *source* package 'Hmisc' ...
>** libs
>g77 -fno-common -g -O2 -c cidxcn.f -o cidxcn.o
>g77 -fno-common -g -O2 -c cidxcp.f -o cidxcp.o
>g77 -fno-common -g -O2 -c hoeffd.f -o hoeffd.o
>g77 -fno-common -g -O2 -c jacklins.f -o jacklins.o
>g77 -fno-common -g -O2 -c largrec.f -o largrec.o
>gcc-3.3 -no-cpp-precomp
>-I/usr/local/include -fno-common -g -O2 -c ranksort.c -o ranksort.o
>g77 -fno-common -g -O2 -c rcorr.f -o rcorr.o
>g77 -fno-common -g -O2 -c wclosest.f -o wclosest.o
>gcc-3.3 -bundle -flat_namespace -undefined suppress -L/usr/local/lib
>-o Hmisc.so cidxcn.o cidxcp.o hoeffd.o jacklins.o largrec.o
>ranksort.o rcorr.o wclosest.o
>-L/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.4.2 -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: can't locate file for: -lg2c
>make: *** [Hmisc.so] Error 1
>ERROR: compilation failed for package 'Hmisc'
>** Removing
>** Restoring previous
>Any ideas as to what file -lg2c represents and how I correct this?
>I'm running R 2.1.0 Patched under OSX 10.3.9.
>Brian Beckage
>Department of Botany
>University of Vermont
>Marsh Life Science Building
>Burlington, VT 05405
>Phone: 802 656-0197
>Fax : 802 656-0440
>email: Brian.Beckage@uvm.edu
>web : www.uvm.edu/~bbeckage
>R-help@stat.math.ethz.ch mailing list
>PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Brian Beckage
Department of Botany
University of Vermont
Marsh Life Science Building
Burlington, VT 05405

Phone:  802 656-0197
Fax  :  802 656-0440
email:  Brian.Beckage@uvm.edu
web  :  www.uvm.edu/~bbeckage

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sat Jun 11 03:56:47 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:30 EST