LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   i installed glib from source on debian but atk configure still see old ver of glib (https://www.linuxquestions.org/questions/debian-26/i-installed-glib-from-source-on-debian-but-atk-configure-still-see-old-ver-of-glib-4175461658/)

skinney 05-12-2013 12:31 PM

i installed glib from source on debian but atk configure still see old ver of glib
 
Debian Squeeze kernel 3.9
dpkg libglib2.0-0 = 2.4
i installed glib 2.35.3 from source

I've looked around and i guess Debian package is installed /usr/ and installation from source goes to /usr/local/

this forum
http://stackoverflow.com/questions/1...been-installed
recommends changing...

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
LD_LIBRARY_PATH=/usr/local/lib

when i'm installing newer programs from source should i just change prefix to /usr/ ?

business_kid 05-12-2013 02:00 PM

A little reading would show

Quote:

./configure --prefix=/usr {the rest of the options]
./configure --help |less also shows you the options you should be looking at.

skinney 05-12-2013 03:21 PM

should i reinstall glib2 in /usr? or is that sketchy?

what is the proper way to install a newer version of a program (or library or whatever) that is already in stalled by the deb package sys?
you know what i mean?
Debian will give me binary of glib2 2.24.2 but i want to install something that requires 2.35.3

-thx for your help

skinney 05-12-2013 03:36 PM

ok, got it

i added to .bashrc

Quote:

LD_LIBRARY_PATH=/usr/local/lib
added to /etc/ld.so.conf
Quote:

/usr/local/lib
and ran ldconfig

atk complied and installed

but i feel this was a little hacky :/


All times are GMT -5. The time now is 06:50 AM.