On Fedora 8, libblas is installed separately. However, reviewing your
notes below I also installed blas-devel. This caused the
rpmbuild/compilation to go farther. (It might be worthwhile to this
dependency in the spec file).
The following message registered after
the configuration (which didn't before blas-devel):
Configuration:
Installation path: /usr
Use readline library: yes
Use gnuplot for graphs: yes
Use PNG for gnuplot graphs: yes
Use LaTeX for typesetting output: yes
Gnu Multiple Precision support: yes
MPFR support: yes
LAPACK support: yes
FFTW3 support: yes
Build with GTK version: 2.0
Script syntax highlighting: yes
Use installed gtksourceview: no
Use GTK printing apparatus: yes
Build with gnome support: 2.0
Build gretl documentation: no
Use Lucida fonts: no
Build message catalogs: yes
Gnome installation prefix: /usr
X-12-ARIMA support: yes
TRAMO/SEATS support: yes
Experimental audio support: no
Now type 'make' to build gretl.
+ make
...
but then it failed with the following:
gcc -o .libs/gretl_x11 about.o boxplots.o calculator.o callbacks.o
clipboard.o cmdstack.o console.o database.o datafiles.o dialogs.o
dlgutils.o filelists.o fileselect.o filters.o fncall.o fnsave.o
graph_page.o gpt_control.o gpt_dialog.o gretl.o guiprint.o gui_recode.o
gui_utils.o helpfiles.o library.o menustate.o model_table.o objectsave.o
obsbutton.o selector.o series_view.o session.o settings.o ssheet.o
textbuf.o textutil.o toolbar.o treeutils.o update.o gtkfontselhack.o
-pthread -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnomevfs-2 -lgnomecanvas-2
-lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lart_lgpl_2 -lgtk-x11-2.0
-lgdk-x11-2.0 -latk-1.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgconf-2
-lORBit-2 -lgthread-2.0 -lrt
-L/usr/src/redhat/BUILD/gretl-1.7.4/gui2/gtksourceview
-lgtksourceview-lite
-L/usr/src/redhat/BUILD/gretl-1.7.4/gui2/gtkextra-lite -lgtkextra-lite
../lib/.libs/libgretl-1.0.so -L/usr/lib -llapack -lblas -lgfortran
-L/usr/local/lib -lz -lxml2 -lgmp -lfftw3 -lm -lgdk_pixbuf-2.0
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
/usr/bin/ld: skipping incompatible /usr/lib/libgnomeui-2.so when searching
for -lgnomeui-2
/usr/bin/ld: skipping incompatible /usr/lib/libSM.so when searching for
-lSM
/usr/bin/ld: skipping incompatible /usr/lib/libbonoboui-2.so when
searching for -lbonoboui-2
/usr/bin/ld: skipping incompatible /usr/lib/libgnomevfs-2.so when
searching for -lgnomevfs-2
/usr/bin/ld: skipping incompatible /usr/lib/libgnomecanvas-2.so when
searching for -lgnomecanvas-2
/usr/bin/ld: skipping incompatible /usr/lib/libgnome-2.so when searching
for -lgnome-2
/usr/bin/ld: skipping incompatible /usr/lib/libpopt.so when searching for
-lpopt
/usr/bin/ld: skipping incompatible /usr/lib/libpopt.so when searching for
-lpopt
/usr/bin/ld: cannot find -lpopt
collect2: ld returned 1 exit status
make[1]: *** [gretl_x11] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/gretl-1.7.4/gui2'
make: *** [gui2] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.91719 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.91719 (%build)
...
How should this be pursued?
Much thanks for all of your help.
Max Pyziur
pyz(a)brama.com
On Sat, 3 May 2008, Allin Cottrell wrote:
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
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel