LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   grep: /usr/lib/libglib-2.0.la: No such file or directory (https://www.linuxquestions.org/questions/linux-software-2/grep-usr-lib-libglib-2-0-la-no-such-file-or-directory-103605/)

FirstTimeUser 10-13-2003 08:08 PM

grep: /usr/lib/libglib-2.0.la: No such file or directory
 
Hello world,

This time iwas trying to install pygtk-2.0.0, and got such message

Quote:

grep: /usr/lib/libglib-2.0.la: No such file or directory
/bin/sed: can't read /usr/lib/libglib-2.0.la: No such file or directory
libtool: link: `/usr/lib/libglib-2.0.la' is not a valid libtool archive
make[2]: *** [_gtk.la] Error 1
make[2]: Leaving directory `/home/sashko/_rpms/nikotine/pygtk-2.0.0/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sashko/_rpms/nikotine/pygtk-2.0.0'
make: *** [all] Error 2
To tell the truth, it is not the first time when I see that, trying to compile something. Not having time to investigate I just was swiching to rpm's instead of compaling. This time i'm sick of it already. Who can tell me what can be done to fix this. Actually, I'm not interested in the reason, just what package to reinstall to make this libglib-2.0.la exist.

Thank you in advance

Jan_73 10-13-2003 08:44 PM

I think the libglib-2.0.la is part of the GTK+

GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites.

GLib is the low-level core library that forms the basis of GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.

You must install the GTK+ which you can find on: http://www.gtk.org/
or you can find them on http://rpmfind.net (if you use RPM)

Here is a very detailed explanation how to install GTK:

http://developer.gnome.org/doc/API/2...-building.html

Jan_73 10-13-2003 08:46 PM

By the way.. on http://rpmfind.net you can type the file you have a problem with to find what you need.
so, you can type in: " libglib " into the searchbox (without the " ").. and it will come up with the rpm.
choose the right rpm for your distribution (ie. if you use mandrake, look for mandrake rpm)

Jan_73 10-13-2003 08:56 PM

I have just looked on http://rpmseek.com and found even more rpm's (105) about gtk and gtk+..

go there and just type in the searchbox: gtk+ and it will show you all kinds of rpms (mandrake, redhat 7, 8, 9 .. etc)

GTK is basically needed for GNOME (is a desktop environment, just like KDE)
you know, the graphic user interface, which shows you all the windows, Icons, Desktop.. etc..

Jan_73 10-13-2003 09:06 PM

If you would like to tell me what kind of Linux you are using, then I can help you with finding the right rpm.

The basic rule for using rpm is that you must be logged in as root.

example: open shell or console.....type: su.... type your password for root....
install the rpm (rpm -Uvh blablabla.i386.rpm) and when it is done, type exit.
and you have become normal user again (if you didn't logged in as root in the first place of course)

The same goes for compiling a program yourself.
You can ./configure as user. also make can be done as normal user. BUT.. make install.. must be done as root.

FirstTimeUser 10-14-2003 01:43 AM

Thanx a lot Jan_73,

Actually i know all that stuff about compiling installing, rpms... and where to find rpms and binaries. Although I'm still newbie in linux but I have some experince already. :)
In fact the question was that I tried to fix the problem reinstalling glib2, but I couldn't imagine that I have to reistall the whole GTK+.
OK, I hope that tomorrow I'll try to do that and be back with results.

wbr

FirstTimeUser 10-14-2003 01:33 PM

all right,
I downloaded gtk+-2.2.0.tar.bz2 from ftp://ftp.gtk.org/pub/gtk/v2.2/.
#./configure --> no problem

and then
#make
gives me the following.

Quote:

read-2.0 -lglib-2.0 -lm
libtool: link: cannot find the library `/usr/lib/libglib-2.0.la'
make[3]: *** [timescale] Error 1
make[3]: Leaving directory `/home/sashko/_rpms/gtk+/gtk+-2.2.0/gdk-pixbuf/pixops
'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/sashko/_rpms/gtk+/gtk+-2.2.0/gdk-pixbuf'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sashko/_rpms/gtk+/gtk+-2.2.0'
make: *** [all-recursive-am] Error 2
[root@hell gtk+-2.2.0]#
Now the question is: how can gtk+ depend on libglib-2.0.la if it is supposed to contain this library itself?
Any help how to fix this glitch is appreciated.

Dapper Dan 10-15-2003 10:29 AM

This sounds like the exact same hell I've been in for several months trying to get all the depends worked out so I can use Icepref or IceWMCP, (configurators for IceWM). I'll be following this thread closely..;)

FirstTimeUser 10-15-2003 05:07 PM

Tanks for support Dapper Dan,
but as you can see no too much people are helping us for last 3 days.
I cant believe that nobody has the similar problem, and maybe know the cure.

btw: what will happen if I just try to copy this libglib-2.0.la from another machine? Will it work?

Dapper Dan 10-15-2003 09:53 PM

Sounds like an "ify" proposition, but it may be worth a try. I'm afraid I'm not knowledgable about any of this to advise you. I've tried for months to solve my PyGTK problem, trying to get it working the way Iceref wants it to, and have come up empty. I wish you better luck than I've had.:)


All times are GMT -5. The time now is 04:42 PM.