JimmyC57 has asked for the wisdom of the Perl Monks concerning the following question:
I have search and tried solutions for 2k and nt but still can't get dbd::odbc installed on an xp machine.
Installed activeperl 5.10.0. build 1002
Installed DBI 1.602
Then i read that DBD::ODBC came with activeperl 5 so i went into ppm, looked at all packages.. found dbd::odbc, right clicked and said install. it seemed to install but now i can't find it anymore on ethier the all packages or the installed packages.
when i try and run my perl script i get the following error:
install_driver(ODBC) failed: Can't locate DBD/ODBC.pm in @INC (@INC contains: C: /Perl/site/lib C:/Perl/lib .) at (eval 5) line 3. Perhaps the DBD::ODBC perl module hasn't been fully installed, or perhaps the capitalisation of 'ODBC' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, SQLite, Sponge.
*****************************************
Applicable code:
****************************************
<code>
#!/usr/bin/perl
use DBI;
use File::Copy;
# Assign Path and File Names
$outfilepath= '"S:\Reports\"';
$outfile= "RepInv.pdf";
$DBappfilepath = '"C:\\Program Files\\Microsoft
Office\\Office12\\msaccess.exe"' ;
$DBfilepath = '"D:\\Data\\Databases\\Weekly.accdb"';
$Macro = "\/X InvRptMacro";
$ExecuteString = "$DBappfilepath $DBfilepath $Macro";
# Establish Date Prefix for Output Filename
$day = (localtime) 3;
$day = substr ("0$day",length ("0$day")-2,2);
$month = (localtime) 4 + 1;
$month = substr ("0$month",length ("0$month")-2,2);
$year = (localtime) 5 + 1900;
$filename = "$year$month$day";
#open connection to Access database
$dbh = DBI->connect('dbi:ODBC:Mapics - MM CAD');
********************************************************
<code\>
Please let me know if you need anything else from me to help!
thanks
jim
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: ODBC on XP Installation Error
by lamp (Chaplain) on Sep 30, 2008 at 15:36 UTC | |
|
Re: ODBC on XP Installation Error
by procura (Beadle) on Sep 30, 2008 at 15:13 UTC | |
by mje (Curate) on Sep 30, 2008 at 15:31 UTC | |
|
Re: ODBC on XP Installation Error
by dHarry (Abbot) on Sep 30, 2008 at 15:21 UTC | |
|
Re: ODBC on XP Installation Error
by JimmyC57 (Novice) on Oct 01, 2008 at 19:27 UTC |