LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Another installing problem ! (https://www.linuxquestions.org/questions/linux-newbie-8/another-installing-problem-90787/)

Baran 09-09-2003 02:45 AM

Another installing problem !
 
Hi,

I was trying to install "sinek" (GUI for xine) from source. I wrote

./configure

but I had such an error

checking for bison... bison
checking version of bison... v. ?.??, bad
checking for catalogs to be installed... de es fr ru
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.0.0... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

configure: error: Library requirements (glib-2.0 >= 2.0.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.
[root@localhost sinek-0.7]#



My system is

Red Hat 9.0
Linux Kernel 2.4.20
GCC 3.2.1
GNU libc 2.3.2

What sould I do !

daveo 09-09-2003 05:21 AM

Re: Another installing problem !
 
Quote:

Originally posted by Baran
Hi,

I was trying to install "sinek" (GUI for xine) from source. I wrote

./configure

but I had such an error

checking for bison... bison
checking version of bison... v. ?.??, bad
checking for catalogs to be installed... de es fr ru
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.0.0... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

configure: error: Library requirements (glib-2.0 >= 2.0.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.
[root@localhost sinek-0.7]#



My system is

Red Hat 9.0
Linux Kernel 2.4.20
GCC 3.2.1
GNU libc 2.3.2

What sould I do !

Actually this means that the required package glib is not found in the search path, where it should actually exists. You should be able to define where it is located by typeing:

dave@twister dave $ whereis glib-2.0.pc
glib-2.0: /usr/lib/glib-2.0 /usr/include/glib-2.0 /usr/share/glib-2.0

As you see above, the path is defined. Now you should read the install notes, to know what --prefix is needed to define the path to glib-2.0 and add it together with the ./configure --prefix=bla.

Good luck!

hamish 09-10-2003 04:43 AM

Hey,

How does one alter the PKG_CONFIG_PATH path?

I have a similar error:

checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

I understand that I need to alter a file to tell the file to look for Glib in a specific direcory. How do I do this?

thanks
hamish

daveo 09-10-2003 05:03 AM

Quote:

Originally posted by hamish
Hey,

How does one alter the PKG_CONFIG_PATH path?

I have a similar error:

checking for glib-2.0 >= 2.1.4 atk >= 1.0.1 pango >= 1.0.1... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found

I understand that I need to alter a file to tell the file to look for Glib in a specific direcory. How do I do this?

thanks
hamish

The variable might be set by: export PKG_CONFIG_PATH=/path/to/app NOTE: this propably is a path defined for more apps. Type "set" without quotes and check what path is set currently ...

Baran 09-10-2003 08:14 AM

Thanks daveo,
I tried what you have said and I got these

[root@localhost / ]# whereis glib-2.0.pc
glib-2.0:
[root@localhost / ]# whereis glib
glib: /usr/lib/glib

does this mean that I don't have the file glib-2.0.pc?

my system is

Red Hat 9.0
Linux Kernel 2.4.20
GCC 3.2.1
GNU libc 2.3.2

I should have got that isn't it?

By the way I search "glib*pc" in my disk and it found a file:

/usr/lib/pkgconfig/glib.pc

I am confused..!

And I read the installation document; if I understood that correctly I should add the path like this...

[root@localhost sinek-0.7]# ./configure --exec-prefix=/usr/lib/pkgconfig

however this didn't work either.

Now what should I do?

daveo 09-10-2003 08:34 AM

Quote:

Originally posted by Baran
Thanks daveo,
I tried what you have said and I got these

[root@localhost / ]# whereis glib-2.0.pc
glib-2.0:
[root@localhost / ]# whereis glib
glib: /usr/lib/glib

does this mean that I don't have the file glib-2.0.pc?

my system is

Red Hat 9.0
Linux Kernel 2.4.20
GCC 3.2.1
GNU libc 2.3.2

I should have got that isn't it?

By the way I search "glib*pc" in my disk and it found a file:

/usr/lib/pkgconfig/glib.pc

I am confused..!

And I read the installation document; if I understood that correctly I should add the path like this...

[root@localhost sinek-0.7]# ./configure --exec-prefix=/usr/lib/pkgconfig

however this didn't work either.

Now what should I do?

1. I don't know if this glib is a rpm package but, try to update it. Find a package at CD 1 to the version you have at the moment or even higher (recommend if available)

rpm -u glibc-2.3.2.rpm (just an example)

2. Try this (if it works) "ldconfig" without the quotes, do you have that ? I hope you have, as it's part of de glibc :-) If not exists - update it. glibc-2.3.2 is in CD 1

Hope this helps ...

Baran 09-11-2003 02:20 AM

thanks I will try that

ami 10-15-2003 05:46 AM

Hi.

I experienced the same problem during the configuration of mono.
I installed the glib2-devel-2.2.1-1.i386.rpm
(rpm -U glib2-devel-2.2.1-1.i386.rpm), and it solved the glib-2.0.pc error.

Hope this helps.


All times are GMT -5. The time now is 03:00 AM.