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
mario

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':
  /usr/local/lib/R/site-library/FEAR/libs/FEAR.so: undefined symbol:
_gfortran_pow_r8_i4
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.

Best regards,
John







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@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.



--
John P. Burkett
Department of Economics
University of Rhode Island
Kingston, RI 02881-0808
USA

phone (401) 874-9195

______________________________________________
R-help@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.

Reply via email to