Skip to content

Problem Installing a local package in linux

3 messages · sambit rath, Paul Hiemstra

#
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
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,
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
#
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 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: