歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Unix知識 >> 關於Unix >> Freebsd下配置svn

Freebsd下配置svn

日期:2017/2/28 11:11:05   编辑:關於Unix


這兩天突然對svn感興趣,按理說配置這是一件很簡單的事情,結果我是做了兩天才做完這件事情,不得不佩服自己啊。剛做完,大體記錄一下過程。

操作系統:Freebsd 7.0
所需要軟件:apr-1.2.12.tar.gz apr-util-1.2.12.tar.gz httpd-2.2.8.tar.gz subversion-1.4.6.tar.gz db-4.3.29.NC.tar.gz(Berkeley db)

Freebsd上一些基本的軟件得有,這個就不多說。由於我的那台電腦不能上外網下不了ports裡需要的軟件,就自己手動編譯了。還有一件是就是軟件的版本問題,就是因為軟件的版本有問題所以導致我配置的這麼慢。特別指出一點就是Berkeley db的版本,我開始的時候安裝的時候用是的4.4以上的版本(好像是4.6),編譯的時候死活過不去,明明安裝了它,編譯其他的軟件時就提示找不到Berkeley db。換成4.3以前的版本就沒問題。

1、安裝Berkeley DB
#tar zxvf db-4.3.23.NC.tar.gz
#cd db-4.3.23.NC
#cd build_unix
#../dist/configure --prefie=/usr/loacl/bdb
#make
#make install

2、安裝apr
#tar zxvf apr-1.2.12.tar.gz
#cd apr-1.2.12
#./configure --prefix=/usr/local/apr
#make
#make install

3、安裝apr-util
#tar zxvf apr-util-1.2.12.tar.gz
#cd apr-util-1.2.12
#./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config --with-berkeley-db=/usr/local/bdb
#make
#make install

4、安裝apache
#tar zxvf httpd-2.2.8.tar.gz
#cd httpd-2.2.8
#./configure --prefix=/usr/local/apache --enable-rewrite --enable-module=so --enable-dav --enable-dav-fs --enable-so --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config
#make
#make install

5、安裝subversion
#tar zxvf subversion-1.4.6.tar.gz
#cd subversion-1.4.6
#./configure --prefix=/usr/local/svn --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config
#make
#make install
Copyright © Linux教程網 All Rights Reserved