By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,541 Members | 1,455 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,541 IT Pros & Developers. It's quick & easy.

Need DBI:Excel and SQL modules

P: 13
I am using excel as database for my project. We are getting following error while making database connection,

install_driver(Excel) failed: Can't locate loadable object for module Clone in @
INC (@INC contains: D:/Perl/site/lib D:/Perl/lib .) at D:/Perl/lib/SQL/Statement
.pm line 14
Compilation failed in require at D:/Perl/lib/SQL/Statement.pm line 14.
BEGIN failed--compilation aborted at D:/Perl/lib/SQL/Statement.pm line 14.


When I looked in D:/Perl/lib/SQL/Statement.pm file, at step 14 is calling following statement "use Clone qw(clone);" .... although there is no sub routine with name clone in Clone.pm. Can any body to help to solve this problem. Do we have incomplete package, if it is then please suggest the link where we can get the complete module.

Thanks in Advance
-Lav
May 6 '09 #1
Share this Question
Share on Google+
3 Replies


nithinpes
Expert 100+
P: 410
The Clone.pm module has a clone() method defined in it. Try reinstalling the module.
The error points out that Clone module is either not installed or Clone.pm in not present in the paths contained in @INC (library paths). If the module is present in a different location, use one of the following approaches to add the path. Both of these need to be at the beginning of script.

Expand|Select|Wrap|Line Numbers
  1. use lib 'new\path';
  2.  
OR

Expand|Select|Wrap|Line Numbers
  1. BEGIN {
  2.  
  3.  push @INC, 'new\path';
  4. }
  5.  
May 7 '09 #2

KevinADC
Expert 2.5K+
P: 4,059
Clone.pm does not come with perl so you will need to try and install it. See the Perl Package Manager (PPM) instructions in the activeperl documentation for instructions on how to install modules.
May 7 '09 #3

P: 13
ok...let me try this way.....

thanks.....
May 8 '09 #4

Post your reply

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