PDA

View Full Version : Midnight Commander


Sam Owens
2003-09-25, 03:54 PM CDT
I've been trying to install this on Redhat 8 and met with a few
problems initially that weren't that difficult to overcome. The
install presents me with this:

Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
checking for glib-config... no
checking for glib12-config... no
checking for glib-config... no
checking for GLIB - version >= 1.2.6... no
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
configure: error: Test for glib failed.
GNU Midnight Commander requires glib 1.2.6 or above.


I need some help, please. Any hints are appreciated.

Thanks,

Sam

Vwakes
2003-09-25, 05:49 PM CDT
On Thu, 25 Sep 2003 Sam Owens wrote:

>Perhaps you should add the directory containing `glib-2.0.pc'
>to the PKG_CONFIG_PATH environment variable
>No package 'glib-2.0' found
>checking for glib-config... no
>checking for glib12-config... no
>checking for glib-config... no

I have RH 9, my .configure gave this:

+-----
checking for glib-2.0... yes
checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GLIB_LIBS... -lglib-2.0
+-----

So finding which pkg with one random file in that dir:

$ rpm -qf /usr/include/glib-2.0/glib.h
glib2-devel-2.2.1-1

>checking for GLIB - version >= 1.2.6... no
>*** The glib-config script installed by GLIB could not be found
>*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
>*** your path, or set the GLIB_CONFIG environment variable to the
>*** full path to glib-config.
>configure: error: Test for glib failed.
>GNU Midnight Commander requires glib 1.2.6 or above.

$ which glib-config
/usr/bin/glib-config

$ rpm -qf /usr/bin/glib-config
glib-devel-1.2.10-10

>I need some help, please. Any hints are appreciated.

So you need...

$ rpm -qa |grep glib
glib-1.2.10-10
glib-devel-1.2.10-10
glib2-2.2.1-1
glib2-devel-2.2.1-1
....

....the above 4 pkgs.

V.

Sam Owens
2003-09-25, 07:23 PM CDT
Thank You. I was missing a file. You're a good man.

Sam
>
> So you need...
>
> $ rpm -qa |grep glib
> glib-1.2.10-10
> glib-devel-1.2.10-10
> glib2-2.2.1-1
> glib2-devel-2.2.1-1
> ...
>
> ...the above 4 pkgs.
>
> V.