LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GLIB error while installing giFTcurs (https://www.linuxquestions.org/questions/linux-software-2/glib-error-while-installing-giftcurs-95021/)

Mehul_Sangani 09-20-2003 11:24 PM

GLIB error while installing giFTcurs
 
I'm trying to install client for giFT, I spend pretty much all day today but wasn't able to get it work.

While running ./configure I get below errors:
:
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: You need glib-2.0 to compile giFTcurs

I did install glib and for weird reason it installed in /usr/share/doc directory but it is there.

[root@localhost doc]# pwd
/usr/share/doc
[root@localhost doc]# ls | grep "glib"
glib-1.2.10
glib2-2.2.3
glibc-2.3.2
glibc-common-2.3.2

I looked at the configure source, and it seems like it fails while running pkg-config, so I tried running from command line

[root@localhost giFTcurs-0.6.1]# pkg-config --modversion glib-2.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

And yes I even tried setting environment varibale PKG_CONFIG_PATH to /usr/share/doc with no luck

I hope I have presented enough information to get it fixed. Really need your help guys.

MasterC 09-21-2003 01:23 AM

/usr/share/doc is really what it sounds like, a documentation directory. There shouldn't be any binaries in there. Instead, it looks like you might want to try to upgrade your pkg-config package instead. You can usually find decent documentation from your distro on upgrading things as major as glib and it's relatives (glib, gtk, pkg-config) or if not, and you want to from source, definitely read up from the page where you get the files from.

Cool

iceman47 09-21-2003 01:23 AM

install the development files of glib, most likely to be
libglib1.2-dev
libglib2.0-dev
glib1.2-dev
glib2.0-dev

or something like that, you get the picture right? ;)

johnewing 09-27-2003 12:18 PM

I had the exact same problem which was driving me crazy

To fix it you should install the glib2-devel rpm
for your distro. Should be on the install cd's somewhere

I use redhat so the filename for the rpm was
glib2-devel-2.2.11.rpm( got from www.rpmfind.net)

so to install
$ su
(enter root password)
#rpm -iv glib2-devel-2.2.11.rpm

after this run ./configure again and it should work

hope this helps you

J


All times are GMT -5. The time now is 03:21 PM.