[R] Installing splancs_2.01-9 on Red Hat Linux 7.3

Roger Bivand Roger.Bivand at nhh.no
Fri Sep 6 22:45:34 CEST 2002


On 6 Sep 2002, Steve Kembel wrote:

> Hi all,
> 
> I'm trying to install the splancs contributed package on a Redhat 7.3
> system with R 1.5.1 installed. I've installed the readline41-4.1-10 RPM
> which Redhat requires for R and it works great, thanks very much.

Do you also have readline-devel installed? This has the headers and static 
libraries, etc., and it looks as though it is libreadline.a that is 
missing. It isn't needed by splancs, but is a standard library included in 
the linking phase of building any package with a compiles shared library, 
so installing any such package should give the same error, I think.

Splancs is maintained on an RH7.2 system with gcc-2.96-108.7.2 and 
gcc-g77-2.96-108.7.2, and no such problem has been encountered here.

> 
> However, when I attempt to R CMD INSTALL splancs_2.01-9.tar.gz as root,
> I get the following error message during the install:
> [snip]
> g77   -fPIC  -O2 -m486 -fno-strength-reduce -g -c weight.f -o weight.o
> gcc -shared  -o splancs.so areapl.o cncvwt.o dokhat.o inpip.o ipippa.o
> iplace.o k12hat.o kernel3d.o khvc.o khvmat.o krnnrm.o krnqne.o krnqrt.o
> nndist.o plarea.o ptinpoly.o sekhat.o sort2.o sort.o stkhat.o stsecal.o
> tribble.o twodimmse.o weight.o   -L/usr/local/lib
> -L/usr/lib/gcc-lib/i386-redhat-linux/2.96
> -L/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../.. -lreadline -ldl
> -lncurses -lg2c -lm -L/usr/lib/R/bin -lR
> /usr/bin/ld: cannot find -lreadline
> collect2: ld returned 1 exit status
> make: *** [splancs.so] Error 1
> ERROR: compilation failed for package 'splancs'
> 
> I'm using g77 0.5.26 and gcc 2.96 if that makes any difference. Anyone
> else experience this problem with Redhat 7.x? I would greatly appreciate
> any suggestions.
> 

Roger

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no
and: Department of Geography and Regional Development, University of
Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list