Loading library fails. Undefined Symbol! :(

Hello Everyone.
I would like to ask your kind help.
This is the error I receive when I try to install a library.
I really do not know If I could do something to skip this error message.

As you might see below. I receive the following error message
**Error in dyn.load(file, DLLpath = DLLpath, …) :
unable to load shared library **’/home/apa/R/x86_64-unknown-linux-gnu-library/2.11/RandomFields/libs/RandomFields.so’:
/usr/lib64/R/lib/libRlapack.so: undefined symbol: _gfortran_concat_string

This is the full error log

[Bash |

* installing *source* - Anonymous - d4DH09Wx - Pastebin.com](http://pastebin.com/d4DH09Wx)

I would like to thank everyone in advance.

The short (and mostly useless) answer is: you are missing some library to link with. As you compile from source there should be a README file stating the dependencies of your package.

To make it a bit easier for those wanting to help: What is the package you are compiling here and where exactly did you get the source from?

Unfortunately there is no README file. I would like to install the
http://cran.r-project.org/src/contrib/RandomFields_1.3.41.tar.gz

in the R platform.
the command to do this is install.package(“RandomFields”)
the programe fetchs the source package and starts compiling as you can see on the pastebin link i posted above.

I checked my packages using Yast and everything that has the word fortran :stuck_out_tongue: is installed.

Anything else that might help me?

Best Regards
Alex

Hmmm … this is a good one … I love a challange …

The first thing I would do is verify that the file “/home/apa/R/x86_64-unknown-linux-gnu-library/2.11/RandomFields/libs/RandomFields.so” actually exists. I can not discern from the output you posted what the build/install progam is actually doing; it does appear the the target of the build may be “/usr/local” instead of “/home/apa/R/…”.

An observation:

Error in dyn.load(file, DLLpath = DLLpath, …) :
unable to load shared library ‘/home/apa/R/x86_64-unknown-linux-gnu-library/2.11/RandomFields/libs/RandomFields.so’:
/usr/lib64/R/lib/libRlapack.so: undefined symbol: _gfortran_concat_string

The loader (or if the compile succeeded, RandomFields.so) appears to want a different version of libRlapack.so it is finding in /usr/lib64/R/…/…

Did the package compile/copy/whatever a different libRlapack.so under /home/apa/… or /usr/local/… ??? Should it be linking with a libRlapacks.so under /usr/lib/…/… ???

I hope you find something useful in my speculation … best of luck …

cwight

On 2010-08-02 10:36, alaios wrote:

> Bash |
> Code:
> --------------------
> * installing source - Anonymous - XXXXXXX - Pastebin.com (http://pastebin.com/d4DH09Wx)

A comment.

The word after the “Anonymous” above is the password to your upload, by which we could alter or
delete it. You are not suppose to post neither login nor password.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))