LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-17-2005, 11:27 PM   #1
Scrob
LQ Newbie
 
Registered: Feb 2005
Posts: 18

Rep: Reputation: 0
Unhappy GTK 1.2.0 and GLIB 1.2.0 install errors!!!


I need some help! But thats why I love linux, because I can always go here as a NOOB without feeling freaking stupid! Any way, I am running Suse Prof 9.2 and I am trying to install gtk+-1.2.0. so that I can run MPLAYER. GTK 1.2.0 requires glib1.2.0 or greater. I have downloaded the source for glib 1.2.0. from ftp://ftp.gtk.org/pub/gtk/v1.2/glib-1.2.0.tar.gz and extracted it.
I thought that I had compiled it correctly. I did the ./configure, make and finally make install. No issues. I then go to run ./configure on the extracted file from ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-1.2.0.tar.gz and I get the following error every time:
checking for glib-config... no
checking for GLIB - version >= 1.2.0... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error:
*** GLIB 1.2.0 or better is required. The latest version of GLIB
*** is always available from ftp://ftp.gtk.org/.

Anyway, I edited the /etc/ld.so.conf file and made sure that it had /usr/local/lib in the path. I then ran ldconfig as su within a shell, and just to be sure did sudo ldconfig. I cannot get anywhere! Please help!!
Thanks!
 
Old 03-18-2005, 01:31 AM   #2
melinda_sayang
Member
 
Registered: Dec 2003
Location: Petaling Jaya
Distribution: Ubuntu
Posts: 475

Rep: Reputation: 31
Avoid compiling software....

http://www.webservertalk.com/message949707.html
 
Old 03-18-2005, 05:52 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
different libraries use different means to set their include and lib paths. In your case, with the older gnome libs, the use a <libname>-config script which is an executable script. in a console ( you don't need to be root for this) type:

glib-config

if you get the command not found error, do:

ls /usr/local/bin | grep glib-config

and make sure it's in there, then:

export PATH=/usr/local/bin:$PATH

re-run configure and all should be well. As a side note, look in Yast these libs come standard with virtually every distro. make sure you get the -devel packages too.
 
Old 03-18-2005, 07:28 AM   #4
Scrob
LQ Newbie
 
Registered: Feb 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thumbs up

WOW! That worked great! No if it's not too much trouble, could someone explain what I just did? I have no idea! But using the export path did work. Once again, thanks!
 
Old 03-19-2005, 05:45 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by __J


export PATH=/usr/local/bin:$PATH
this sets /usr/local/bin as the first directory searched by the shell. if you did:

export PATH=$PATH:/usr/local/bin

/usr/local/bin would be the last directory searched. The "$" is used ( by the way, I'm using the bash shell for an example here, others may differ ( csh or tcsh will differ, zsh will be the same though)) to dereference the variable to get it's contents. To get an idea what I mean do:

Code:
export EXAMPLE=myexample
echo $EXAMPLE
you will see that using the "$" gets the value of EXAMPLE. library paths work the same way as above.

note that the following is wrong if you are trying to add a directory to your PATH:

export PATH=/usr/local/bin

this works, but the problem is it sets path to look in only /usr/local/bin, and the shell will not look in other directories, which is why you need to add the ":$PATH" at the end, to dereference the PATH variable and add it's contents to the end, so the shell will still look in /usr/bin/, /bin, etc..
 
Old 10-30-2012, 05:32 PM   #6
thodorakos
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
Question

Hello everyone, I'm totally new to this forum.

Can anyone help me with this problem in backtrack distribution?
I downloaded a later version, but i have the same problem.

I got the same output. Then I followed the given instructions by ___J, but this time i got the message "ls: cannot access usr/local/bin: No such file or directory".

Does anyone know how will i get through this problem
 
Old 10-31-2012, 12:57 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 12,839

Rep: Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709Reputation: 1709
thodorakos

Please Do Not resurrect from the DEAD a 8 year old thread about gtk1 ( gtk3 is the current)

almost any fix for a gtk1 issue from 2008 will not work on gtk3

Also "Backtrack-5" is EXPLICITLY created and designed for EXPERT USERS
to be USED by EXPERT USERS

if you do not have a 4 or 6 year degree in computer science and in networking
there is NOT much you can do with backtrack
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help!!! How to install GLib, GTK, ATK and Pango, just to get Firefox running. LOL RJARRRPCGP Linux - Newbie 7 11-20-2004 05:42 PM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM
CANT INSTALL GTK and GLIB please HELP! cantrooper Linux - Software 0 08-15-2003 09:27 AM
GTK, GLIB + install structures sparrot Linux - Newbie 2 04-06-2003 08:24 AM
glib 2.0.4 install errors natto34 Linux - Software 1 07-01-2002 03:03 PM


All times are GMT -5. The time now is 01:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration