I tried installing DBD-SQLite-0.31
module from CPAN. I have downloaded DBD-SQLite-0.31
from CPAN
. I tried installing it and it gave me an error of pre-requisite DBI
module isn't there.
I had installed DBI module from CPAN and then installed DBD-SQLite-0.31
.
When I tried running the perl statement
use DBI DBD::SQLite;
, it gave a error
"DBD::SQLite" is not exported by the DBI module
Can't continue after import errors at DBI.txt line 3
BEGIN failed--compilation aborted at DBI.txt line 3.
Why did the error happened?
When I tried to debug it, I found that to run the statement use DBI DBD::SQLite;
, DBD::SQLite needs to be in DBI directory, but both are in separate directories. I even copied the DBD::SQLite in DBI folder but the issue remains same. (These are all my wild guesses)
use
statements for both DBI and DBD::SQLite. You cant import in one, thats incorrect syntax.use
statement for DBD::SQLite at all. It gets loaded automatically by DBI when you connect to a SQLite database.