From: Allin Cottrell <cottrell(a)wfu.edu>
To: Gretl list <gretl-users(a)ricardo.ecn.wfu.edu>
Date: Fri, 9 Jun 2006 13:34:48 -0400 (EDT)
Subject: Re: [Gretl-users] Installing gretl from source
On Fri, 9 Jun 2006, Talha Yalta wrote:
> I was fed up with all the windows stuck inside a single desktop
> so I decided to try installing gretl snapshot in my newly
> installed Kubuntu Dapper system. I am not very experienced in
> compiling software on my own and here is what happened:
>
> After running ./configure everything goes fine except one error message:
>
> *** The gtk-config script installed by GTK could not be found
> *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
> *** your path, or set the GTK_CONFIG environment variable to the
> *** full path to gtk-config.
Hmm. The "gtk-config" script is the configuration mechanism for
gtk version 1.2, which is very old by now. On a reasonably
up-to-date system one would expect to find gtk 2.0, and it does
its configuration using the pkg-config program.
I suspect that gretl's "configure" is falling back on gtk-1.2
because it can't find the relevant gtk-2.0 files (and then
failing, of course).
I recommend trying this command:
pkg-config --libs gtk+-2.0
(note the slightly odd string "gtk+-2.0").
If this command doesn't succeed, the "devel" packages for gtk 2.0
are presumably not installed. They probably shouldn't be hard to
find.
Congratulations on joining the compiling club! I trust the
initial problems should be sorted out without too much grief.
Allin Cottrell
Well, turns out that libgtk-devel was the missing package. After
running the ./configure command maybe 20 times, I was finally able to
locate and install all the dependencies one by one so that now I have
a working gretl with everything (latex etc.) :) I later realized that
there is also a list of dependencies in gretl website. I learn
something every day :)
There is just one problem though: I realized that the source code that
I downloaded is for the official version 1.5.1. While this is newer
than the package offered in ubuntu repos, it is not the latest
snapshot that I wanted. How do I download the tar.bz2 file for the
latest development version?
--
Don't go around saying the world owes you a living. The world owes you
nothing. It was here first. - Mark Twain
--