[R] Fortran compilation problem

Dirk Eddelbuettel edd at debian.org
Sun Mar 30 22:19:00 CEST 2003


On Sun, Mar 30, 2003 at 09:16:56PM +0100, Philippe Hup? wrote:
> I have the 1.6.2 version installed on Debian Linux woody (deb packages have 
> been downloading from CRAN)

Please install r-base-dev, which via its Depends ensures that you get what
is required for the most common situations:

   Package: r-base-dev
   [...]
   Depends: r-base-core, blas-dev (>= 1.0-9), build-essential, g77 | \
   g77-3.0 | f2c | fortran77-compiler , gcc | gcc-3.0 | c-compiler, \
   g++ | g++-3.0, libncurses5-dev, libreadline4-dev

In particular, this ensure presence of compilers for C, C++, and Fortan as
well as header file packages for curses and readline.

Dirk

> Le Dimanche 30 Mars 2003 20:04, ripley at stats.ox.ac.uk a ?crit :
> > You have not given us even minimal information (R version, platform, etc).
> >
> > My guess is that you installed R from an RPM, and you do not have
> > (something like) readline-devel installed.  However, this is easily fixed
> > by editing R_HOME/etc/Makeconf and removing '-lreadline -ldl -lncurses'
> > from the FLIBS macro.
> >
> > This has come up many times, so a search of the archives should be
> > revealing.
> >
> > On Sun, 30 Mar 2003, Philippe Hup? wrote:
> > > Hello,
> > >
> > > I have problem when i am trying to install a package containing fortran
> > > source code. I give below the result of installation for one package (I
> > > have always the same message : /usr/bin/ld: can not find  -lreadline):
> > >
> > > g77 -mieee-fp  -fPIC  -g -O2 -c akima.new.f -o akima.new.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idbvip.f -o idbvip.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idcldp.f -o idcldp.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idgrid.f -o idgrid.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idlctn.f -o idlctn.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idpdrv.f -o idpdrv.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idptip.f -o idptip.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idptli.f -o idptli.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idsfft.f -o idsfft.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idtang.f -o idtang.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c idxchg.f -o idxchg.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c tripack.f -o tripack.o
> > > g77 -mieee-fp  -fPIC  -g -O2 -c ttidbs.f -o ttidbs.o
> > > gcc -shared  -o akima.so akima.new.o idbvip.o idcldp.o idgrid.o idlctn.o
> > > idpdrv.o idptip.o idptli.o idsfft.o idtang.o idxchg.o tripack.o ttidbs.o
> > > -L/usr/lib/gcc-lib/i386-linux/2.95.4 -lreadline -ldl -lncurses -lg2c-pic
> > > -lm -L/usr/lib/R/bin -lR
> > > /usr/bin/ld: can not find  -lreadline
> > > collect2: ld returned 1 exit status
> > > make: *** [akima.so] Erreur 1
> > > ERROR: compilation failed for package 'akima'
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

-- 
Wishful thinking can dominate much of the work of a profession for a decade,
but not indefinitely.   -- Robert Shiller, on Efficient Markets models, 2002



More information about the R-help mailing list