Problem installing perl module

Kenazo

Lifer
Sep 15, 2000
10,429
1
81
I'm a little noob at Perl although I have installed several modules through CPAN (ok ok that doesn't count as anything). Today's problem is I keep getting an error when trying to install the msql-mysql-modules through CPAN or when downloaded. This is what I get after filling in the initial variables.

Creating files for MySQL ....................
WARNING: CAPI is not a known parameter.
WARNING: PL_FILES takes a hash reference not a array reference.
Please inform the author.
Checking if your kit is complete...
Looks good
Note (probably harmless): No library found for -lmysqlclient
Note (probably harmless): No library found for -lgz
Note (probably harmless): No library found for -lgcc
*** Warning: Path separator characters (`s') in the current directory path (/root/Msql-Mysql-modules-1.2219/mysql) may cause problems

Using DBI 1.48 (for perl 5.008 on i386-linux-thread-multi) installed in /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::mysql
Writing Makefile for Msql-Mysql-modules
[root@mater Msql-Mysql-modules-1.2219]# make
Makefile:75: *** missing separator. Stop.

I can't figure out how to proceed from here... What's going wrong? The server is running CentOS and Apache 1.3.3xx. I've got mod_perl installed. The server also is using Direct Admin and I'm wondering if the DA Apache install is confusing the mysql perl module....maybe?

Help definitely appreciated as I'm at a dead end!

Thanks :)

 

notfred

Lifer
Feb 12, 2001
38,241
4
0
What are you trying to do? If you just want to connect to a MySQL database with perl, you're installing the wrong module. You can just install DBI and DBD::mysql through CPAN if that's what you want.
 

Kenazo

Lifer
Sep 15, 2000
10,429
1
81
I installed DBI already. I'm not sure exactly what I need it for but a piece of software I'm working on installing requested this module. It's the DBD::mysql that it is choking on I think....mql-mysql-modules includes that as one of the modules it installs (I think that's how it works).
 

Kenazo

Lifer
Sep 15, 2000
10,429
1
81
I just tried just getting DBD::mysql through CPAN and it returns a similar error (the Makefile is 89 instead of 75).

Using DBI 1.48 (for perl 5.008 on i386-linux-thread-multi) installed in /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/auto/DBI/
Writing Makefile for DBD::mysql
Makefile:89: *** missing separator. Stop.
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible


I also get this repeated over and over:

Unsuccessful stat on filename containing newline at /usr/lib/perl5/5.8.0/ExtUtils/Liblist/Kid.pm line 97.
 

Kenazo

Lifer
Sep 15, 2000
10,429
1
81
Ok I think I found the answer. I had to execute export LANG=C before running the make. Apparently it's a bug with RH9. I guess I'll find out if it works now...fingers crossed.