help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem with 'mkoctfile'


From: Quentin Spencer
Subject: Re: problem with 'mkoctfile'
Date: Fri, 05 May 2006 08:30:59 -0500
User-agent: Thunderbird 1.5.0.2 (X11/20060501)

Agnes Bousquier wrote:
Hello everyone,

I recently installed last octave-forge and octave-devel packages on my Fedora core 5 computer from FC's official web site (octave-forge-2006.03.17-4 and octave-devel-2.9.5-3). Although Octave seems to run beautifully, when I try to compile the "hello world" file included in the Octave's package, I get :

$ mkoctfile hello.cc
/usr/bin/ld : can not find -lgfortranbegin

I did not find any solution on my google search. Does anybody know what is going wrong?

As the other poster noted, you're missing a library. In this case, it's going to be a file called libgfortranbegin. On my FC5 system I found that file by running the command "locate libgfortranbegin". The result was:
/usr/lib/gcc/i386-redhat-linux/4.1.0/libgfortranbegin.a

To find out what package you need to install to get this, I ran "rpm -qf /usr/lib/gcc/i386-redhat-linux/4.1.0/libgfortranbegin.a", and the result is:
gcc-gfortran-4.1.0-3

So, what this means is that in order to run mkoctfile, you need to have the fortran compiler installed. You can install this by running "yum install gcc-gfortran" as root, and it will download and install it for you. This error is partly my fault since I'm the packager of the Fedora Octave packages. I'll fix this in future releases by making the octave-devel package (which is the package that mkoctfile belongs to) requires gcc-gfortran.

-Quentin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]