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

Mario Valle mvalle at cscs.ch
Sun Sep 25 08:56:56 CEST 2011


1) you can try to make a symbolic link to libgfortran.so.3 and call it 
libgfortran.so.1 Sometimes it works.
2) you can try to downgrade your version of gfortran
3) you can ask to the package maintainer to recompile FEAR with a more 
modern gfortran.
Hope it helps
                                     mario

On 25-Sep-11 08:21, John P. Burkett wrote:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Ing. Mario Valle
Data Analysis and Visualization Group            | http://www.cscs.ch/~mvalle
Swiss National Supercomputing Centre (CSCS)      | Tel:  +41 (91) 610.82.60
v. Cantonale Galleria 2, 6928 Manno, Switzerland | Fax:  +41 (91) 610.82.82



More information about the R-help mailing list