[R] Problem Installing a local package in linux

Paul Hiemstra paul.hiemstra at knmi.nl
Thu Oct 27 15:34:03 CEST 2011


Hi,

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:

locate libgfortran

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.

cheers,
Paul

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
> "http://www.clemson.edu/economics/faculty/wilson/Software/FEAR/fear-download.html".
>  So, I downloaded the tar.gz file called
> "FEAR-linux-64bit-2.6.16.60-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-2.6.16.60-0.21-smp.tar.gz", repos=NULL)
> Installing package(s) into
> ‘/home/sambit/R/x86_64-unknown-linux-gnu-library/2.13’
> (as ‘lib’ is unspecified)
> * installing *binary* package ‘FEAR’ ...
>
> * DONE (FEAR)
>
> So, I think that the installation was successful. But when I load the package,
>> library(FEAR)
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>   unable to load shared object
> '/home/sambit/R/x86_64-unknown-linux-gnu-library/2.13/FEAR/libs/FEAR.so':
>   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.
>
> Sambit
>
> ______________________________________________
> 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.


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

http://intamap.geo.uu.nl/~paul
http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770



More information about the R-help mailing list