Click here to get back home

perl DBI installation help

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
perl DBI installation help rajesh 03-01-2006
Posted by rajesh on March 1, 2006, 10:29 am
Please log in for more thread options


Hi,
for my perl file to be executed I need to install DBI,
DBD:ODBC. I have tried install by ppm. But my college server does not
allow me to do that. How can I download and install individual
packages. I have some DBI.zip which has DBI.ppd, read me file. If I try
to install that .ppd file it is saying "no suitable installation target
found for package DBI". Shall I need DBI.pm file? Can u please give
idea of what to download, where to put that file, how to install it? I
am haing my perl filder in C:\ drive. I am using WInXP, Active state
perl 5.8.X..

Thanks & regards,
Siva Rajesh


Posted by Sisyphus on March 1, 2006, 11:13 pm
Please log in for more thread options



"rajesh" <sivarajesh.jarugula@gmail.com

> If I try
> to install that .ppd file it is saying "no suitable installation target
> found for package DBI". Shall I need DBI.pm file?

That usually means that the ppm you tried to install was built for a
different version of perl (or a different OS) to what you have. Have a look
inside the ppd file. Since you're using perl 5.8 on Win32 you want to find
in there:

<ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" />

If it says:

<ARCHITECTURE NAME="MSWin32-x86-multi-thread" />

then it was built for Win32, but for perl 5.6. And if it was built for some
OS other than Win32, it will be different again.

However, if you're running ActiveState perl, then you should already have
DBI - as that package is included as standard with ActiveState perl. To
check that you have it, enter:

perl -MDBI -e "print $DBI::VERSION"

That should report the version of DBI that you have. If you don't have DBI
it will present you with an error message complaining that DBI.pm could not
be found.

Cheers,
Rob




Posted by rajesh on March 14, 2006, 6:53 am
Please log in for more thread options


HI Rob,
Thanks a lot. it works now. But as I guess the DBI is not
coming by default with active state perl even for higher verison also
like 6. finallly I got the right ppm and could able to install DBI
offline.
thanks
Rajesh

Sisyphus wrote:
> "rajesh" <sivarajesh.jarugula@gmail.com
>
> > If I try
> > to install that .ppd file it is saying "no suitable installation target
> > found for package DBI". Shall I need DBI.pm file?
>
> That usually means that the ppm you tried to install was built for a
> different version of perl (or a different OS) to what you have. Have a look
> inside the ppd file. Since you're using perl 5.8 on Win32 you want to find
> in there:
>
> <ARCHITECTURE NAME="MSWin32-x86-multi-thread-5.8" />
>
> If it says:
>
> <ARCHITECTURE NAME="MSWin32-x86-multi-thread" />
>
> then it was built for Win32, but for perl 5.6. And if it was built for some
> OS other than Win32, it will be different again.
>
> However, if you're running ActiveState perl, then you should already have
> DBI - as that package is included as standard with ActiveState perl. To
> check that you have it, enter:
>
> perl -MDBI -e "print $DBI::VERSION"
>
> That should report the version of DBI that you have. If you don't have DBI
> it will present you with an error message complaining that DBI.pm could not
> be found.
>
> Cheers,
> Rob


Posted by Sisyphus on March 16, 2006, 2:40 am
Please log in for more thread options



"rajesh"
> But as I guess the DBI is not
> coming by default with active state perl even for higher verison also
> like 6. finallly I got the right ppm and could able to install DBI
> offline.

Looks like my mistake. Sorry - I found that my ActiveState perl had DBI
installed in it, couldn't remember having installed it, and concluded that
AS perl must come with DBI.

However, at some stage, I must have done 'ppm install DBI' and then promptly
forgotten all about it :-)

Cheers,
Rob



Similar ThreadsPosted
Perl module installation April 11, 2005, 9:55 am
perl DBI,DBD::ODBC installation help March 7, 2006, 12:42 am
perl modules installation July 13, 2007, 11:29 am
Local installation of perl module September 5, 2005, 9:07 am
perl-gtk installation failing on Solaris March 20, 2007, 7:28 am
perl cgi session module installation problem June 5, 2006, 11:11 am
Perl Win32::Setupsup installation issue April 2, 2007, 5:01 pm
Installation problem - Net-SNMP Perl Modules on cygwin March 1, 2005, 1:52 am
Mysql-DBD Perl module Installation Problem in HPUX June 30, 2005, 9:05 am
After adding some Perl modules in my SuSE 8.2 installation Amavis does not function anymore. December 12, 2004, 2:04 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap