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
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'' Thanks in advance.
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''
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
Philippe Hup? <philippe.hupe at wanadoo.fr> writes:> I have the 1.6.2 version installed on Debian Linux woody (deb packages have > been downloading from CRAN)Under Debian you should install the r-base-dev package (also available on CRAN) if you wish to compile and install R packages with Fortran or C source code. The r-base-dev package will require several other packages $ dpkg-deb --info r-base-dev_1.6.2-1_all.deb new debian package, version 2.0. size 1628 bytes: control archive= 1256 bytes. 1195 bytes, 25 lines control 269 bytes, 9 lines * postinst #!/bin/sh 425 bytes, 26 lines * preinst #!/bin/sh 202 bytes, 7 lines * prerm #!/bin/sh Package: r-base-dev Version: 1.6.2-1 Section: devel Priority: optional Architecture: all 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 Installed-Size: 32 Maintainer: Dirk Eddelbuettel <edd at debian.org> Source: r-base Description: GNU R installation of auxiliary GNU R packages R is `GNU S'' - A language and environment for statistical computing and graphics. R is similar to the award-winning S system, which was developed at Bell Laboratories by John Chambers et al. It provides a wide variety of statistical and graphical techniques (linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, ...). . R is designed as a true computer language with control-flow constructions for iteration and alternation, and it allows users to add additional functionality by defining new functions. For computationally intensive tasks, C, C++ and Fortran code can be linked and called at run time. . This packages ensures that other Debian packages needed for installation of some auxiliary R packages are installed.
I have installed libreadline4-dev and now it works !! Le Dimanche 30 Mars 2003 21:16, Philippe Hup? a ?crit :> 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'' > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help