[R] trouble with library(FEAR) and libgfortran.so.1
John P. Burkett
burkett at uri.edu
Sun Sep 25 19:20:12 CEST 2011
On 09/25/2011 02:56 AM, Mario Valle wrote:
> 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
Thank you, Mario, for you prompt and thoughtful response. Following
your suggestion (1), I created a symbolic link, started R, and gave the
command library(FEAR). The output this time did not mention any trouble
finding libgfortran.so.1. So, the link appears to work. However the
output points to new problems:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
/usr/local/lib/R/site-library/FEAR/libs/FEAR.so: undefined symbol:
Error: package/namespace load failed for 'FEAR'
nm shows that the file FEAR.so contains the symbol _gfortran_pow_r8_i4.
According to an earlier comment by Jane Blomqvist, this symbol was
removed from the gfortran library starting with the 4.3 release. So, I
suspect the current version of FEAR just won't work with gfortran 4.4.
Reluctant to downgrade my version of gfortran, I'll try asking the FEAR
package manager about the prospects for a new version of FEAR compiled
with a recent version of gfortran.
> 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
>> 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 126.96.36.199
>> SMP) to the /home/john/Downloads directory. The command
>> 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
>> libgfortran.so.1: cannot open shared object file: No such file or
>> 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:
>> It appears to me that R looks for libgfortran.so.1 whereas I have
>> I would be very grateful for suggestions about how to get R to load the
>> FEAR package.
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide
>> and provide commented, minimal, self-contained, reproducible code.
John P. Burkett
Department of Economics
University of Rhode Island
Kingston, RI 02881-0808
phone (401) 874-9195
More information about the R-help