[rkward-users] [rkward - Help] RE: Compiling Rkward on Redhat EL4 Fails

SourceForge.net noreply at sourceforge.net
Sat Jul 14 20:26:26 UTC 2007


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4412949
By: kapatp

Hi,

Some update from my side and a possible solution:

Recently I  moved from a 486 arch Debian/Sid to amd64 arch Debian/Sid, and I
faced exactly the same problem. I think this issue has something to do with
the linker in a 64bit architecture. And my guess, seeing '/usr/lib64' in your
path, is that you are running a 64 bit machine too. In this case, here is a
possible solution, though I am not sure if this is the right way:

As I had mentioned in my earlier mail, the linker, /usr/bin/ld is looking for
a file like libgfortran.a or libgfortran.so which is supposed to be provided
by the package libgfortran1 or libgfortran2 or something similar. Here is what
I have:

$ ls -l /usr/lib/libgfortran*
lrwxrwxrwx 1 root root     20 2007-07-14 08:41 /usr/lib/libgfortran.so.1 ->
libgfortran.so.1.0.0
-rw-r--r-- 1 root root 629360 2007-07-09 17:51 /usr/lib/libgfortran.so.1.0.0
lrwxrwxrwx 1 root root     20 2007-07-14 07:59 /usr/lib/libgfortran.so.2 ->
libgfortran.so.2.0.0
-rw-r--r-- 1 root root 764848 2007-07-13 17:20 /usr/lib/libgfortran.so.2.0.0

Ideally this should've worked. But since it doesn't lets make a brute force
link to the shared object:

$ cd /usr/lib; sudo ln -s libgfortran.so.2 libgfortran.so

You can do the same thing in /usr/lib64 instead of /usr/lib but not both :)
Now, try to compile rkward. I think this should work. But again, let me warn
you: I have no idea how, if at all, this is going to effect (benefit or harm)
other programs linking to libgfortran.so. So, try it at your own risk.

Take this as a temporary solution only. There has to be proper solution to this
from the linker side by adding some flag (may be) to /usr/bin/ld. We'll have
to wait for Thomas to suggest a better solution. As far as I can see, this is
not a rkward specific problem. You will (might?) face the same situation when
compiling any C/C++ code and linking against the gfortran library using the
"-lgfortran" flag.

Hope this helps.
PK

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=165574




More information about the Rkward-users mailing list