Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to install DBI on Redhat

Status
Not open for further replies.

pietb

Programmer
Apr 15, 2004
10
US
Hi everyone,

When I try to install a certain program I get the following error:

Unsupported driver MT::ObjectDriver::DBI::mysql: Can't locate DBI.pm in @INC

When I type in "rpm -q perl-DBD-mysql" it tells me the package is not installed. If I install it will it install the DBI module automatically?

I was wondering if anyone could guide me to getting this module installed? I am new to installing software and I am managing my server remotely.

Any help would be much appreciated.

Piet

 
It says it can't locate DBI.pm, so I'd check to see if you have perl-DBI installed on your system. If not, install it using rpm -i perl-DBI Once you're sure you have DBI, then check for perl-DBD-MySQL, making sure you capitalize the right letters because I think rpm is case sensitive. You can install this module by typing rpm -i perl-DBD-MySQL. I'm not 100% this is right but I'm pretty sure so give it a shot.

 
No no no - much too clever. I think so anyway. :)

There's a LINUX port ActiveState's Perl, use that and you get lots installed as standards and the easy to use PPM utility as well.

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Thanks to the both of you for the replies. I ended up downloading the CPAN module and from there I typed the command:

perl -MCPAN -e 'install DBI'

then

perl -MCPAN -e 'install DBD::MYSQL'

I was trying to get help from this forum for just even downloading CPAN.pm. I am a little new to linux and especially downloading software remotely but I seemed to have accomplished the tasks without a hitch.

Thanks again for the quick replies.

Piet

---------------------------
Pieter Bergmans
- "Come discuss your enterprise and business class HP equipment
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top