Logo

安裝Subversion

Subversion是一個開放原始碼的版本控制系統,Subversion可以很方便的瀏覽或是管理隨時間改變的檔案。這些檔案放置在一個檔案庫(repository),檔案庫會自動記住每一次檔案的變動,這樣就可以很方便的比對或是回溯檔案回覆到舊的版本,或是參考檔案的更改過程,簡單記錄一下裝在CentOS 5.4的環境。
首先安裝基本套件 ?
yum install -y expat expat-devel
下載軟體 ?
cd usr/src
wget http://apache.osuosl.org/apr/apr-1.3.9.tar.gz
wget http://apache.osuosl.org/apr/apr-util-1.3.9.tar.gz
wget http://www.sqlite.org/sqlite-amalgamation-3.6.19.tar.gz
wget http://www.webdav.org/neon/neon-0.29.0.tar.gz
wget http://subversion.tigris.org/downloads/subversion-1.6.6.tar.bz2

編譯安裝 ?
tar zxvf apr-1.3.9.tar.gz
cd apr-1.3.9
./configure -prefix=/usr/local/apr
make
make install
cd ..

tar zxvf apr-util-1.3.9.tar.gz
cd apr-util-1.3.9
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/
make
make install
cd ..

tar zxvf sqlite-amalgamation-3.6.19.tar.gz
cd sqlite-3.6.19
./configure --prefix=/usr/local/sqlite
make
make install
cd ..

tar zxvf neon-0.29.0.tar.gz
cd neon-0.29.0
./configure --prefix=/usr/local/neon --enable-shared
make
make install
cd ..

確認ld.so.conf中有沒有這行
cat /etc/ld.so.conf
/usr/local/lib
沒的話加一下vi /etc/ld.so.conf
安裝Subversion前先輸入
/sbin/ldconfig
再開始編譯安裝Subversion
tar jxvf subversion-1.6.6.tar.bz2
cd subversion-1.6.6
./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-neon=/usr/local/neon
make
make install
cd ..

Subversion安裝完畢,將svn的bin目錄包含到系統環境變量中
export PATH=/usr/local/svn/bin:$PATH
輸入svn --version試試
svn, version 1.6.6 (r40053)
compiled Dec 11 2009, 17:37:03

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme

完工啦~ ? 檔案砍砍掉吧~
rm -rf apr-1.3.9
rm -f apr-1.3.9.tar.gz
rm -rf apr-util-1.3.9
rm -f apr-util-1.3.9.tar.gz
rm -rf neon-0.29.0
rm -f neon-0.29.0.tar.gz
rm -rf sqlite-3.6.19
rm -f sqlite-amalgamation-3.6.19.tar.gz
rm -rf subversion-1.6.6
rm -f subversion-1.6.6.tar.bz2

About 窮苦人家的小孩

In every democracy, the people get the government they deserve. ~Alexis de Tocqueville
上一篇:
下一篇:

Check Also

野々浦暖 野野浦暖 Non Nonoura

VPS優惠 – CloudCone | 2022 復活節

之前介紹過很多次的CloudC …

3 comments

  1. Hi there,
    Interesting, I`ll quote it on my site later.

發佈留言