LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2001, 09:47 AM   #1
teeno
Member
 
Registered: Jul 2001
Posts: 72

Rep: Reputation: 15
Compiling Error!!


Good day to you all.

I am trying to get the DBI drivers working for MySql under RedHat 7.

When I run make for Msql-Mysql-modules-1.2216 I get the following error:

/usr/bin/ld: cannot find –lz.

What does this mean? How can I fix it?

When I try to run a perl script that connects to MySql under Apache I get the following error:

install_driver(mysql) failed: Can’t load ‘/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/DBD/mysql/mysql.so’ for module DBD::mysql: undefined symbol: uncompress at /usr/lib/perl5/site_perl/5.6.0/i386-linux/DynaLoader.pm line 206.

What does this mean? How can I fix it?
 
Old 08-17-2001, 10:38 AM   #2
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Have you got the gcc update? The RH7.0 install disc one didn't work.
Jim
 
Old 08-17-2001, 09:26 PM   #3
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
It looks like the linker is looking for libz.a which is either not in your -L path, or more likely it is not built on your machine. When you pass libaries to the linker it is done with -l<libname> where libname is the name of the library without the lib and the .a. So libz.a is the -lz library.

If you do not have zlib, download it from this site.
ftp://ftp.cdrom.com/pub/infozip/zlib/
Then build and install it. It should create a file called libz.a in the /usr/local/lib directory. (that is where it installs by default).

If you do have libz.a already, then check to see if the path to the file is include in a -L parameter to the linker.

Hope this helps

Gary
 
Old 08-20-2001, 03:16 AM   #4
teeno
Member
 
Registered: Jul 2001
Posts: 72

Original Poster
Rep: Reputation: 15
Nice one.

I have downloaded the zlib and install it. Everything seems to be working now.

Thank you.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while Compiling X shashir Linux - Software 1 09-03-2005 06:36 PM
[C++] Compiling error Ossar Programming 2 06-10-2005 03:32 PM
error compiling Qt 3.3.1 cyberfunk Linux - General 0 04-20-2004 08:27 PM
compiling error demmylls Linux - General 15 12-29-2003 12:31 AM
help with compiling error matt_w_lambert Linux From Scratch 2 09-13-2003 12:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:54 PM.

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