Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: John Trombly on January 23, 2002, 04:09:17 AM

Title: Perl-Mysql
Post by: John Trombly on January 23, 2002, 04:09:17 AM
I am trying to get Perl to talk to the MySQL server. I have several cgi scripts that use the DBI-MySQL interface. I tried to use the source files, but THERE IS NO MAKE.
So I fouind the rpm files for RH 7.1 (I am using e-smith 5) and installed them.

mysql-devel-3.23.36-1.i386.rpm
perl-DBD-MySQL-1.2215-1.i386.rpm
perl-DBI-1.14-10.i386.rpm

And still no go....
Anyone out there done this or can help me?

The exact error that I am getting now (from the command line invoking perl) is:
Can't locate object method "connect" via package "DBI" at myprog.cgi line 15

this line is the std

my $db = DBI-connect('DBI:mysql:mydb', 'myid', 'mypassword');

Help!
Title: Re: Perl-Mysql
Post by: John Trombly on January 31, 2002, 04:46:15 AM
Oops.... Found it. RPMs work. Error in Perl script.
Title: Re: Perl-Mysql
Post by: Steve Davis on May 06, 2002, 02:31:07 AM
Where did you find these rpm's?
They are not on the E-Smith CD?