[R] Fortran compilation problem
Philippe Hupé
philippe.hupe at wanadoo.fr
Sun Mar 30 22:16:56 CEST 2003
I have the 1.6.2 version installed on Debian Linux woody (deb packages have
been downloading from CRAN)
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'
More information about the R-help
mailing list