[R] Problem Installing a local package in linux
paul.hiemstra at knmi.nl
Thu Oct 27 15:34:03 CEST 2011
Yea Linux! I think you are missing a library file (libgfortran.so.1),
you can use locate to try and find the so file, in bash type:
Now three things can happen:
- It doesn't find anything, than you need to install an additional
gfortran package. This is often called libgfortran-dev or something (at
least it is called this way in debian and ubuntu). This installs
development files, including libgfortran.so
- It finds a file called libgfotran.so.something but not .so.1. So you
have the file, but it is not named correctly. Easiest solution is to
create a symbolic link called libgfortran.so.1 to
libgfortran.so.something and loading the library in R
- It finds the correct file. Could be that the file is not in your PATH.
Add the location of the file (the directy that is) to your path.
On 10/27/2011 12:56 PM, sambit rath wrote:
> Dear all,
> I am "still" fairly new to R and newer still to linux (opensuse). I
> want to install a package called "FEAR" from
> So, I downloaded the tar.gz file called
> "FEAR-linux-64bit-22.214.171.124-0.21-smp.tar.gz" and it is in the
> directory "/home/sambit/Downloads" right now. Then I invoked R from
> terminal and keyed in
>> install.packages("/home/sambit/Downloads/FEAR-linux-64bit-126.96.36.199-0.21-smp.tar.gz", repos=NULL)
> Installing package(s) into
> (as ‘lib’ is unspecified)
> * installing *binary* package ‘FEAR’ ...
> * DONE (FEAR)
> So, I think that the installation was successful. But when I load the package,
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared object
> libgfortran.so.1: cannot open shared object file: No such file or directory
> Error: package/namespace load failed for 'FEAR'
> I do not know what to do right now. I would really appreciate it
> someone could point out the next step. Thanks in advance.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Paul Hiemstra, Ph.D.
Global Climate Division
Royal Netherlands Meteorological Institute (KNMI)
Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39
P.O. Box 201 | 3730 AE | De Bilt
tel: +31 30 2206 494
More information about the R-help