[rkward-devel] ldconfig can not find lgfortran in Kubuntu 7.10

Prasenjit Kapat kapatp at gmail.com
Thu Oct 18 04:19:59 UTC 2007


Hi,

Ok, don't ask me why , but I decided to move to Kubuntu 7.10 from
all-so-faithful Debian/Sid/amd64. I don't know if this is a wise
decision, but hopefully this will give me a "stable" system. And while
I was changing I moved back to x86 architecture (64 bit had its own
bag of monsters, and frankly I didn't see any considerable improvement
in speed/performance).

Now the issue: Same old old.. refer here....
http://sourceforge.net/forum/forum.php?thread_id=1769679&forum_id=165574
But now on i686 arch with R 2.5.1. I have gcc-4.1, gcc-4.2, g77
(3.4.6), libgfortran1 and libgfortran2 installed, yet:

The linker can not find -lgfortran flag!
    /usr/bin/ld: cannot find -lgfortran

Quick-n-dirty solution was to create a symlink in /usr/lib as I had
mentioned in the above link:
    ln -s libgfortran.so.2 libgfortran.so
and it worked.

But then I remembered from the last discussion, that the problem was
with gcc-4.1 and upgrading to gcc-4.2 was supposed to solve the issue!
Actually it turns that I g++-4.1 is also partly to blame. So, I
removed the symlink (that I had created above) and changed the CC and
CXX variables:

export CC='/usr/bin/gcc-4.2'; export g++='/usr/bin/g++-4.2'; ./configure

That helped and rkward compiled nicely. Hopefully this will help
someone facing similar issue.

Thanks,
PK




More information about the Rkward-devel mailing list