Compiling Software from Source, Part IX
- 0
- Add a Comment
- No Related Post
Compiling Software from Source, Part IX
This week I’m trying to compile another part of the overall GNOME
package for a change. One item that the last error complained
about is pango (an internationalization tool - trying saying that
one three times fast!), so I’ll get started with:
bunzip2 pango[TAB] tar xvf pango[TAB] cd pango[TAB] ./configure
And it configures with no errors. They should all be this easy!
Now it’s make, make install, and onto the next
one. The next package that the previous error complained about was
gconf, which is actually GConf in my directory. So, here we go
again:
bunzip2 GConf[TAB] tar xvf GConf[TAB] cd GConf[TAB] ./configure
Gets a bit repetitive doesn’t it? Still, it’s better than having
to edit a ton of Makefiles any day! This is a quick one and also
configures with no troubles. So:
make make install
Again, no problems. Now, last time I had an error it was while
trying to configure gnome-desktop, so I’m going to try that one
again. Now I’m stuck with errors for four packages I’ve already
made and installed:
configure: error: Library
requirements (gdk-pixbuf-2.0 >= 2.0.3 gtk+-2.0 >= 2.1.2
libgnomeui-2.0 >= 2.1.0 gnome-vfs-2.0 >= 2.0.0 ) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your
libraries are in a nonstandard prefix so pkg-config can find
them.
This looks all too familiar. At least bonobo isn’t in there.
However, backing up a bit in the error listing, I see:
Perhaps you should add the directory containing 'libgnomeui-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libgnomeui-2.0' found
This is the same kind of error that cropped up before with bonobo.
However, doing the following search on my system:
# find / -name libgnomeui-2.0.pc
doesn’t show this package either. Did I forget to run a make install when I compiled that
one? In fact, I must not have installed it (I must have gotten
sidetracked). The ./configure
for this package exits with an error, sending me to the libgnome
package. A good hint that you forgot to compile a package is when
you try “make install” and see:
make: *** No rule to make target
‘install’. Stop.
That means that ./configure
must have never completed and created the proper Makefiles. So, I
try to autoconfigure libgnome and that gives me errors. I need to
get better at tracking what I’ve done!
configure: error: Library
requirements (glib-2.0 >= 2.0.3 gmodule-2.0 >= 2.0.3 gnome-vfs-2.0
>= 1.9.16 libxml-2.0 >= 2.4.22 libbonobo-2.0 >= 2.0.0 gconf-2.0 >=
1.1.11 audiofile >= 0.2.3 esound >= 0.2.26) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your
libraries are in a nonstandard prefix so pkg-config can find them.
So, I uncompress and unpack glib, autoconfigure it, make it, make install it, and move on to libxml2. Rinse,
lather, repeat, I do the same routine with libxml2 and then I move
on to esound, audiofile, and then go back to libgnome:
Perhaps you should add the directory containing 'gnome-vfs-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'gnome-vfs-2.0' found
configure: error: Library
requirements (glib-2.0 >= 2.0.3 gmodule-2.0 >= 2.0.3 gnome-vfs-2.0
>= 1.9.16 libxml-2.0 >= 2.4.22 libbonobo-2.0 >= 2.0.0 gconf-2.0 >=
1.1.11 audiofile >= 0.2.3 esound >= 0.2.26) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your
libraries are in a nonstandard prefix so pkg-config can find them.
I take a look for gnome-vfs-2.0.pc:
# locate gnome-vfs-2.0.pc /usr/local/lib/pkgconfig/gnome-vfs-2.0.pc /home/dee/Downloads/GNOME2.2.1/gnome-vfs-2.2.3/gnome-vfs-2.0.pc.in /home/dee/Downloads/GNOME2.2.1/gnome-vfs-2.2.3/gnome-vfs-2.0.pc
and then type env to see what my PKG_CONFIG_PATH variable
contains:
PKG_CONFIG_PATH=/usr/lib/pkgconfig
So, this one’s been added in a different spot from the others. I
type the following to add the second directory to the existing
path entry:
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
and try the configuration again. This time it works! Great. Back
to the usual compilation and installation routine, and then return
to trying to build libgnomeui. It fails again, but there’s a new
item in the list:
Perhaps you should add the directory containing 'libgnomecanvas-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libgnomecanvas-2.0' found
configure: error: Library
requirements (libgnome-2.0 >= 2.0.0 libgnomecanvas-2.0 >= 2.0.0
libbonoboui-2.0 >= 2.0.0 gconf-2.0 >= 1.1.11 pango >= 1.1.2) not
met; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are in a nonstandard prefix so pkg-config can
find them.
I’m pretty sure I hadn’t tried libgnomecanvas before, so I unpack
and go through the motions again, and soon I’ve got that installed
as well. The progress is kind of addictive at this point. That’s
why you folks are getting such a long section this time! Back to
libgnomeui again.
Oh, great:
Perhaps you should add the directory containing 'libbonoboui-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libbonoboui-2.0' found
configure: error: Library
requirements (libgnome-2.0 >= 2.0.0 libgnomecanvas-2.0 >= 2.0.0
libbonoboui-2.0 >= 2.0.0 gconf-2.0 >= 1.1.11 pango >= 1.1.2) not
met; consider adjusting the PKG_CONFIG_PATH environment variable
if your libraries are in a nonstandard prefix so pkg-config can
find them.
Oh, it’s not as bad as I thought; I never compiled libbonoboui (I
can tell, because it’s not unpacked yet). ./configure, make, make, and back to libgnomeui. This time, it configures!
install
Once I get that compiled, it’s back to gnome-desktop. Believe it
or not, this application installs.
Next week: Hopefully we can finish up this series!
