Can’t locate DB_File.pm in @INC

投稿者:

Movable Type をインストールすると・・・
# mt.cgi
Content-Type: text/html
Got an error: Unsupported driver MT::ObjectDriver::DBM: Can’t locate DB_File.pm in @INC (@INC contains: ./extlib ./lib /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at lib/MT/ObjectDriver/DBM.pm line 9.
BEGIN failed–compilation aborted at lib/MT/ObjectDriver/DBM.pm line 9.
Compilation failed in require at (eval 3) line 1.
BEGIN failed–compilation aborted at (eval 3) line 1.
DB_File.pmが入っていないみたいだ
しかしこれはコマンドラインからインストールできる
perl -MCPAN -e shell
We have to reconfigure CPAN.pm due to following uninitialized parameters:
cpan_home, keep_source_where, build_dir, build_cache, scan_cache, index_expire, gzip, tar, unzip, make, pager, makepl_arg, make_arg, make_install_arg, urllist, inhibit_startup_message, ftp_proxy, http_proxy, no_proxy, prerequisites_policy, cache_metadata
/usr/lib/perl5/5.8.0/CPAN/Config.pm initialized.

Thank you for reading this post, don't forget to subscribe!


CPAN is the world-wide archive of perl resources. It consists of about
100 sites that all replicate the same contents all around the globe.
Many countries have at least one CPAN site already. The resources
found on CPAN are easily accessible with the CPAN.pm module. If you
want to use CPAN.pm, you have to configure it properly.
If you do not want to enter a dialog now, you can answer ‘no’ to this
question and I’ll try to autoconfigure. (Note: you can revisit this
dialog anytime later by typing ‘o conf init’ at the cpan prompt.)
Are you ready for manual configuration? [yes] no
commit: wrote /usr/lib/perl5/5.8.0/CPAN/Config.pm
(1) ftp://ftp.dti.ad.jp/pub/lang/CPAN/
(2) ftp://ftp.jaist.ac.jp/pub/lang/perl/CPAN/
(3) ftp://ftp.kddilabs.jp/CPAN/
(4) ftp://ftp.ring.gr.jp/pub/lang/perl/CPAN/
(5) ftp://ftp.u-aizu.ac.jp/pub/CPAN
(6) http://ftp.cpan.jp/
Select as many URLs as you like,
put them on one line, separated by blanks [] 1
Enter another URL or RETURN to quit: []
New set of picks:
ftp://ftp.dti.ad.jp/pub/lang/CPAN/
WAIT support is available as a Plugin. You need the CPAN::WAIT module
to actually use it. But we need to know your favorite WAIT server. If
you don’t know a WAIT server near you, just press ENTER.
Your favorite WAIT server?
[wait://ls6-www.informatik.uni-dortmund.de:1404]
commit: wrote /usr/lib/perl5/5.8.0/CPAN/Config.pm
cpan shell — CPAN exploration and modules installation (v1.61)
ReadLine support available (try ‘install Bundle::CPAN’)
cpan> install DB_File
CPAN: Storable loaded ok
Fetching with LWP:
ftp://ftp.dti.ad.jp/pub/lang/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
ftp://ftp.dti.ad.jp/pub/lang/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Thu, 24 Nov 2005 14:54:20 GMT
There’s a new CPAN.pm version (v1.76) available!
[Current version is v1.61]
You might want to try
install Bundle::CPAN
reload cpan
without quitting the current session. It should be a seamless upgrade
while we are running…
Fetching with LWP:
ftp://ftp.dti.ad.jp/pub/lang/CPAN/modules/03modlist.data.gz
Going to read /root/.cpan/sources/modules/03modlist.data.gz
Going to write /root/.cpan/Metadata
Running install for module DB_File
Running make for P/PM/PMQS/DB_File-1.814.tar.gz
Fetching with LWP:
ftp://ftp.dti.ad.jp/pub/lang/CPAN/authors/id/P/PM/PMQS/DB_File-1.814.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://ftp.dti.ad.jp/pub/lang/CPAN/authors/id/P/PM/PMQS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/P/PM/PMQS/DB_File-1.814.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DB_File-1.814/
DB_File-1.814/dbinfo
DB_File-1.814/patches/
DB_File-1.814/patches/5.6.0
DB_File-1.814/patches/5.005_02
DB_File-1.814/patches/5.005_03
DB_File-1.814/patches/5.004_03
DB_File-1.814/patches/5.004_05
DB_File-1.814/patches/5.004_02
DB_File-1.814/patches/5.005_01
DB_File-1.814/patches/5.004_04
DB_File-1.814/patches/5.004_01
DB_File-1.814/patches/5.005
DB_File-1.814/patches/5.004
DB_File-1.814/hints/
DB_File-1.814/hints/sco.pl
DB_File-1.814/hints/dynixptx.pl
DB_File-1.814/t/
DB_File-1.814/t/db-btree.t
DB_File-1.814/t/db-recno.t
DB_File-1.814/t/db-hash.t
DB_File-1.814/Changes
DB_File-1.814/DB_File_BS
DB_File-1.814/fallback.h
DB_File-1.814/MANIFEST
DB_File-1.814/typemap
DB_File-1.814/ppport.h
DB_File-1.814/DB_File.xs
DB_File-1.814/META.yml
DB_File-1.814/config.in
DB_File-1.814/DB_File.pm
DB_File-1.814/version.c
DB_File-1.814/fallback.xs
DB_File-1.814/README
DB_File-1.814/Makefile.PL
CPAN.pm: Going to build P/PM/PMQS/DB_File-1.814.tar.gz
Parsing config.in…
Looks Good.
Checking if your kit is complete…
Looks good
Writing Makefile for DB_File
cp DB_File.pm blib/lib/DB_File.pm
AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File)
gcc -c -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\”1.814\” -DXS_VERSION=\”1.814\” -fPIC “-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE” -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap DB_File.xs > DB_File.xsc && mv DB_File.xsc DB_File.c
gcc -c -I/usr/local/BerkeleyDB/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386 -mcpu=i686 -DVERSION=\”1.814\” -DXS_VERSION=\”1.814\” -fPIC “-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE” -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t DB_File.c
Running Mkbootstrap for DB_File ()
chmod 644 DB_File.bs
rm -f blib/arch/auto/DB_File/DB_File.so
LD_RUN_PATH=”/usr/lib” gcc -shared -L/usr/local/lib version.o DB_File.o -o blib/arch/auto/DB_File/DB_File.so -ldb
chmod 755 blib/arch/auto/DB_File/DB_File.so
cp DB_File.bs blib/arch/auto/DB_File/DB_File.bs
chmod 644 blib/arch/auto/DB_File/DB_File.bs
Manifying blib/man3/DB_File.3pm
/usr/bin/make — OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e” “test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/db-btree….ok
t/db-hash…..ok
t/db-recno….ok
All tests successful.
Files=3, Tests=567, 3 wallclock secs ( 1.91 cusr + 0.29 csys = 2.20 CPU)
/usr/bin/make test — OK
Running make install
Installing /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DB_File/DB_File.so
Installing /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DB_File/DB_File.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Installing /usr/lib/perl5/5.8.0/i386-linux-thread-multi/DB_File.pm
Installing /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DB_File/autosplit.ix
Installing /usr/share/man/man3/DB_File.3pm
Writing /usr/lib/perl5/5.8.0/i386-linux-thread-multi/auto/DB_File/.packlist
Appending installation info to /usr/lib/perl5/5.8.0/i386-linux-thread-multi/perllocal.pod
/usr/bin/make install — OK
cpan> exit
Lockfile removed.
適当にyes で最後に install DB_File コマンドでOK