LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-04-2005, 06:25 AM   #1
humble20
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake official 10.1
Posts: 7

Rep: Reputation: 0
glib 2.6.0 will not create pc files in pkg folder


I have configured and installed glib 2.6.0 but it doesn't add the pc files to the pkg folder so that other programs would find it. It says in the readme that I sould set the pkg config path to the directory where the base files are and the run the couple of commands listed in the readme. My problem is that I don't know how to set the pkg config path. Please describe it as detailed as you can because I don't too much about linux.
 
Old 01-04-2005, 06:33 AM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Errr...it should install them no matter what.
but to set the path:

export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH (this sets /usr/local/lib to the beginning of the path)

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib (this sets /usrlocal/lib to the end of the path)

When you run "make install" it installs (or should) the file in the prefix's pkgconfig folder whether it is in the path or not. Where are you installing glib at ( as in /usr/, /usr/local, etc...)
 
Old 01-04-2005, 06:59 AM   #3
humble20
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake official 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
I have installed like this
./configure && make && rm -rf /install-prefix/include/glib.h /install-prefix/include/gmodule.h && make install

all this is done in root terminal. I guess it instals them in some default location, but don't know what this is.
 
Old 01-04-2005, 07:02 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
By default if you don't specify to configure a prefix (as in ./configure --prefix=/usr) /usr/local is assumed.

check /usr/local/lib/pkgconfig for the .pc file and export the path with the command in the above post.
 
Old 01-04-2005, 07:04 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
generally it is also ./configure, make , make install -- if you want to compile other libs and programs against this glib you will need those headers.
 
Old 01-04-2005, 08:24 AM   #6
humble20
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake official 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
I found the pc files in usr/local/lib but when I excuted the comands you gave me pango still didn't find it.

I wrote the comand like this

[root@a2ab pentti]# export PKG_CONFIG_PATH=/usr/local/lib:$PKG_CONFIG_PATH
[root@a2ab pentti]# export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib

What am I doing wrong?

Should I just reinstall the glib and use a prefix
 
Old 01-04-2005, 08:37 AM   #7
humble20
LQ Newbie
 
Registered: Jan 2005
Distribution: Mandrake official 10.1
Posts: 7

Original Poster
Rep: Reputation: 0
I tried to install glib with a prefix and it worked ATK found it and Pango found it, but pango gave me this error while configuring it

./configure: line 22188: syntax error near unexpected token `1.0'
./configure: line 22188: `GTK_DOC_CHECK(1.0)'

What does this mean and how can I fix it
 
  


Reply



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
problem with glib pkg conf :(:(:( wojtix Linux - Software 1 11-28-2005 10:35 PM
pkg-config and glib: Uninstalling Old and Installing New CooManChu Linux - Software 6 09-06-2005 03:35 PM
building kde... glib, pkg-tool wtf? miko3k Linux - Software 2 06-21-2005 10:34 AM
how can i default the max folder file size when it create inside a folder antony_csf Linux - Software 1 06-17-2004 02:26 AM
How can I create a link to a folder that shows hidden files? Mubli Linux - Newbie 2 06-04-2004 07:36 PM

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

All times are GMT -5. The time now is 03:31 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
Open Source Consulting | Domain Registration