Re: R-beta: linux: problem installing R-base-0.50.a4-1.i386.rpm

Martyn Plummer (plummer@iarc.fr)
Tue, 07 Oct 1997 11:27:56 +0200


Message-Id: <3.0.1.16.19971007112756.0e27a8be@droopy.iarc.fr>
Date: Tue, 07 Oct 1997 11:27:56 +0200
To: "p.baker" <p.baker@fsc.qut.edu.au>,
From: Martyn Plummer <plummer@iarc.fr>
Subject: Re: R-beta: linux: problem installing R-base-0.50.a4-1.i386.rpm

At 20:31 03/10/97, p.baker@fsc.qut.edu.au wrote:

>I just installed R-base-0.50.a4-1.i386.rpm for redhat linux but am missing
>a library file. rpm complained and so does R. When I try to run R I get
>
>/usr/lib/R/bin/R.binary: can't load library 'libf2c.so.0'
>
>What else do I need to install - i have g77 0.5.20 which works fine but
>not f2c as I was advised against installing f2c because of possible
>conflicts. If I need it what version do I need? 
>
>Thanks a lot
>Peter Baker

I have created a new rpm which is statically linked against libf2c and
so doesn't require you to have the shared library installed. It's
called R-base-0.50.a4-2.i386.rpm. You should be able to download it from
a CRAN mirror in a day or two. There is a bug in RedHat Linux 4.0 which
means that even if you have installed the shared f2c libraries (in package
f2c-libs) the file libf2c.so.0 is not created and you get the same error
message. So unless you already know how to get round this problem (not hard,
but tedious, and common on RedHat) use the new version.

When you build R on Linux, the configure script automatically adds f2c to
the list of libraries. This means you must have the static or shared
f2c libraries installed to build R. But I'm wondering why it needs to be
linked to f2c at all. R is not supposed to require a Fortran compiler and,
indeed, it builds quite happily if you  edit the configure script and remove
the line that adds -lf2c to the list of libraries. Moreover the
statically linked version of R.binary is, in fact, smaller that the
dynamically
linked version, which suggests to me that it hasn't taken anything from
libf2c.a, but perhaps I'm being naive here.

Is this a hangover from the time when a Fortran compiler was needed to
build R?

Martyn

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=