[R] Fortran compilation problem
ripley@stats.ox.ac.uk
ripley at stats.ox.ac.uk
Sun Mar 30 21:04:20 CEST 2003
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'
--
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