志騰網

Linux環境下OpenCA的搭建1

1.openssl的安裝:openssl-1.0.0c.tar.gz

tar xzvf openssl-1.0.0c.tar.gz

cd  openssl-1.0.0c

./config –prefix=/usr/local/openssl

make

make test

make install

 

2.apache的安裝:httpd-2.2.20.tar.bz2

tar xjvf httpd-2.2.20.tar.bz2

cd httpd-2.2.20

./configure --prefix=/usr/local/apache \

        --enable-module=ssl \

        --enable-shared=ssl \

        --enable-module=so

make

make install

 

3 Bdb

db-4.5.20.tar.gz

tar xzvf db-4.5.20.tar.gz

cd db-4.5.20

../dist/configure --prefix=/usr/local/Bdb\

--enable-dynamic

make

make install

 

cd /usr/lib

ln -s /usr/local/Bdb/lib/libdb.so libdb-4.5.so


4 Perl的安裝:ActivePerl-5.14.1.1401-i686-linux-glibc-2.3.6-294969.tar.gz

 

tar xzvf ActivePerl-5.14.1.1401-i686-linux-glibc-2.3.6-294969.tar.gz

cd ActivePerl-5.14.1.1401-i686-linux-glibc-2.3.6-294969

./install.sh

 

5 perl-dbi module

  aptitude install libdbi-prl

 

6 DBI的安裝:DBI-1.616.tar.gz

 

tar xzvf DBI-1.616.tar.gz

cd DBI-1.616.tar

/usr/local/perl/bin/perl Makefile.PL

make

make test

make install

 

7 OpenLdap的安裝:openldap-stable-20100719.tgz

tar xzvf openldap-stable-20100719.tgz

cd openldap-2.4.23

export LDFLAGS="-L/usr/local/Bdb/lib"

 

export CPPFLAGS="-I/usr/local/Bdb/include"

 

export LD_LIBRARY_PATH=/usr/local/Bdb/lib"

 

./configure –prefix=/usr/local/openldap

 

make depend

make

make test

make install