[R] trouble with library(FEAR) and libgfortran.so.1

John P. Burkett burkett at uri.edu
Sun Sep 25 08:21:47 CEST 2011


Running R version 2.13.1 under Ubuntu 10.10 (kernel version
2.6.35-30-generic) on a x86-64 laptop with gfortran 4.4, I'm trying to
install and use the FEAR package from
http://www.clemson.edu/economics/faculty/wilson/Software/FEAR/fear.html.
I downloaded the the FEAR 1.15 package for 64-bit Linux (compatible with
R-2.12.0 compiled with GCC, GNU Fortran 4.1.2, Linux kernel 2.6.16.60
SMP) to the /home/john/Downloads directory.  The command
install.packages("FEAR-linux-64bit-2.6.16.60-0.21-smp.tar.gz",
repos=NULL, destdir="/home/john/Downloads")
appears to have worked, eliciting the following responses:
Installing package(s) into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
* installing *binary* package ‘FEAR’ ...
* DONE (FEAR)

The command library(FEAR) produced the following response:
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object
'/usr/local/lib/R/site-library/FEAR/libs/FEAR.so':
  libgfortran.so.1: cannot open shared object file: No such file or
directory
Error: package/namespace load failed for 'FEAR'

Doing ls -l in the /usr/local/lib/R/site-library/FEAR/libs directory
produces the following:
total 288
-rwxr-xr-x 1 root staff 292757 2011-09-25 00:24 FEAR.so
The command locate libgfortran.so produces this response:
/home/john/Sage/sage-4.7-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/libgfortran.so.3
/home/john/Sage/sage-4.7-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/libgfortran.so.3.0.0
/usr/lib/libgfortran.so.3
/usr/lib/libgfortran.so.3.0.0
/usr/lib/gcc/x86_64-linux-gnu/4.4/libgfortran.so

It appears to me that R looks for libgfortran.so.1 whereas I have
libgfortran.so.3.  

I would be very grateful for suggestions about how to get R to load the
FEAR package.

-John



More information about the R-help mailing list