LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-09-2003, 05:51 PM   #1
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Rep: Reputation: 15
Compile problems


Does slackware keep its library's in a nonstandard directory? I am having problems running ./configure so i can compile.

I'm running (or trying to run) slack 9.

I get the following error when trying to install anjuta (c/c++ IDE):

configure: error: Library requirements ( glib-2.0 >= 2.0.6 gtk+-2.0
>= 2.0.8 ORBit-2.0 >= 2.4.0 libglade-2.0 >= 2.0.0 libgnome-2.0 >=
2.0.2 libgnomeui-2.0 >= 2.0.2 libgnomeprint-2.2 >= 2.0.1 libgnome
printui-2.2 >= 2.0.1 gnome-vfs-2.0 >= 2.0.2 gnome-vfs-module-2.0 >= 2.0.2 l
ibbonobo-2.0 >= 2.0.0 libbonoboui-2.0 >= 2.0.1 vte >= 0.7.0 libzvt-2
.0 >= 2.0.0 libxml-2.0 >= 2.4.23 pango >= 1.1.1) not met; consider adjust
ing the PKG_CONFIG_PATH environment variable if your libraries are in a nonstand
ard prefix so pkg-config can find them.


I did run ldconfig.
I did google the problem.
I did search this forum.

Thanks for any help this is probably the first of many questions from me on this forum - I always try to find solutions myself before asking.

Greg
 
Old 06-09-2003, 07:20 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,627
Blog Entries: 10

Rep: Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776Reputation: 776
Quote:
Does slackware keep its library's in a nonstandard directory?
Not really ... however, if you compiled
any of those yourself, they most likely
end up in /usr/local, rather than /usr...

Try setting
Code:
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig
Cheers,
Tink
 
Old 06-09-2003, 07:47 PM   #3
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Original Poster
Rep: Reputation: 15
After playing around a while I realized I was missing one of the libs needed. The libzvt library. So I downloaded, compiled, and installed it. Ran ldconfig and such. But the ./configure for the program I was origionally trying to install STILL CANT FIND IT.

Don't you just hate it when you solve a problem only to realize you didnt?

Any ideas? I tried setting PKG_CONFIG_PATH to the dir with the libzvt-2.0.pc file... still no good.

Thanks for the help
greg

Last edited by Greg21; 06-09-2003 at 08:09 PM.
 
Old 06-09-2003, 08:08 PM   #4
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: Slackware Current, RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 650

Rep: Reputation: 32
that sounds like what happened when i was compiling xchat on SuSE ... and all the things i had to compile to get xchat to compile...

the key to it all was (if i recall correctly) that i needed to update pkconfig and then move the (or symlink) the executing file to another ../bin ... i think from /usr/local/bin to /usr/bin

I hope that helps ... it has been a long time now. Sorry
 
Old 06-10-2003, 05:42 AM   #5
notAcoolNick
Member
 
Registered: Apr 2003
Location: Oxford, MA, USA
Distribution: Slackware
Posts: 89

Rep: Reputation: 15
Greg,
If you install something new it is nice to confirm that ldconfig did see changes that were made. for example you can run ldconfig in verbose mode:

ldconfig -v | grep zvt

for example.
also
if you want to set PKG_CONFIG_PATH you should do it the way Tinkster pointed out. Note that if you have fresh Slackware install most probably /usr/local/lib/pkgconfig does not exist. i would recomend to create this directory before (re)installing libzvt (what the hell is it anyway?). alternatively you can configure libzvt to install in /usr/lib (and use existing /usr/lib/pkgconfig) with:

./configure --prefix=/usr

In general you should understand that configure scripts very often obtain requred information (location of libraries, compiler/linkir switches etc.) via various ways. It is alway usefull to refer to configure scrip options using:

./configure --help

Chances are that you might see availabel option looking somthing like this:

--with-zvt-path=.. or --whith-libzvt-path=...

for instance.

alternatively there might be an option regarding the place where pkg-configure should look for information.

also make sure when you install libzvt that installation script actually writes package configuration. that is try to find that file. try following command:

find /usr/lib/pkgconfig -name libzvt*pc -print

my version of what is happening is that when you install libzvt your default prefix is /usr/local. however /usr/local/lib/pckgconfig does not exist. so libzvt*pc gets dumped god knows where (if anywhere at all). or /usr/local/lib/pckgconfig/libzvt*pc gets created but you did not follow exactly to what Tinkster said and pkg-configure cannot find required information.

anyway you should experiment. it is a part of the deal when you install from source anyway. it's an adventure.
Good luck,
nick
 
Old 06-10-2003, 02:33 PM   #6
Greg21
Member
 
Registered: Jan 2002
Posts: 72

Original Poster
Rep: Reputation: 15
Ok I got it to configure thanks.

What dose "export" do? Should I add this line to my login script so I don't run into this problem again (all I had to do was add that dir to my pkg-config search path)?

Thanks Installing from source is always so much more fun and rewarding (of course it hasn't compiled yet, I'll cross my fingers)!

Greg
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
compile problems edgjerp Mandriva 2 12-08-2004 02:51 PM
problems after compile Gunslinger_ROL Slackware 7 06-18-2004 12:20 AM
Compile problems alaios Linux - General 1 05-13-2004 04:01 AM
Compile problems looper Linux - Software 11 01-15-2004 08:16 PM
compile problems zenerdiode Linux - Software 2 12-22-2000 11:42 AM


All times are GMT -5. The time now is 05:49 AM.

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
Open Source Consulting | Domain Registration