Re: Problem compiling gtk+-1.2.6



dean holloway wrote:

Hi all,

I'm having loads of problems trying to compile gtk+1.2.6 on a Solaris 8
platform. I've already installed glib 1.2.6 which appeared to install
properly. When i try to 'configure' gtk+1.2.6 i get the following
errors:-

checking for glib-config... /usr/local/bin/glib-config
checking for GLIB - version >= 1.2.4... no
*** Could not run GLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding GLIB or finding the wrong
*** version of GLIB. If it is not finding GLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to
point
*** to the installed location  Also, make sure you have run ldconfig if
that
*** is required on your system
***

as you can see it's looking for glib-config in /usr/local/bin

Most likely however the new glib-config wasn't put in /usr/local/bin

What you need to do is:

Step 1--find the other location of glib-config (the new one just installed) and move it to /usr/local/bin. What I did was to rename the old glib-config to glib-config-1.2.6 or whatever your old version is, and then move the new glib-config to teh same directory and name it using the same scheme. Then create a symlink called just glib-config and point it to the new glib-config.

Step 2--Also, with the new libs installed you will need to run /sbin/ldconfig as it says above in the error messages.

After the above 2 steps are done the ./configure step will work fine. I did the above steps on my laptop and on this desktop with no problem.

A hint of advice. If you plan to install a new version of gtk as well, you will need to do the same thing with gtk-config and ldconfig.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]