473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

how to install DBD:ODBC on Windows XP

4
I just installed ActivePerl-5.8.8.822 & downloaded DBD-ODBC. Did this on Windows XP:

ppm install DBD-ODBC.ppd

got this:

ppm install failed: Can't find any package that provide DBI version 1.21 for DB-ODBC

~~~

I'm a perl newbie. I'll be glad if someone could help on this. I am now trying to use Perl to migrate some data.

Regards,

Arlie
Apr 1 '08 #1
5 5694
nithinpes
410 Expert 256MB
I just installed ActivePerl-5.8.8.822 & downloaded DBD-ODBC. Did this on Windows XP:

ppm install DBD-ODBC.ppd

got this:

ppm install failed: Can't find any package that provide DBI version 1.21 for DB-ODBC

~~~

I'm a perl newbie. I'll be glad if someone could help on this. I am now trying to use Perl to migrate some data.

Regards,

Arlie
I am not sure about exact implication of the error :( .
The package DBD::ODBC is dependent on DBI. But once you type,
Expand|Select|Wrap|Line Numbers
  1. ppm install DBD-odbc
  2.  
all the dependencies should be automatically downloaded. May be you have DBI installed which is older than version 1.21. You may try to re-install DBI and install DBD::ODBC.
Expand|Select|Wrap|Line Numbers
  1. ppm uninstall DBI
  2. ppm install DBI
  3. ppm install DBD-odbc
  4.  
  5.  
Apr 1 '08 #2
arlie
4
I am not sure about exact implication of the error :( .
The package DBD::ODBC is dependent on DBI. But once you type,
Expand|Select|Wrap|Line Numbers
  1. ppm install DBD-odbc
  2.  
all the dependencies should be automatically downloaded. May be you have DBI installed which is older than version 1.21. You may try to re-install DBI and install DBD::ODBC.
Expand|Select|Wrap|Line Numbers
  1. ppm uninstall DBI
  2. ppm install DBI
  3. ppm install DBD-odbc
  4.  
  5.  
Thanks for your reply. I finally was able to install it. I simply tried installing all available packages and finally was able to install it using DBD-ODBC-1.11. I still need to test it though if it really works.

I got the it from here: http://ppm4.activestate.com/PPMPackages/zips
Apr 3 '08 #3
arlie
4
I am not sure about exact implication of the error :( .
The package DBD::ODBC is dependent on DBI. But once you type,
Expand|Select|Wrap|Line Numbers
  1. ppm install DBD-odbc
  2.  
all the dependencies should be automatically downloaded. May be you have DBI installed which is older than version 1.21. You may try to re-install DBI and install DBD::ODBC.
Expand|Select|Wrap|Line Numbers
  1. ppm uninstall DBI
  2. ppm install DBI
  3. ppm install DBD-odbc
  4.  
  5.  
I downloaded the ppd files from the office and install it at home. Since I don't have internet at home. I might be missing some dependcies because as much as dbd-odbc installed I still can't use it. I got this error:

DBD::ODBC initialisation failed: Can't locate object method "driver" via package
"DBD::ODBC" at C:/Perl/lib/DBI.pm line 782.

Perhaps the capitalisation of DBD 'ODBC' isn't right. at odbc.test.pl line 6
Apr 4 '08 #4
arlie
4
I downloaded the ppd files from the office and install it at home. Since I don't have internet at home. I might be missing some dependcies because as much as dbd-odbc installed I still can't use it. I got this error:

DBD::ODBC initialisation failed: Can't locate object method "driver" via package
"DBD::ODBC" at C:/Perl/lib/DBI.pm line 782.

Perhaps the capitalisation of DBD 'ODBC' isn't right. at odbc.test.pl line 6
Below is my odbc test code:

Expand|Select|Wrap|Line Numbers
  1. use strict;
  2. use DBI;
  3.  
  4. use DBD::ODBC;
  5. print $DBD::ODBC::VERSION;
  6. my $dbh = DBI-> connect('dbi:ODBC:Luke');
Apr 4 '08 #5
eWish
971 Expert 512MB
Try changing the last line to this. Also, check out the DBD::ODBC docs for more information.

Expand|Select|Wrap|Line Numbers
  1. my $dbh = DBI->connect('dbi:ODBC:DSN', 'user', 'password');
--Kevin
Apr 4 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: brent | last post by:
I have a laptop with windows xp 1 gig ram 2.0 pentium M. When I run the db2 personal edition version 8.2 the install gets to the first screen and says windows installer is preparing to install. ...
0
by: paul_tomlin | last post by:
We've got an Excel spreadsheet that uses an ODBC link to an Access database (running on our 2003 Terminal Server) the refresh data option doesn't seem to work unless the user has administrative...
4
by: Eduardo78 | last post by:
Hello everybody, I would like to know which version of SQL Server could i install in my Windows XP Pro. Laptop, and be able to work with the enterprise manager locally? thanks for any...
2
by: djoefish | last post by:
sequel to the topic "install patch on windows"..... I am currently running Python2.3 with Enthought on a windows PC. I have been running into a memory problem (see...
3
by: nark | last post by:
I just downloaded ODBC drivers from the mySQL web site but whenever I try to create a DSN I get a system 1157 error The driver does show up ok in the windows control panel I cant find any...
5
by: pratibharaut | last post by:
Hello , How can i install Joomla on windows xp. I serach on net and got document how to install joomla but not getting properly. I downloaded Joomala_1.0.0_to_1.0.12-stable.zip ...
3
by: Mike | last post by:
I am reading in an Excel CSV file and I need to determine the data Type of the fields being read in. There are numbers text, money, and dates. Is there a function or technique that will give this...
1
by: jimbo905 | last post by:
My secretaries HD crashed - bummer. I got a new HD running XP pro with SP3. I have installed 8i client using the OUI (at first I had to rename symcjit.dll to symcjit_old.dll). All the components...
1
irfanmodan
by: irfanmodan | last post by:
hi everyone... I want to convert any video to flv as dynamically...so please help me how to install ffmpeg in windows php 5.3.1 thaks in advance Regards Irfan
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.