----- Original Message -----
From: "Noel Yvonnick" <noel at univ-lille3.fr>
To: <r-help at stat.math.ethz.ch>
Sent: Friday, November 09, 2001 10:20 AM
Subject: [R] Installing packages
> Hello,
>
> I have upgraded from Mandrake Linux 8.0 to Mandrake 8.1 and try to
reinstall> my favourite R... Everything is OK for the base software but I have
trouble> to get some packages installed.
>
> Specifically, for some packages, a "collect2" binary seems to be
necessary
> during the compilation/linking process of the library, and LD complains
about> not finding it :
>
> Installing source package `waveslim' ...
> libs
> g77 -fPIC -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586
> -ffast-math -fno-fast-math -c bell-p-w.f -o bell-p-w.o
>
gcc -I/usr/lib/R/include -I/usr/local/include -mieee-fp
-D__NO_MATH_INLINES> -fPIC -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586
> -ffast-math -fno-fast-math -c dwt.c -o dwt.o
>
gcc -I/usr/lib/R/include -I/usr/local/include -mieee-fp
-D__NO_MATH_INLINES> -fPIC -O3 -fomit-frame-pointer -pipe -mcpu=pentiumpro -march=i586
> -ffast-math -fno-fast-math -c hosking.c -o hosking.o
> gcc -shared -o waveslim.so bell-p-w.o dwt.o hosking.o -L/usr/local/lib
> -lg2c -lm -L/usr/lib/gcc-lib/i586-mandrake-linux/2.96
> -L/usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../../../i586-mandrake-linu
x/lib> -L/usr/lib/gcc-lib/i586-mandrake-linux/2.96/../../.. -lm
> /usr/bin/ld: cannot find -lg2c
> collect2: ld returned 1 exit status
> make: *** [waveslim.so] Erreur 1
> ERROR: compilation failed for package `waveslim'
>
looks like your missing the lib g2c. Usually this is called 'f2c'
instead.
check if you have a f2c.so or f2c.a, and symlink this to 'g2c.so' or
'g2c.a'
or change the makefile accordingly
> It seems to be looking for it in usr/lib/gcc-lib/i586-mandrake-linux/2.96
> when it is actually in usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 on my
> system. I tried to set conveniently the LD_LIBRARY_PATH variable, or to
> create a symbolic link "usr/lib/gcc-lib/i586-mandrake-linux/2.96"
to
> usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 but nothing worked.
>
> Note that I have both gcc-2.96 and gcc-3.0 installed, but I don't know
if
it> is part of the problem.
>
> I am no Linux guru and wonder whether some good soul would have a hint...
>
> Thank you very much in advance,
>
> Yvonnick Noel, PhD.
> U. of Lille 3
> Dpt. of Psychology
> FRANCE
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-.-> 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
>
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._