Skip to content
Prev 2591 / 63424 Next

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

Thanks for your help.  I loaded XFree86-devel-3.3.3.1-3.i386.rpm from my
OpenLinux CD and as you indicate this solved by X11 include file
problem.

I then encountered the linking same problem as you describe below.  The
error message is saying that the compiler can't find the libg2c library,
which is its runtime library.  Apparently the g77 supplied by Caldera is
missing this important piece.  I downloaded egcs-1.1.2-12.i386.rpm from
the Red Hat web site, then did the following to extract and install
libg2c:

1) rpm2cpio < egcs-1.1.2-12.i386.rpm > egcs-1.1.2-12.cpio

2) cpio -irv \*libg2c.a < egcs-1.1.2-12.cpio
- when prompted to rename it, I entered libg2c.a.  This created the
libg2c archive in my current directory.

3) mv libg2c.a /usr/lib/gcc-lib/i386-linux/egcs-2.91.66

That got past the link error you describe.  I then encountered a whole
series of undefined references to X routines.  I was able to determine
that all the routines exist in the X11 library
/usr/X11R6/lib/libX11.so.6.1 but configure was not setting things up
properly to link that library.  After spending a while trying to figure
out configure (it's pretty confusing besides not handling X well; for
instance --with-x doesn't do anything, and --x-libraries doesn't seem to
do much) I gave up and editted the R-0.64.2/src/main/Makefile directly. 
I added on line 44 "-L /usr/X11R6/lib" before $(DLLFLAGS) and also -lX11
at the end of the line.  After doing that, "make" and "make install"
both completed successfully.

So now I've got R installed successfully.  Its interface is fairly
intimidating.  Are there some examples online that would walk me through
some simple calculations/graphs?

- Jack Fenner
John Maindonald wrote: