LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 06-01-2010, 01:58 PM   #1
sadlie
LQ Newbie
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 2

Rep: Reputation: 0
[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
 
Old 06-01-2010, 03:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by sadlie View Post
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
 
Old 06-01-2010, 04:02 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,682

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
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.
...
 
Old 06-01-2010, 04:50 PM   #4
sadlie
LQ Newbie
 
Registered: May 2010
Distribution: Slackware 13.0
Posts: 2

Original Poster
Rep: Reputation: 0
thanks a lot sir, it works perfect
 
  


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
how to include the path of exe in the ld library path? malli42108 Linux - Networking 10 09-17-2009 09:21 AM
library path Scott7 Debian 1 10-19-2005 07:25 AM
library path variable vrdhananjay Linux - Software 2 09-03-2005 06:31 PM
How do I add library path? scc28y Linux - Newbie 5 03-18-2005 10:56 PM
GD Library path? kinkybullet Linux - Newbie 1 02-11-2004 09:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration