LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [ask] how to configure library path (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bask%5D-how-to-configure-library-path-811547/)

sadlie 06-01-2010 01:58 PM

[ask] how to configure library path
 
Hi

i'm using slackware 13.0 with glib2-2.18.4-i486-1 and gtk+2-2.14.7-i486-4
i need to install newer gtk+2, i've installed glib-2.25.7, but in my home directory, so how do i configure the gtk+2, so it points to the glib library path in my home directory.

i've tried this command
Code:

./configure BASE_DEPENDENCIES_LIBS=/home/sadlie/.testapp/usr/lib
but it still comes with the same error message
Code:

Requested 'glib-2.0 >= 2.23.6' but version of GLib is 2.18.4
Requested 'atk >= 1.29.2' but version of Atk is 1.26.0

thanks

Tinkster 06-01-2010 03:14 PM

Quote:

Originally Posted by sadlie (Post 3989058)
Hi

i'm using slackware 13.0 with glib2-2.18.4-i486-1 and gtk+2-2.14.7-i486-4
i need to install newer gtk+2, i've installed glib-2.25.7, but in my home directory, so how do i configure the gtk+2, so it points to the glib library path in my home directory.

i've tried this command
Code:

./configure BASE_DEPENDENCIES_LIBS=/home/sadlie/.testapp/usr/lib
but it still comes with the same error message
Code:

Requested 'glib-2.0 >= 2.23.6' but version of GLib is 2.18.4
Requested 'atk >= 1.29.2' but version of Atk is 1.26.0

thanks

Look at configure.log, and find the matching line in ./configure

You'll most likely find that it's checking the output of pkgconfig.
What you need to do in that case is to point PKG_CONFIG_PATH to
pick your local version of the .pc file first.


Cheers,
Tink

knudfl 06-01-2010 04:02 PM

Assume all new glib, atk, etc. in /home/sadlie/.testapp/usr/lib/

export PKG_CONFIG_LIBDIR=/home/sadlie/.testapp/usr/lib/pkgconfig:/usr/lib/pkgconfig/

... Which will set /home/sadlie/.testapp/usr/lib/ first in the path.
And /usr/lib/ as the second search path.
...

The export command is temporary, will be reset,
when you close the terminal window.
...

sadlie 06-01-2010 04:50 PM

thanks a lot sir, it works perfect :)


All times are GMT -5. The time now is 11:39 PM.