[Gretl-devel] Problems building and installing on Fedora 8
Allin Cottrell
cottrell at wfu.edu
Sat May 3 15:25:25 EDT 2008
On Sat, 3 May 2008, Max Pyziur wrote:
> I have an Fedora Core 2 machine which I use as a home server.
> Your latest rpm build of gretl does install on that machine.
> However, I still can't build it on that machine.
>
> I have installed gretl-1.7.4-1gtk2.i586.rpm on my Core 2 using
> the --nodeps flag. As yet, I haven't tried using it, other than
> bringing up the initial interface.
>
> I have tried setting the PKG_CONFIG_PATH variable both on the
> FC2 as well as the FC8 machine in the hopes of getting gretl to
> build. No luck.
I'll go back to your previous message...
"I get the following two sets of errors:
1) checking for LAPACK... no
*** Could not run LAPACK test program, checking why...
*** The test program failed to compile or link. See config.log for the
*** exact error that occured. This may mean LAPACK was incorrectly installed
*** or that you have moved LAPACK since it was installed."
Well, like it says, take a look at config.log. Lapack 3.1.1 is
installed, according to rpm -qa, but maybe libblas is missing, or
maybe none of libf2c/libg2c/libgfortran can be found? liblapack is
not usable without libblas, and the lapack+blas combination in
turn is useless without a basic fortran library. On recent Fedora
I'd expect that to be libgfortran.so; on older systems it was
libg2c.so, and on even older systems, libf2c.so.
"2) The rpmbuild fails with the following:
mkdir .libs
gcc -o .libs/gretlcli gretlcli.o complete.o
../lib/.libs/libgretl-1.0.so
-ldl -L/usr/local/lib -lz -lxml2 -lglib-2.0 -lgmp -lfftw3 -lm
-lreadline -ltermcap
../lib/.libs/libgretl-1.0.so: undefined reference to `dtrcon_'"
That's just the same error: dtrcon_ is defined by liblapack.
On my system:
waverley:~$ /bin/ls -1 /usr/lib/liblapack*
/usr/lib/liblapack.so
/usr/lib/liblapack.so.3
/usr/lib/liblapack.so.3.1
/usr/lib/liblapack.so.3.1.1
waverley:~$ /bin/ls -1 /usr/lib/libblas*
/usr/lib/libblas.so
/usr/lib/libblas.so.3
/usr/lib/libblas.so.3.1
/usr/lib/libblas.so.3.1.1
waverley:~$ locate libgfortran.so
/opt/gcc4/lib/libgfortran.so
/opt/gcc4/lib/libgfortran.so.3
/opt/gcc4/lib/libgfortran.so.3.0.0
Allin Cottrell
More information about the Gretl-devel
mailing list