LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-26-2009, 11:38 AM   #1
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Rep: Reputation: 15
Installing from source: When 'make' fails...


Hi!

I'm installing perl module DBD-mysql-4.004 from DBD-mysql-4.004.tar.gz. perl Makefile.PL was ok
make gave errors

some of them are illustrated below
.
.
.
.
dbdimp.c:4468: error: invalid lvalue in increment
dbdimp.c:4468: warning: statement with no effect
dbdimp.c:4471: error: âimp_dbh_tâ has no member named âstatsâ
dbdimp.c:4471: error: request for member âauto_reconnects_okâ in something not a structure or union
dbdimp.c:4471: error: invalid lvalue in increment
dbdimp.c:4471: warning: statement with no effect
dbdimp.c: In function âmysql_db_quoteâ:
dbdimp.c:4628: warning: implicit declaration of function âmysql_real_escape_stringâ
dbdimp.c:4628: error: âimp_dbh_tâ has no member named âmysqlâ
dbdimp.c: In function âmysql_db_last_insert_idâ:
dbdimp.c:4643: error: âimp_dbh_tâ has no member named âmysqlâ
dbdimp.c:4643: warning: passing argument 2 of âPerl_sv_2mortalâ makes pointer from integer without a cast
make: *** [dbdimp.o] Error 1
[root@monserveur DBD-mysql-4.004]#

What is the cure to those errors? Should I change the configuration options for perl Makefile.PL, i.e.default/automatik configuration option are the source of errors? (All dependencies were installed, that is perl Makefile.PL didn't ask for any dependency missing)

Or is the package corrupted? That is should I redownload it? Please advice how to handle errors in make, make test or make install

Stefano

P.S. I'm using CentOS-5.3
 
Old 06-26-2009, 06:04 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,272

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
# yum -y install mysql-devel
should do.

The errors you get appear with missing 'mysql.h'.
( Have a look where the errors begin.)

DBD::mysql ... the current version is 4.012
http://search.cpan.org/~capttofu/DBD...b/DBD/mysql.pm

Generally about perl modules : much easier to get with
the cpan shell : # cpan , cpan > install <MODULE::NAME>
if # yum search <package> gives no result.
( The package 'perl-DBD-mysql' is available from the
rpmforge repo only, I think.)
.....

Last edited by knudfl; 06-26-2009 at 06:12 PM.
 
Old 06-27-2009, 02:22 AM   #3
stefanolima
Member
 
Registered: Jul 2008
Location: Dar-es-Salaam
Distribution: Fedora,CentOS,Ubuntu
Posts: 60

Original Poster
Rep: Reputation: 15
Sure! I updated mysql-devel and I could then install DBD::mysql
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't use make command when installing from source thomasw92 Linux - Newbie 2 03-25-2006 04:03 PM
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 10:11 AM
installing software from source, make uninstall question darkleaf Linux - Software 2 08-19-2004 05:18 PM
installing binutils 2.15, make claims the cpp fails the sanity check 2verb Linux - Software 1 07-24-2004 12:59 AM
MAKE, installing source packages, etc...can someone explain this or at least... squirrels Linux - Newbie 16 06-14-2004 05:00 PM


All times are GMT -5. The time now is 10:56 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration