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