cancel
Showing results for 
Search instead for 
Did you mean: 

how to set variables

shyam singh bisht
Occasional Advisor

how to set variables

Hi ! all
I am trying to install xmms-1.2.10 .

when I ./configure it , it shows that I have to upgrade my glib version to 1.2.2 . as i have glib-1.2.10.

I downloaded glib-2.0.0 in the /root directory.
& installed it there in the /root/glib-2.0.0 directory.

Now when i try to install xmms-1.2.10 it shows me the following error

checking for GLIB - version >= 1.2.2... 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.2 not installed - please install first ***

ANY KIND OF HELP WILL BE APPRECIATED.

THANKS & REGARDS

Shyam Singh Bisht
4 REPLIES
Alex Lavrov.
Honored Contributor

Re: how to set variables

If GLIB is installed in /root/glib-2.0.0, then I guess bin of glib is located in "/root/glib-2.0.0/bin", so, before you run configure of xmms, do the following:

export PATH=$PATH:/root/glib-2.0.0/bin


Let us know if it works.

Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
shyam singh bisht
Occasional Advisor

Re: how to set variables

Hi ! Alex

Thanks for the reply

I have checked the directory /root/glib-2.0.0
but there is no bin there.

any other suggetion !
Gopi Sekar
Honored Contributor

Re: how to set variables


I believe this is what you did to to install glib

* untarred glib to /root
* change directory to /root/glib-2.0.0
* did configure and make and make install

if so, then your glib is installed with PREFIX /usr/local whic is default and which also is not in path by default. or did you run configure --prefix=/root/ if so then glib is installed in /root

to avoid this problem there are two methods, either you add /usr/local/lib /usr/local/bin /usr/local/share in search path for binary, libraries and include. or simply recompile glib as follows

* delete existing /root/glib-2.0.0
* untar glib freshly, it will create in /root/glib-2.0.0
* change to this directory
* run, configure --prefix=/usr
* make
* make install
* ldconfig (just to refresh libraries database)

After this try compiling xmms and it should find glib this time

Regards,
Gopi
Never Never Never Giveup
Alex Lavrov.
Honored Contributor

Re: how to set variables

I think you just opened the tar there and it was installed somewhere else.

To locate the installation:
updatedb
locate glib

You will get all the files with glib in them, try to locate the bin directory and set it in PATH variable.


Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)