LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-03-2002, 12:07 AM   #1
robmuro
LQ Newbie
 
Registered: Aug 2002
Location: Mexico
Distribution: MDK
Posts: 6

Rep: Reputation: 0
Unhappy GLIB working?


I'm a newbie to linux and I'm trying to install Ksirtet (tetrix). As usual the configure, make and make install things when I do the configure I get an error this is from the config.log
--------------------------------------------------
int main() {
killpg()
; return 0; }
configure:4171: checking size of int
configure:4190: gcc -o conftest -O2 conftest.c 1>&5
configure:4209: checking size of long
configure:4228: gcc -o conftest -O2 conftest.c 1>&5
configure:4247: checking size of char *
configure:4266: gcc -o conftest -O2 conftest.c 1>&5
configure:4285: checking size of char
configure:4304: gcc -o conftest -O2 conftest.c 1>&5
configure:4325: checking for dlopen in -ldl
configure:4369: checking for shl_unload in -ldld
configure:4388: gcc -o conftest -O2 conftest.c -ldld 1>&5
/usr/bin/ld: cannot find -ldld
collect2: ld returned 1 exit status
configure: failed program was:
#line 4377 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char shl_unload();

int main() {
shl_unload()
; return 0; }
configure:4417: checking for extra includes
configure:4448: checking for extra libs
configure:4482: checking for libz
configure:4508: gcc -o conftest -O2 conftest.c -lz -lresolv 1>&5
configure:4501:17: zlib.h: No such file or directory
configure: failed program was:
#line 4499 "configure"
#include "confdefs.h"

#include<zlib.h>

int main() {
return (zlibVersion() == ZLIB_VERSION);
; return 0; }
----------------------------------------------------
this is my question how can I find out if my GLIB is working properly or if I have it installed/loaded? if this is the problem. HELP.


thank

Rob
 
Old 08-03-2002, 12:17 AM   #2
naz
Member
 
Registered: Aug 2002
Location: Malaysia
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
Use the command:

rpm -q zlib

to see if you have zlib installed - if it isn't you can find one from rpmfind.net:

http://www.rpmfind.net/linux/rpm2htm...php?query=zlib

Since you look like you're using Mandrake, an RPM for Mandrake (MDK) or RedHat should do the trick.

If zlib *is* already installed, then list out the files with

rpm -ql zlib

You're looking for the zlib.h entry, this will allow you to run configure with:

configure --with-zlib=/path/to/zlibheader


naz
 
Old 08-03-2002, 01:13 AM   #3
robmuro
LQ Newbie
 
Registered: Aug 2002
Location: Mexico
Distribution: MDK
Posts: 6

Original Poster
Rep: Reputation: 0
thanks that was IT....
 
Old 08-03-2002, 08:46 AM   #4
naz
Member
 
Registered: Aug 2002
Location: Malaysia
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
Oops, slight error - development files are usually in "packagename-devel", so the zlib.h header might be in the zlib-devel rpm. Some distributions include the header files in the main rpm anyway though.

naz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
conflicting glib versions and glib-config scius Linux - Software 5 06-03-2008 02:35 AM
xmms install (needs glib>1.22), just installed glib 2.4.8 and still get error message eskiled Linux - Software 2 12-19-2005 09:12 PM
[GLIB] Problems Installing GLIB ThA_eLMo_GoD Linux - Newbie 2 09-04-2004 05:27 PM
Two issues: groff not working properly and updated glib being installed not noticed.. EnigmaX Linux - General 0 08-08-2004 06:58 PM
can't install gtk 2.4.4: "Requested 'glib-2.0 >= 2.4.0' but version of GLib is 2.2.3 webazoid Linux - Software 0 07-15-2004 06:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:14 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