1.Download Berkerley DB from oracle website.
1.1 install Berkeyley DB
cd db-sourcepath/build-unix
../dist/configure –prefix=/opt/local/bdb
make && sudo make install
2. Install apr and apr-util
2.1 Download apr and apr-util from apr.apache.org.
2.2 cd apr-sourcepath
./configure –prefix=/opt/local/apr
make && sudo make install
2.2 cd apr-util-sourcepath
./configure –prefix=/opt/local/apr-util –with-apr=/opt/local/apr –with-berkeley-ab=/opt/local/bdb
make && sudo make install
3. Install subversion
3.1 Download subversion source
3.2 cd subversion-sourcepath
./configure –prefix=/opt/local/svn –with-apxs=/usr/sbin/apxs –with-apr=/opt/local/apr/apr-1-config –with-apr-util=/opt/local/apr-util/apu-1-config
make && sudo make install
you can also use mac ports to install subversion. but may need more time.


可能还需要配置其他的一些东西, 不然可能无法连接到网络主机.
Comment by KF.KAFEI — 10/15/2009 at 09:04