Greetings,
I've been trying to get gretl running on my Fedora 8 Core 2 machine.
The pre-compile rpm fails with:
error: Failed dependencies:
libreadline.so.4 is needed by gretl-1.7.4-1gtk2.i586
even though readline is installed:
# rpm -qa | grep readline
readline-devel-5.2-10.fc8
readline-5.2-10.fc8
readline-5.2-10.fc8
readline-devel-5.2-10.fc8
I've created a symlink to libreadline.so.4
libreadline.so.4 -> libreadline.so.5.2
but that doesn't move the process forward.
I've tried compiling an rpm from source by taking
gretl-1.7.4/redhat/gretl.spec.in and modifying it and placing it in
/usr/src/redhat/SPECS, and the binary into /usr/src/redhat/SOURCES and
issueng the following command:
rpmbuild -bb --clean gretl.spec (when in the /usr/src/redhat/SPECS
directory)
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.
LAPACK is installed:
# rpm -qa | grep lapack
lapack-devel-3.1.1-2.fc8
lapack-devel-3.1.1-2.fc8
lapack-3.1.1-2.fc8
lapack-3.1.1-2.fc8
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_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgels_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dspsv_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dpptri_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dpptrf_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dsycon_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dpocon_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dsyev_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgeev_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dtrtri_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgetrf_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgelss_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dorgqr_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dsytri_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dpotrf_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dsytrf_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dpotri_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgecon_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgeqrf_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dpotrs_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgesvd_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgetrs_'
../lib/.libs/libgretl-1.0.so: undefined reference to `dgetri_'
collect2: ld returned 1 exit status
make[1]: *** [gretlcli] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/gretl-1.7.4/cli'
make: *** [cli] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.19815 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.19815 (%build)
It seems that these errors have been encountered before
(
http://aur.archlinux.org/packages.php?ID=13752), but there is no solution
offered.
The contents of my gretl.spec file is appended below. Any help is
appreciated. Apologies if this has been covered elsewhere; if there are
links showing information as to how to get through this, that would be
great.
Max Pyziur
pyz(a)brama.com
######################
# cat gretl.spec
%define name gretl
%define ver 1.7.4
%define rel mp
%define prefix /usr
Summary: econometrics package
Name: %{name}
Version: %{ver}
Release: %{rel}
License: GPL
Group: Applications/Math
Source:
ftp://ricardo.ecn.wfu.edu/pub/gretl/gretl-%{ver}.tar.bz2
Buildroot: %{_tmppath}/%{name}-%{ver}-%{rel}-root
Packager: Allin Cottrell <cottrell(a)wfu.edu>
URL:
http://gretl.sourceforge.net/
Vendor: Allin Cottrell <cottrell(a)wfu.edu>
Docdir: %{prefix}/share/doc
Requires: gtk+ >= 1.2.3
%description
gretl is a free econometrics package. It comprises a shared library,
a command-line client and a gui client that uses GTK. gretl offers
several least-squares based estimators. Besides reading data files
in its own format it also reads RATS 4 databases. It has a built-in
spreadsheet for editing data, and uses gnuplot for graphing. It can
output regression results in LaTeX format.
%prep
%setup -q
%build
%configure
make
%install
rm -fr %{buildroot}
%makeinstall
%post
/sbin/ldconfig
%clean
rm -fr %{buildroot}
%files
%doc COPYING README INSTALL
%{prefix}/lib/lib*
%{prefix}/lib/gretl*/*
%{prefix}/bin/gretlcli
%{prefix}/bin/gretl_x11
%{prefix}/bin/gretl
%{prefix}/share/gretl/*
%{prefix}/share/locale/*
%{prefix}/share/man/*