Help needed for installing perl-DBD-MySQL

  • jshaulis
  • Student
  • Student
  • jshaulis
  • Posts: 70

Post 3+ Months Ago

I am a hardcore newbie here. I am using webmin on a SuSE Linux 8.0 OS. I am tring to install DBD::mySQL though webmin. I keep getting errors as follows:

Untarring module file
Executing gunzip -c /tmp/.webmin/DBD-mysql-2.9003.tar.gz | tar xvf - ..

DBD-mysql-2.9003/
DBD-mysql-2.9003/t/
DBD-mysql-2.9003/t/mysql2.t
DBD-mysql-2.9003/t/akmisc.t
DBD-mysql-2.9003/t/60leaks.t
DBD-mysql-2.9003/t/10dsnlist.t
DBD-mysql-2.9003/t/ak-dbd.t
DBD-mysql-2.9003/t/50chopblanks.t
DBD-mysql-2.9003/t/mysql.t
DBD-mysql-2.9003/t/lib.pl
DBD-mysql-2.9003/t/40blobs.t
DBD-mysql-2.9003/t/40nulls.t
DBD-mysql-2.9003/t/insertid.t
DBD-mysql-2.9003/t/40listfields.t
DBD-mysql-2.9003/t/40bindparam.t
DBD-mysql-2.9003/t/mysql.dbtest
DBD-mysql-2.9003/t/dbdadmin.t
DBD-mysql-2.9003/t/20createdrop.t
DBD-mysql-2.9003/t/00base.t
DBD-mysql-2.9003/t/30insertfetch.t
DBD-mysql-2.9003/t/40numrows.t
DBD-mysql-2.9003/t/50commit.t
DBD-mysql-2.9003/t/mysql.mtest
DBD-mysql-2.9003/MANIFEST
DBD-mysql-2.9003/myld
DBD-mysql-2.9003/dbdimp.c
DBD-mysql-2.9003/lib/
DBD-mysql-2.9003/lib/DBD/
DBD-mysql-2.9003/lib/DBD/mysql/
DBD-mysql-2.9003/lib/DBD/mysql/GetInfo.pm
DBD-mysql-2.9003/lib/DBD/mysql/INSTALL.pod
DBD-mysql-2.9003/lib/DBD/mysql.pm
DBD-mysql-2.9003/lib/Mysql/
DBD-mysql-2.9003/lib/Mysql/Statement.pm
DBD-mysql-2.9003/lib/Bundle/
DBD-mysql-2.9003/lib/Bundle/DBD/
DBD-mysql-2.9003/lib/Bundle/DBD/mysql.pm
DBD-mysql-2.9003/lib/Mysql.pm
DBD-mysql-2.9003/dbdimp.h
DBD-mysql-2.9003/mysql.xs
DBD-mysql-2.9003/MANIFEST.SKIP
DBD-mysql-2.9003/README
DBD-mysql-2.9003/INSTALL.html
DBD-mysql-2.9003/Makefile.PL
DBD-mysql-2.9003/ChangeLog
DBD-mysql-2.9003/constants.h
DBD-mysql-2.9003/TODO




Compiling module
Executing /usr/bin/perl Makefile.PL && make ..

Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 174.
readline() on closed filehandle PIPE at Makefile.PL line 176.
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

perl Makefile.PL --help





Installation of DBD::mysql failed. Check the output above and try installing manually.
You can also install the module from CPAN with the command perl -MCPAN -e shell










Now like I said I do not have any programing experence with perl so how do I fix this problem and get this sucker installed. Thanks

Justin
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

jshaulis wrote:
I am a hardcore newbie here. I am using webmin on a SuSE Linux 8.0 OS. I am tring to install DBD::mySQL though webmin.


Ugh

jshaulis wrote:

Installation of DBD::mysql failed. Check the output above and try installing manually.
You can also install the module from CPAN with the command perl -MCPAN -e shell


Did you try this first? Go into the dir, type perl Makefile.PL, let it figure out your system, then as root, run make?

If so, what errors did you get?

If not, please do so. :)

Cheers.
  • RichardP
  • Born
  • Born
  • RichardP
  • Posts: 1

Post 3+ Months Ago

I sounds like you probably don't have the mysql development libraries installed.

If you're a newbie, you'd probably be more comfortable using Yast. Go into yast's package manager, and install the packages. It will probably be called something like mysql-devel or something similar. Good luck.
  • jshaulis
  • Student
  • Student
  • jshaulis
  • Posts: 70

Post 3+ Months Ago

The mysql development libraries were not installed. Thank you for helping out,

Justin
  • mckwack
  • Newbie
  • Newbie
  • mckwack
  • Posts: 7
  • Loc: Somewhere over the rainbow...

Post 3+ Months Ago

I'm another newbie here. I was trying to install DBD::mysql when I encountered the same errors as Justin's. I tried to do as was suggested, and after I install the mysql development libraries, I encounter the following error:


Checking if your kit is complete...
Looks good
Using DBI 1.28 installed in /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/DBI
Writing Makefile for DBD::mysql
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible


For reference, I'm trying to install the module on a SLSS 8.0 OS. I installed mysql (and almost anything else) using the YaST2 Control Center. Any help would be welcome.

Thanks.

McKwack
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

mckwack wrote:
I'm another newbie here. I was trying to install DBD::mysql when I encountered the same errors as Justin's. I tried to do as was suggested, and after I install the mysql development libraries, I encounter the following error:


Checking if your kit is complete...
Looks good
Using DBI 1.28 installed in /usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/DBI
Writing Makefile for DBD::mysql
-- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible


For reference, I'm trying to install the module on a SLSS 8.0 OS. I installed mysql (and almost anything else) using the YaST2 Control Center. Any help would be welcome.

Thanks.

McKwack


On the surface this sounds like a simple matter of not having permission to write the file -- perhaps it exists already and is owned by someone else?

Cheers.
  • mckwack
  • Newbie
  • Newbie
  • mckwack
  • Posts: 7
  • Loc: Somewhere over the rainbow...

Post 3+ Months Ago

I don't think so.

I tried looking for the file using locate, and though there are several different copies of them, there isn't any that looks like it has any connection with the module in question.

Thanks for the idea, though. I'll keep my eyes open just in case there is more copy of the file I haven't located yet.

McKwack[/i]
  • mckwack
  • Newbie
  • Newbie
  • mckwack
  • Posts: 7
  • Loc: Somewhere over the rainbow...

Post 3+ Months Ago

Um, sorry, my previous post was written in a hurry, I just realized that I've skipped an important issue.

So: the assumption that 'the file could not be written because an older version is already existed, and it's owned by someone else, and the installer has no permission to overwrite the existing one' seems to be not quite correct, since I couldn't find that older version.

Now, assuming that it's still true that the installer (or whoever it is that's trying to write the file) does not have the required permission, my question is: 'where is it trying to write the file to?'

I tried changing the permission for the directories '/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/DBI' and '/usr/lib/perl5/site_perl/5.8.0/i586-linux-thread-multi/auto/DBD', but it didn't work. Yes, the DBD module seems to have already been installed, but it's for PostgreSQL and not for MySQL, if the sub-directory 'Pg' is any indication.

Thanks again,
McKwack
  • mckwack
  • Newbie
  • Newbie
  • mckwack
  • Posts: 7
  • Loc: Somewhere over the rainbow...

Post 3+ Months Ago

After many trial-and-error, I finally managed to install the module. It turned out that, because it's the Standard Server version of SUSE that was installed in my system, many of the required packages aren't already installed, like make and gcc.

Well, thanks anyway for the answer. :)

McKwack

Post Information

  • Total Posts in this topic: 9 posts
  • Users browsing this forum: No registered users and 20 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.