[R] Problem Installing a local package in linux

sambit rath kafkasbane at gmail.com
Thu Oct 27 19:37:04 CEST 2011


Dear Paul,

Thanks for the response. I could resolve the problem. The problem, as
you had rightly pointed out, was the absence of the gfortran package
called libgfortran41. I located the rpm and installed it. This
contains libgfortran.so.1. That does it.

Thanks again.

sambit


On 27 October 2011 19:04, Paul Hiemstra <paul.hiemstra at knmi.nl> wrote:
> 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