在Debian 4.0 rc3 上安裝Subversion 1.5筆記
原創(chuàng)作者:八路 QQ:57623579 Mail: zubin.he@gmail.com
系統(tǒng)環(huán)境 : Debian 4.0 rc3
因環(huán)境需要,我只安裝Debian 4.0 rc3 basic系統(tǒng),因此在裝完Debian后,為了安裝mysql,subversion等就安裝了以下所需要軟件:
apt-get install vim elinks gcc g++ make libncurses5-dev libpng12-dev libjpeg62-dev zlib1g-dev libxml2-dev
1,安裝apache
到apache官方網(wǎng)站[http://www.apache.org]上下載httpd- 2.2.9.tar.gz
#tar -zxvf httpd-2.2.9.tar.gz
#./configure --prefix=/usr/local/apache2 --enable-so --enable-ssl --enable-rewrite --with-mpm=worker --enable-dav --enable-maintainer-mode --enable-cgi
說明:
--enable-dav --enable-maintainer-mode 這兩個(gè)參數(shù)在安裝Subversion時(shí)需要的,如不裝subversion時(shí),可不裝
#make & make install
2,安裝subversion
到subversion官網(wǎng)上下載:http://subversion.tigris.org/downloads/subversion- 1.5.0.tar.gz
#tar -zxvf subversion-1.5.0.tar.gz
到neon官網(wǎng)上下載:http://www.webdav.org/neon/neon-0.28.2.tar.gz
#tar -zxvf neon-0.28.2.tar.gz
將neon-0.28.2 copy到subversion-1.5.0目錄,并重命名:neon
#mv neon-0.28.2 ./subversion-1.5.0/neon
然后就可以開始安裝subversion了:
#cd subversion-1.5.0
#./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2/bin/apr-1-config --with-apr-util=/usr/local/apache2/bin/apu-1-config --with-ssl
在configure過程中會(huì)有提示警告:大概的意思是說你沒有安裝Berkeley DB,我們可以不理它,因?yàn)槲覀冇胒s做為存取數(shù)據(jù),而不是用Berkeley DB來存取數(shù)據(jù).繼續(xù)...
#make
在make過程中出錯(cuò)了:
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make: *** [subversion/svn/svn] Error 1
是找不到xpat庫,于是:
#apt-cache search xpat | grep xpat
找到libexpat1-dev - XML parsing C library - development kit
并安裝之:
#apt-get install libexpat1-dev
繼續(xù)編譯...
#make
#make install
一切順利,你的subversion已經(jīng)成功安裝在/usr/local/subversion下了
原創(chuàng)作者:八路 QQ:57623579 Mail: zubin.he@gmail.com
系統(tǒng)環(huán)境 : Debian 4.0 rc3
因環(huán)境需要,我只安裝Debian 4.0 rc3 basic系統(tǒng),因此在裝完Debian后,為了安裝mysql,subversion等就安裝了以下所需要軟件:
apt-get install vim elinks gcc g++ make libncurses5-dev libpng12-dev libjpeg62-dev zlib1g-dev libxml2-dev
1,安裝apache
到apache官方網(wǎng)站[http://www.apache.org]上下載httpd- 2.2.9.tar.gz
#tar -zxvf httpd-2.2.9.tar.gz
#./configure --prefix=/usr/local/apache2 --enable-so --enable-ssl --enable-rewrite --with-mpm=worker --enable-dav --enable-maintainer-mode --enable-cgi
說明:
--enable-dav --enable-maintainer-mode 這兩個(gè)參數(shù)在安裝Subversion時(shí)需要的,如不裝subversion時(shí),可不裝
#make & make install
2,安裝subversion
到subversion官網(wǎng)上下載:http://subversion.tigris.org/downloads/subversion- 1.5.0.tar.gz
#tar -zxvf subversion-1.5.0.tar.gz
到neon官網(wǎng)上下載:http://www.webdav.org/neon/neon-0.28.2.tar.gz
#tar -zxvf neon-0.28.2.tar.gz
將neon-0.28.2 copy到subversion-1.5.0目錄,并重命名:neon
#mv neon-0.28.2 ./subversion-1.5.0/neon
然后就可以開始安裝subversion了:
#cd subversion-1.5.0
#./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apache2/bin/apr-1-config --with-apr-util=/usr/local/apache2/bin/apu-1-config --with-ssl
在configure過程中會(huì)有提示警告:大概的意思是說你沒有安裝Berkeley DB,我們可以不理它,因?yàn)槲覀冇胒s做為存取數(shù)據(jù),而不是用Berkeley DB來存取數(shù)據(jù).繼續(xù)...
#make
在make過程中出錯(cuò)了:
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
make: *** [subversion/svn/svn] Error 1
是找不到xpat庫,于是:
#apt-cache search xpat | grep xpat
找到libexpat1-dev - XML parsing C library - development kit
并安裝之:
#apt-get install libexpat1-dev
繼續(xù)編譯...
#make
#make install
一切順利,你的subversion已經(jīng)成功安裝在/usr/local/subversion下了