LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
Search this Thread
Old 01-29-2007, 09:15 PM   #1
JAKK
Member
 
Registered: Jun 2006
Distribution: Slackware 11
Posts: 92

Rep: Reputation: 15
pkg-config can't find installed package


Hi. I am trying to install geany. When I do ./configure,I get the following message
Code:
which: no svn in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin)
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PACKAGE... configure: error: Package requirements (gtk+-2.0 >= 2.6.0) were not met:

No package 'gtk+-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PACKAGE_CFLAGS
and PACKAGE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
The thing is,I have gtk+ 2.8.x installed. I'm not sure why it can't find it.
 
Old 01-29-2007, 09:35 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
It compiles fine for me. Where do you have that gtk+-2.8.x installed ? Did you compile it yourself ?

I have 'gtk+2-2.8.20-i486-1.tgz' that came with slackware, and it configures and compiles just fine using that.

Also, are you using the svn or release version of geany ? (I used release)

EDIT: I didn't even know about geany until now. Glad you brought it up, seems to be a very nice IDE ... just what I was looking for

Last edited by H_TeXMeX_H; 01-29-2007 at 09:47 PM.
 
Old 01-29-2007, 09:57 PM   #3
JAKK
Member
 
Registered: Jun 2006
Distribution: Slackware 11
Posts: 92

Original Poster
Rep: Reputation: 15
Hi. I also have the gtk+ 2.0 slack version. It's in /etc/gtk-2.0. I'm trying to compile geany from source since the most recent slack package I could find was .7. I really want to use geany because it seems so light which is what I need since I run on a 300mhz celly.
 
Old 01-29-2007, 10:16 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I would reinstall that package ('gtk+2-2.8.20-i486-1.tgz') just to make sure.

If that doesn't work then try what it suggests and set 'PKG_CONFIG_PATH' to wherever gtk is installed.

Code:
export PKG_CONFIG_PATH=gtk-path-goes-here

Last edited by H_TeXMeX_H; 01-29-2007 at 10:21 PM.
 
Old 01-29-2007, 11:18 PM   #5
JAKK
Member
 
Registered: Jun 2006
Distribution: Slackware 11
Posts: 92

Original Poster
Rep: Reputation: 15
Hi. I tried both of those options,and the same thing still happens. I have gtk+2 installed to /etc/gtk-2.0. I did
Code:
export PKG_CONFIG_PATH=/etc/gtk-2.0
then ./configure.
 
Old 01-29-2007, 11:30 PM   #6
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Are you sure that's where it is installed ?

That would be a very odd place for it to be installed, a place it doesn't belong. (some files from the package exist in /etc, but that's not where it is installed)

It's installed in /usr

To check if the package is installed look in your /var/log/packages for it. Also check that the file /usr/lib/gtk+-2.0.pc exists.
 
Old 01-30-2007, 06:58 PM   #7
JAKK
Member
 
Registered: Jun 2006
Distribution: Slackware 11
Posts: 92

Original Poster
Rep: Reputation: 15
Hi. I do have that file in /usr/lib. Where exactly should I be pointing pkg-config.
 
Old 01-30-2007, 07:00 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I think to /usr

Did you reinstall 'gtk+2-2.8.20-i486-1.tgz' ?
 
Old 01-30-2007, 07:49 PM   #9
JAKK
Member
 
Registered: Jun 2006
Distribution: Slackware 11
Posts: 92

Original Poster
Rep: Reputation: 15
Hi. I did reinstall the package. Right now I am doing

Code:
export PKG_CONFIG_PATH=/usr
And then running ./configure. It still comes up with the same message. I also noticed that at the end of the error it say something about being able to turn the call off for pkg-config,but I'm not sure if that would fix it. Also,at the end of the info for the package it says

Code:
FILE LIST:
./
etc/
etc/gtk-2.0/
EDIT:I made some progress. If I change the variable to /usr/lib/pkgconfig. I get
Code:
checking for PACKAGE... configure: error: Package requirements (gtk+-2.0 >= 2.6.0) were not met:

Package xrender was not found in the pkg-config search path.
Perhaps you should add the directory containing `xrender.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xrender', required by 'cairo', not found
I'm not sure if that's better or not. Everything I could find about xrender seemed to be outdated.

Last edited by JAKK; 01-30-2007 at 08:40 PM.
 
Old 01-30-2007, 09:06 PM   #10
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Is there a file called xrender.pc in '/usr/lib/pkgconfig' ? (there should be ... there is for me)

Also, do you have all these installed:
Quote:
For compiling Geany yourself, you will need the GTK (>= 2.6.0) libraries and header files. You will also need the Pango, Glib and ATK libraries and header files.
EDIT: If it really doesn't work I could upload a binary of it if you want me to.

Last edited by H_TeXMeX_H; 01-30-2007 at 09:10 PM.
 
Old 01-30-2007, 10:10 PM   #11
JAKK
Member
 
Registered: Jun 2006
Distribution: Slackware 11
Posts: 92

Original Poster
Rep: Reputation: 15
Hi. I do not have the xrender file. However,I'm not sure what to do since all searches showed that xrender was old and had some vulnerabilities. I could not find any xrender package for slackware. I checked,and I do have all other packages.
 
Old 01-31-2007, 08:53 PM   #12
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
xrender might be a part of x11 ? Anyone know which package it is a part of ? I don't have time to look right now. Reinstall all the packages in the x directory on the DVD/CD, it should be in one of them ... or check them one by one.
 
Old 01-31-2007, 10:55 PM   #13
JAKK
Member
 
Registered: Jun 2006
Distribution: Slackware 11
Posts: 92

Original Poster
Rep: Reputation: 15
Hi. I had to install x11-devel to get it to work. Thanks for your help.
 
Old 01-31-2007, 11:08 PM   #14
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Great ... no problem
 
Old 02-02-2007, 02:37 PM   #15
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,452

Rep: Reputation: Disabled
Quote:
Anyone know which package it is a part of ?
If you want to know what package an installed file belongs to you can just

Code:
grep -r filename /var/log/packages
Slackware: The joy of simplicity:-)

Brian
 
  


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 find if package is installed Redbone981sl Ubuntu 4 01-23-2007 06:03 PM
pkg-config won't find .pc files achemdion Linux From Scratch 6 09-30-2006 08:32 AM
pkg-config cannot find gtkglext siht Linux - Software 3 07-15-2005 08:17 PM
DPKG & "files list file for package `pkg-config' contains empty filename" error :( Angelus Debian 2 04-02-2005 07:34 AM
PKG-CONFIG, Installed Yet Not? inescapeableus Linux - Software 2 07-25-2004 08:48 AM


All times are GMT -5. The time now is 08:19 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 Google+: linuxquestions
Open Source Consulting | Domain Registration