LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2005, 02:40 AM   #1
sinXposed
LQ Newbie
 
Registered: Mar 2005
Location: CA
Posts: 9

Rep: Reputation: 0
pkg-config


i was trying to ./configure a program and i got this error...

checking for pkg-config... no
*** The pkg-config script could not be found. Make sure it is
*** in your path, or set the PKG_CONFIG environment variable
*** to the full path to pkg-config.
*** Or see 'the web address.. i cant paste it cuz i dont have 5 posts' to get pkg-config.
configure: error: Library requirements (
libgnomeui-2.0
gconf-2.0
libglade-2.0
) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


i then went to the link and downloaded and installed the pkg-config ... but i downloaded it to my 'home' dir and just installed it there .. so the directory is ' /home/sinXposed/pkgconfig-0.15.0' .. i tried to ./configure again and it gave me the same error .. do i need to install pkconfig to another folder.. or can i change something so where the link is to where i installed it to.
 
Old 03-28-2005, 02:44 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what distro
 
Old 03-28-2005, 02:46 AM   #3
sinXposed
LQ Newbie
 
Registered: Mar 2005
Location: CA
Posts: 9

Original Poster
Rep: Reputation: 0
suse 9.2 ... im running GNOME 2.6

linux:/home/sinXposed/Documents/gTweakUI-0.4.0 # echo $PKG_CONFIG_PATH
/opt/gnome/lib/pkgconfig


in that folder there is like 10 .pc files ... like gaim gconf .. etc ... if it helps at all
 
Old 03-28-2005, 02:56 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
check with Yast and make sure you have pkg-config installed, according to configure you don't have it ( notice it is asking for the PKG_CONFIG env. variable not PKG_CONFIG_PATH) or type "pkg-config" in a terminal, if you get a command not found error, most likely you are missing it. you can compile it (pkg-config) from source, but you need to install it somewhere that the system can pick it up ( or set your environmental variables to point to it - there are always multiple ways of doing things so sorry if I sound a little confusing). The easiest way would be use Yast, if you have to configure it, Suse probably puts it in /opt/gnome ( e.g. ./configure --prefix=/opt/gnome) with all of the rest of gnome.
 
Old 03-28-2005, 03:19 AM   #5
sinXposed
LQ Newbie
 
Registered: Mar 2005
Location: CA
Posts: 9

Original Poster
Rep: Reputation: 0
i downloaded pkg-config ... and then it was in my home dir.. extracted it.. and then ran

./configure
make
make install

im not sure if everything worked or not.. it didnt say ERROR.. but i dont know how its suppose to look.. what does this all mean..

Code:
linux:/home/sinXposed/pkgconfig-0.15.0 # make install
Making install in glib-1.2.8
make[1]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8'
Making install in .
make[2]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8'
make[3]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8'
make[2]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8'
Making install in gmodule
make[2]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gmodule'
make[3]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gmodule'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gmodule'
make[2]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gmodule'
Making install in gthread
make[2]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gthread'
make[3]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gthread'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gthread'
make[2]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/gthread'
Making install in docs
make[2]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/docs'
make[3]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/docs'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/docs'
make[2]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/docs'
Making install in tests
make[2]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/tests'
make[3]: Entering directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/tests'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/tests'
make[2]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8/tests'
make[1]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0/glib-1.2.8'
make[1]: Entering directory `/home/sinXposed/pkgconfig-0.15.0'
make[2]: Entering directory `/home/sinXposed/pkgconfig-0.15.0'
/bin/sh ./mkinstalldirs /usr/local/bin
 /bin/sh ./libtool  --mode=install /usr/bin/install -c  pkg-config /usr/local/bin/pkg-config
/usr/bin/install -c pkg-config /usr/local/bin/pkg-config
make  install-man1
make[3]: Entering directory `/home/sinXposed/pkgconfig-0.15.0'
/bin/sh ./mkinstalldirs /usr/local/man/man1
 /usr/bin/install -c -m 644 ./pkg-config.1 /usr/local/man/man1/pkg-config.1
make[3]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0'
/bin/sh ./mkinstalldirs /usr/local/share/aclocal
 /usr/bin/install -c -m 644 ./pkg.m4 /usr/local/share/aclocal/pkg.m4
make[2]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0'
make[1]: Leaving directory `/home/sinXposed/pkgconfig-0.15.0'
and then i try to type pkg-config and still get this.

linux:/home/sinXposed/Documents/gTweakUI-0.4.0 # pkg-config
bash: pkg-config: command not found

im retarted guys... sorry

i tried to use YAST .. but to import a file in there it has to be like a .sel .. and i couldnt find pkg-config as an rpm or .sel or anything else besides a .tar.gz ...

when i still search in yast for "pkg" .. nothing shows up

Last edited by sinXposed; 03-28-2005 at 03:22 AM.
 
Old 03-28-2005, 03:33 AM   #6
sinXposed
LQ Newbie
 
Registered: Mar 2005
Location: CA
Posts: 9

Original Poster
Rep: Reputation: 0
forget that last post.. if i would have searched for 2 more seconds i found a pkgconfig rpm ... but i now get another error..

Code:
checking for
        libgnomeui-2.0
        gconf-2.0
        libglade-2.0
... Package libgnomeui-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgnomeui-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgnomeui-2.0' found
 
configure: error: Library requirements (
        libgnomeui-2.0
        gconf-2.0
        libglade-2.0
) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

i went to yast and it shows i have libgnomeui-2.0 installed...

but when i goto /opt/gnome/lib/pkgconfig .. i have a lot of files but libgnomeui-2.0.pc .. can i just download that file somewhere and stick it in there or does it have important info that is signifigant to each comp.. i dont know why it shows that i have it installed in yast but the .pc file isnt there..??
 
Old 03-28-2005, 03:43 AM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
on rpm distro's, packages are split into two parts. you already have the libgnomeui-x.x.x package, it contains the libgnomeui libraries needed by programs to run. there will be another package called libgnomeui-x.x.x-devel - thats the one you need, it will have the headers, pkg-config files, any scripts etc... needed for compiling against the libgnomeui libraries.

edit: for your pkg-config problem above where you did ./configure, make, make install, some distro's don't have /usr/local/bin set in the PATH by default, so even though it was installed the system wouldn't know. echo your PATH and see if /usr/local/bin shows in the list.

Last edited by __J; 03-28-2005 at 03:45 AM.
 
Old 03-28-2005, 04:02 AM   #8
sinXposed
LQ Newbie
 
Registered: Mar 2005
Location: CA
Posts: 9

Original Poster
Rep: Reputation: 0
i tired to use a libgnomeui devel ifound on rpmfind... and this is what happened..

linux:/home/sinXposed # rpm -ivh libgnomeui-devel-2.6.2-1.i386.rpm
warning: libgnomeui-devel-2.6.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 30c9ecf8
error: Failed dependencies:
GConf2-devel >= 2.3.0 is needed by libgnomeui-devel-2.6.2-1
ORBit2-devel >= 2.6.0 is needed by libgnomeui-devel-2.6.2-1
esound-devel is needed by libgnomeui-devel-2.6.2-1
esound-devel >= 1:0.2.27 is needed by libgnomeui-devel-2.6.2-1
glib2-devel >= 2.2.0 is needed by libgnomeui-devel-2.6.2-1
gnome-vfs2-devel >= 2.5.3 is needed by libgnomeui-devel-2.6.2-1
gtk2-devel >= 2.2.0 is needed by libgnomeui-devel-2.6.2-1
libart_lgpl-devel >= 2.3.8 is needed by libgnomeui-devel-2.6.2-1
libbonobo-devel >= 2.3.6-2 is needed by libgnomeui-devel-2.6.2-1
libbonoboui-devel >= 2.3.6 is needed by libgnomeui-devel-2.6.2-1
libglade2-devel >= 2.0.0 is needed by libgnomeui-devel-2.6.2-1
libgnome-devel >= 2.2.0 is needed by libgnomeui-devel-2.6.2-1
libgnomecanvas-devel >= 2.0.0 is needed by libgnomeui-devel-2.6.2-1
libgnomeui = 2.6.2 is needed by libgnomeui-devel-2.6.2-1
libxml2-devel >= 2.5 is needed by libgnomeui-devel-2.6.2-1
pango-devel >= 1.2.0 is needed by libgnomeui-devel-2.6.2-1
zlib-devel is needed by libgnomeui-devel-2.6.2-1

thanks for the paitance and help all..
 
Old 03-28-2005, 04:27 AM   #9
sinXposed
LQ Newbie
 
Registered: Mar 2005
Location: CA
Posts: 9

Original Poster
Rep: Reputation: 0
whats the difference between all the

i386
i586
x86_64

and all the other versions?

which should i be running since i just have a 32bit 1.2GHz processor ... basically its a typical stock machine...

would that be apart of all the problems im having?

i'm almost positive i have i386 installed... and what would you guys suggest the best distro of linux is for basically newbies..

Last edited by sinXposed; 03-28-2005 at 04:30 AM.
 
Old 03-28-2005, 07:21 AM   #10
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
This means that the libraries have dependencies that need installed before it can be.
You'll need to use something such as Yun to install the package
Code:
man yum
for details.
 
Old 03-28-2005, 11:36 AM   #11
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
personally I don't recommend rpmfind for a package that comes with a distro like this..

I'd try to either use Yast or look on your install cd's/dvd and get the package, use Yast to install it.

you probably have i386 installed by default, i586 will work for you also with that processor ( and i686).
 
Old 03-28-2005, 12:40 PM   #12
Tudor Stefan
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Thank you kindly. This information is very usefull for me. Great site! Thanks again!

-------------------------------------------------------------------------------------------------------
http://www.neolink.ro
 
Old 10-30-2008, 06:48 AM   #13
mathb
LQ Newbie
 
Registered: Oct 2008
Posts: 7

Rep: Reputation: 0
i am trying to compile pfg-config-0.22 for arm9 board . the native system im working on is fedora-2.6.21

i have glib-2.17.3 already installed in a path /root/usr and while ./configure i give --prefix=/root/usr

now when i try to build pkg-config-0.22 i get the error

checking for i686-linux-gcc... (cached) arm-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gnu-gcc accepts -g... (cached) yes
checking for arm-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of arm-linux-gnu-gcc... (cached) gcc3
checking for arm-linux-gnu-gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for extra flags to get ANSI library prototypes... configure: error: cannot run test program while cross compiling
See `config.log' for more details.
configure: error: ./configure failed for glib-1.2.8


could anyone help me solve this issue .

thanks
 
  


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
pkg-config brimble2010 SUSE / openSUSE 3 05-19-2008 09:01 AM
pkg-config supersucker Linux - Software 3 09-07-2004 10:45 AM
pkg-config help gexzd Linux - Newbie 14 05-03-2004 11:27 AM
How do i use PKG-Config? A1Ph4 Linux - Software 1 08-08-2003 10:06 PM
pkg-config TraCe66 Linux - Newbie 1 07-01-2003 03:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:02 PM.

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