On Sat, 16 Dec 2000, Jonathan Myles wrote:
> Working on a Red Hat (not Mandrake) Linux
> and trying to load my library I get
>
> (sorry, can't copy it all, working remotely)
>
> gcc -shared -o .....
>
> /user/bin/ld: cannot find -lg2c
>
> Does anyone know what the g2c library iss, and if I can download and
> compile it for Red Hat
>
> (I definitely didn't mean to type f2c
> in the above)
It should be part of the egcs-g77 rpm: it is the modified libf2c used by
g77. We've seen this missing on Caldera systems, but not RedHat ones.
It lives in the gcc-lib dir, e.g. (RH6.2)
blackcap% ls /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66:
SYSCALLS.c.X collect2* crtend.o libg2c.a libstdc++.a@
cc1* cpp* crtendS.o libgcc.a libstdc++.so@
cc1obj* crtbegin.o f771* libgcc.map specs
blackcap% rpm -qf /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libg2c.a
egcs-g77-1.1.2-30
You do have egcs-g77 installed? (Might have a different name on 7.0.)
What version of R, BTW? Prior to 1.2.0 I believe you needed egcs-g77
installed to build a package with C code, as $(FLIBS) was invoked,
but this should not be the case with 1.2.0 (once RPMs are available).
--
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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._