DB_File.pmインストール

 

ftp://ftp.cpan.jp/CPAN/modules/by-category/07_Database_Interfaces/DB_File/

http://www.cpan.org/modules/by-module/DB_File/

からDB_File-1.807.tar.gzをダウンロードする。

 

まず、解凍する。

tar zxfv DB_File-1.807.tar.gz

 

解凍すると、DB_File-1.807ディレクトリが作られるので、そこに移動する。

$ cd DB_File-1.807

 

config.inを編集する。

$ vi config.in

# 1. Where is the file db.h?
#
# Change the path below to point to the directory where db.h is
# installed on your system.

INCLUDE = /opt/BerkeleyDB.4.1/include

#INCLUDE = /usr/local/BerkeleyDB/include
#INCLUDE = /usr/include


# 2. Where is libdb?
#
# Change the path below to point to the directory where libdb is
# installed on your system.

LIB = /opt/BerkeleyDB.4.1/lib

#LIB = /usr/local/BerkeleyDB/lib
#LIB = /usr/lib

3.4もあるけど,自分は変更しなかったので省略.
INCLUDELIBBerkeleyDBをインストールした場所に変更する


 

# perl Makefile.PL
# make
# make test
# make install

 

 

Linux/Solarisへ戻る


 

 

 

 

 

 

 

E-listBBSSearchRankingCollegeLife-CafeGo to Top