john.maindonald@anu.edu.au
1999-Aug-29 09:38 UTC
Compiling R under Caldera Open Linux 2.2 (PR#260)
To: jnf@pcisys.net Subject: Compilation of R under Caldera OpenLinux 2.2> On Sat, 28 Aug 1999 jnf@pcisys.net wrote: > > > > I am attempting to compile R-0.64.2 under Caldera OpenLinux 2.2. I have > > KDE installed but not gnome. When I ran configure, it correctly > > indicated that gnome is not installed. However when I then ran make, I > > received errors complaining that the include file X11/X.h and similar > > are not found.....> However, you do have X11 on your machine if you have KDE, and you > definitely do want to use X11 in R to get graphics. > > You may not have the X11 header files installed -- they should be > somewhere under /usr/X11 or /usr/include/X11. If the header files aren't > installed then you will need to install them. They will be on your > distribution CD, perhaps in a package called something like x-devel.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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
1999-Aug-29 10:59 UTC
Compiling R under Caldera Open Linux 2.2 (PR#260)
john.maindonald@anu.edu.au writes:> -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...> I have been unable to find anything on the distribution CD that > might answer to the lg2c. Any clues would be welcome.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> 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.- except for developers, it would seem.... -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._