LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Gnome 2.0 install insanity! help! (https://www.linuxquestions.org/questions/linux-software-2/gnome-2-0-install-insanity-help-27560/)

wrc1944 08-16-2002 05:16 AM

I still don't know how to choose which compiler to use when I compile.

My output says it needs version 2.0, and you said you compiled gnome 2.0 with version 1.2.10- so I'm still confused about that.

As I posted above, I need specific directions as to exactly step-by-step what to do and how to do it. Please assume I know absolutely nothing. I'm starting to think we're losing something in the translation here. I can follow directions to the letter, but I'm not understanding what you mean.

In my questions 1 and 2 above, I meant how do I change where the symlink is supposed to point to, not how to change the name of anything. I didn't know I was supposed to change a name.

Maybe I'm not phrasing my question properly. I'm asking how do I get ./configure to find glib version2 2.0 to compile gnome 2.0 packages. I need exact step-by-step instructions, with every detail, and exactly how to do it- every single step, so I don't make a mistake. If it's a command line thing, the exact command to type. If I can create a symlink by drag/drop, exactly what to drag where.
Thanks,
wrc1944

Mara 08-17-2002 05:27 PM

Whoops... My mistake... I'm so sorry... You need glib 2.x. You can get it from ft.gtk.org, directory pub/gtk/v2.0. Unpack it and install standard way (./configure;make;make install). I'm sorry once again.

wrc1944 08-18-2002 07:41 AM

I've had glib-2.0 and gtk-2.0 all along. Their folders are in /usr/lib and /usr/include. My compiler folders( 2.96, 3.04, egcs-2.91.66) are in /usr/lib/gcc-lib/i586-mandrake-linux-gnu.

RefriedBean 08-18-2002 09:33 AM

I've had this very same problem.

But its very easy to fix.

Lets say you installed glib 2.0 in /usr/local/lib
Now gnome's installer uses the pkg-config utility to find its libraries.

Usualy pkg-config looks only in /usr/lib, so obviously it won't find it there ;).

So to fix it all you have to do is the following.

add the following to your /etc/profile:

export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

Just log out, and log back in ;)

You see, when you install certain libraries, they make a *.pc file in their $PREFIX/lib/pkgconfig, this file contails info such as which version, where its located etc.

Good Luck
Refriedbean

wrc1944 08-18-2002 10:07 AM

This looks promising. However, I've never installed any glib- I just have the Mandrake install, and glib-2.0 is as I described above- in /usr/lib.

So, If I understand correctly, I should add that line to /etc/profile, but edit the path to be /usr/lib./? Is this correct?

But if pkg-conf looks in /usr/lib, which is where my glib-2.0 folder is (in addition to being in /usr/include, why isn't it working now? This is very confusing.

wrc1944 08-18-2002 11:47 AM

I tried the line, as you instructed, once with /usr/lib, and once with /usr/include/. Neither one worked. I still get the same error:

checking for aclocal flags...
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error:
*** GLIB 2.0.0 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/.
[root@localhost atk-1.0.2]#

As I said, I have glib-2.0, and other compiles work OK- just the gnome 2.0 is giving me problems. Do I need a higher version, and if so, can I install it alongside of the others I already have?

RefriedBean 08-21-2002 05:21 AM

Your $PKG_CONFIG_PATH should not point to /usr/lib, but rather to /usr/lib/pkgconfig/

Also, you do not need to do anything with include directories (for example, /usr/include).

What ./configure options did you use for glib2.0?


RefriedBean

wrc1944 08-21-2002 08:43 AM

I didn't use any ./configure options, as glib was already installed with the Mandrake 8.2.

I'm on a different machine right this minute, so I'll re-check everything again after hooking back up (only have one monitor)- maybe I made a typo or other stupid error. I thought I just ommited the /local/ in the example you gave, as my pkgconfig is in /usr/lib/, but I guess I could have made a mistake. In my post above, I meant /usr/lib/pkgconfig. The reasi\on I also tried "include" is because both glibs are also in that directory.
Thanks,
wrc1944

wrc1944 08-21-2002 08:47 AM

Why does my error in the output say it's checking (looking?) in /usr/bin/pkg-config?

RefriedBean 08-21-2002 08:23 PM

Quote:

Originally posted by wrc1944
Why does my error in the output say it's checking (looking?) in /usr/bin/pkg-config?
Because it uses the pkg-config utility to determine where the libraries that it requires (glib2 in this case) are located.

You say that glib was already installed; do you mean by that glib1?

You also said that you didn't use any ./configure options for glib2, if that is true, it would be located in /usr/local/lib, since /usr/local is the default prefix for most apps/libs.

Try adding the following line to /etc/profile;

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig

You should then log out, and log back in; I mean completely, as in close X etc..

Also, please remember that glib1 and glib2 are completely different things (from the compluter's point of view anyway).

Good Luck!
RefriedBean

wrc1944 08-21-2002 09:28 PM

OK- I realize all those things, and have always shut down , and completely logged out, rebooted, etc., when making changes.

I mean: glib-2.0 is installed in /usr/lib, and /usr/include.

Once again, I've NEVER installed and configured any glib. glib-2.0 is already there from the 8.2 install, and apparently works (or not- I don't know) with other compiles.

I've always logged out, and rebooted.

There are absolutely no references or files or directories involving glib in /usr/local/lib---they are in as I previously posted. All that's there is:

mplayer- directory
netscape-directory
libha-0.1.so-shared lib
libdha.so- link to shared lib

I can't understand how /usr/local/lib is supposed to work when these things aren't there? And, obviously, it doesn't. Either I'm not describing the problem correctly, or I'm misunderstanding what you're telling me.

RefriedBean 08-22-2002 05:33 AM

Please post a

ldconfig -p | grep glib

RefriedBean

wrc1944 08-23-2002 02:27 PM

Here's the ouput. There's no reference to glib 2.0, but that folder is definitely in /usr/lib, and /usr/unclude. The one in include has all the .h files, while the one in /usr/lib has only an inlude directory, with one glibconfig.h file in it.


[root@localhost wrc1944]# ldconfig -p | grep glib
libglib.so (libc6) => /usr/lib/libglib.so
libglib-1.3.so.13 (libc6) => /usr/lib/libglib-1.3.so.13
libglib-1.3.so (libc6) => /usr/lib/libglib-1.3.so
libglib-1.2.so.0 (libc6) => /usr/lib/libglib-1.2.so.0
libarts_mpeglib.so (libc6) => /opt/kde3/lib/libarts_mpeglib.so
libarts_mpeglib-0.3.0.so.0 (libc6) => /opt/kde3/lib/libarts_mpeglib-0.3.0.so.0
[root@localhost wrc1944]#

wrc1944 08-23-2002 02:28 PM

sorry for the typos- I mean "include" in all the above.

RefriedBean 08-23-2002 11:41 PM

Are you really sure that you have glib2 installed?

RefriedBean


All times are GMT -5. The time now is 04:10 AM.