Hello,
Here is a problem I have had trying to install locfit, the package for
R.
I have already contacted Clive Loader who thinks the problem has more to
do with R than locfit, so here is the point :
The version of R I am currently running is R-base-0.90 that I installed
using the R-base-0.90.1-1.i386.rpm package.
I dowloaded the locfit package available at the CRAN site and ran : R
INSTALL locfit_1.00.tar.gz.
During the installation I receive the following message :
Installing package `locfit' ...
libs
gcc -I/usr/lib/R/include -I/usr/lib/R/include/R_ext -mieee-fp -fPIC
-O2 -m486 -fno-strength-reduce -g -c S_enter.c -o S_enter.o
S_enter.c: In function `basis': S_enter.c:39: warning: passing arg 3 of
`call_R' from incompatible pointer type
gcc -I/usr/lib/R/include -I/usr/lib/R/include/R_ext -mieee-fp -fPIC
-O2 -m486 -fno-strength-reduce -g -c adap.c -o adap.o
gcc -I/usr/lib/R/include -I/usr/lib/R/include/R_ext -mieee-fp -fPIC
-O2 -m486 -fno-strength-reduce -g -c band.c -o band.o
...
IT SEEMS THUS TO WORK FINE UNTIL :
...
gcc -I/usr/lib/R/include -I/usr/lib/R/include/R_ext -mieee-fp -fPIC
-O2 -m486 -fno-strength-reduce -g -c weight.c -o weight.o
gcc -shared -o /usr/lib/R/library/locfit/libs/locfit.so S_enter.o
adap.o band.o density.o family.o fitted.o frend.o kappa0.o kdtree.o
lfstr.o linalg.o locfit.o math.o minmax.o nbhd.o odint.o pcomp.o
preplot.o random.o scbmax.o simul.o startlf.o vari.o wdiag.o weight.o
-L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66
-L/usr/i386-redhat-linux/lib -lg2c -lm
/usr/bin/ld: cannot open -lg2c: No such file or directory <------ HERE
IS WHERE IT REALLY SEEMS TO HAVE PROBLEMS
collect2: ld returned 1 exit status
make: *** [/usr/lib/R/library/locfit/libs/locfit.so] Error 1
R
data
help
>>> Building/Updating help pages for package `locfit'
Formats: text html latex example
aic text html latex
aicplot text html latex example
....
THE REST IS FINE
I have tried to change my R version by upgrading to R-base-0.99 by using
the R-base-0.99.0-4.i386.rpm. But this just does not seem to change
anything !
Since I am very far from being a computer expert, I would be happy to
understand why it just does not work. And even more happy to have it
work.
It looks like all this is caused by the absence of some libraries.
But what should I do then ? I could not find anything called lg2c or g2c
anywhere in the redHat site. Perhaps didn't I look enough ?
Thank you very much in advance for your help.
I am sorry to bother whoever may read this but I spent a whole day
trying different things before contacting this list.
Lounes Chikhi
Queen Mary and Westfield College
London,
UK
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._