Skip to content

Compiling R under Caldera Open Linux 2.2 (PR#260)

2 messages · John Maindonald, Peter Dalgaard

#
To: jnf@pcisys.net
Subject: Compilation of R under Caldera OpenLinux 2.2
....
They are in the file Packages/RPMS/XFree86-devel-3.3.3.1-4.i386.rpm

(On the RedHat 6.0 distribution, there is
XFree86-devel-3.3.3.1-49.i386.rpm
which seems to be a later version.)

----------------------------------------------------------------
I have been wrestling with this also.  I had to install g77 from
the distribution CD, then the above rpm.
Having got this in order, I then received extensive output,
terminated by the following (which I have formatted on to
multiple lines):

gcc -export-dynamic -o ../../bin/R.X11 arithmetic.o array.o attrib.o
 bind.o builtin.o character.o coerce.o colors.o complex.o context.o
 cov.o cum.o debug.o devPS.o devPicTeX.o deparse.o deriv.o devices.o
 dotcode.o dstruct.o duplicate.o envir.o errors.o eval.o format.o
 fourier.o gram.o gram-ex.o graphics.o iosupport.o list.o logic.o
 main.o match.o memory.o model.o names.o objects.o optimize.o
 options.o par.o paste.o platform.o plot.o plot3d.o plotmath.o
 print.o printarray.o printvector.o printutils.o random.o relop.o
 saveload.o scan.o seq.o sort.o source.o split.o subassign.o
 subscript.o subset.o summary.o unique.o util.o version.o
 ../unix/libunix.a ../appl/libappl.a ../nmath/libmath.a -lSM -lICE
 -L/usr/X11R6/lib -lX11 -L/usr/lib/gcc-lib/i386-linux/egcs-2.91.66
 -L/usr/i386-linux/lib -lg2c -lm -lg2c: -ldl -lm
 /usr/i386-linux/bin/ld: cannot open -lg2c: No such file or directory
make[3]: *** [../../bin/R.X11] Error 1 make[3]: Leaving directory
`/home/john/BUILD/src/main' make[2]: *** [R] Error 2 make[2]:
Leaving directory `/home/john/BUILD/src/main' make[1]: *** [R] Error
1 make[1]: Leaving directory `/home/john/BUILD/src' make: *** [R]
Error 1 

I have been unable to find anything on the distribution CD that
might answer to the lg2c.  Any clues would be welcome.

These difficulties aside, the Caldera OpenLinux 2.2 distribution
is much more novice-friendly than RedHat 6.0.  Configuration is
much quicker and more straightforward.


John Maindonald               email : john.maindonald@anu.edu.au        
Statistical Consulting Unit,  phone : (6249)3998        
c/o CMA, SMS,                 fax   : (6249)5549  
John Dedman Mathematical Sciences Building
Australian National University
Canberra ACT 0200
Australia

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
john.maindonald@anu.edu.au writes:
...
Hmm. Redhat has the g2c stuff in 

/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/g2c.h
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/libg2c.a

Generally, the file comes with the EGCS g77 (egcs-g77-1.1.2-12 here).
Try 'locate g2c' and if that fails go through the RPMS on the CD with

rpm -qlp /path/to/RPMS/*.rpm | grep g2c
- except for developers, it would seem....