ご注意下さい
この記事は3年以上前に書かれた記事ですので、内容が古い可能性があります。
WEBサーバのレスポンスが悪いのでRH9.0をインストール。
すると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がインストールされていない模様…。FC2には入っていたのに。
以下のようにコマンドラインからインストール可能です。
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.
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
cpan shell -- CPAN exploration and modules installation (v1.61)
ReadLine support available (try 'install Bundle::CPAN')
cpan> install DB_File
CPAN: Storable loaded ok
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/modules/02packages.details.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
Database was generated on Fri, 30 Jul 2004 03:07:22 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.perl.org/pub/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.809.tar.gz
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/id/P/PM/PMQS/DB_File-1.809.tar.gz
CPAN: Digest::MD5 loaded ok
Fetching with LWP:
ftp://ftp.perl.org/pub/CPAN/authors/id/P/PM/PMQS/CHECKSUMS
Checksum for /root/.cpan/sources/authors/id/P/PM/PMQS/DB_File-1.809.tar.gz ok
Scanning cache /root/.cpan/build for sizes
DB_File-1.809/
DB_File-1.809/dbinfo
DB_File-1.809/patches/
DB_File-1.809/patches/5.6.0
DB_File-1.809/patches/5.005_02
DB_File-1.809/patches/5.005_03
DB_File-1.809/patches/5.004_03
DB_File-1.809/patches/5.004_05
DB_File-1.809/patches/5.004_02
DB_File-1.809/patches/5.005_01
DB_File-1.809/patches/5.004_04
DB_File-1.809/patches/5.004_01
DB_File-1.809/patches/5.005
DB_File-1.809/patches/5.004
DB_File-1.809/hints/
DB_File-1.809/hints/sco.pl
DB_File-1.809/hints/dynixptx.pl
DB_File-1.809/t/
DB_File-1.809/t/db-btree.t
DB_File-1.809/t/db-recno.t
DB_File-1.809/t/db-hash.t
DB_File-1.809/Changes
DB_File-1.809/DB_File_BS
DB_File-1.809/fallback.h
DB_File-1.809/MANIFEST
DB_File-1.809/typemap
DB_File-1.809/ppport.h
DB_File-1.809/DB_File.xs
DB_File-1.809/META.yml
DB_File-1.809/config.in
DB_File-1.809/DB_File.pm
DB_File-1.809/version.c
DB_File-1.809/fallback.xs
DB_File-1.809/README
DB_File-1.809/Makefile.PL
CPAN.pm: Going to build P/PM/PMQS/DB_File-1.809.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.809\" -DXS_VERSION=\"1.809\" -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.809\" -DXS_VERSION=\"1.809\" -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=562, 4 wallclock secs ( 1.47 cusr + 1.98 csys = 3.45 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.
#