LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   glib 2.6.0 will not create pc files in pkg folder (https://www.linuxquestions.org/questions/linux-newbie-8/glib-2-6-0-will-not-create-pc-files-in-pkg-folder-273636/)

humble20 01-04-2005 06:25 AM

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.

__J 01-04-2005 06:33 AM

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...)

humble20 01-04-2005 06:59 AM

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.

__J 01-04-2005 07:02 AM

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.

__J 01-04-2005 07:04 AM

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.

humble20 01-04-2005 08:24 AM

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

humble20 01-04-2005 08:37 AM

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


All times are GMT -5. The time now is 01:04 PM.