
ningji
User
Apr 17, 2015, 1:44 PM
Post #1 of 5
(103974 views)
|
Can't locate loadable object for module DBD::SQLite
|
Can't Post
|
|
Hi everyone, Not sure if i can explain this clearly. We have an embedded ARM linux system using ubuntu fs. We can update the whole image (including our app, kernel, fs) to the SD card through 1 command (don't know the details for the command). 1. in the brand new working system, install sqlite support apt-get install libdbi-perl apt-get install libdbd-sqlite3-perl my code runs fine with sqlite. 2. now run our image upgrade command. my code failed to run install_driver(SQLite) failed: Can't locate loadable object for module DBD::SQLite in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share /perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/ 5.14 /usr/local/lib/site_perl . /usr/share/perl5 /usr/share/perl5/CGI /usr/share /perl5 /usr/share/perl5/CGI /usr/share/perl5 /usr/lib/perl5 /usr/lib/perl5/DBI / usr/share/perl5/CGI /usr/share/perl5 /usr/share/perl5/CGI) at (eval 3) line 3 Compilation failed in require at (eval 3) line 3. Perhaps a module that DBD::SQLite requires hasn't been fully installed at something.pl line 71 3. install both modules again, said already installed 4. uninstall and reinstall again, now everything works apt-get purge libdbd-sqlite3-perl apt-get purge libdbi-perl apt-get install libdbi-perl apt-get install libdbd-sqlite3-perl 5. did compare @INC from step 2 and step 4, by running my perl code from wrong folder, it'll say cannot find abcde.pl from @INC. But looks the same to me. Any suggestions ? Thanks !
|