星期四, 9月 28, 2006

[Subversion]Subversion on Linux(New)

If your shell is bash,you must modify $HOME/.bash_profile,
.bash_profile append this setting:
+===================================================================+
export SVN_HOME=$HOME/svn
export LD_LIBRARY_PATH=$SVN_HOME/lib:/usr/lib:$LD_LIBRARY_PATH
export PATH=$SVN_HOME/bin:/usr/bin:$PATH
+===================================================================+
In terminal,command"source $SVN_HOME/.profile"


1. Install gdbm 1.8.3
tar zxvf gdbm-1.8.3.tar.gz
cd gdbm-1.8.3
./configure --prefix=$SVN_HOME
make
make install

2. Install expat 2.0.0
tar zxvf expat-2.0.0.tar.gz
cd expat-2.0.0
./configure --prefix=$SVN_HOME --enable-shared --with-gnu-ld=yes
make
make install

3. Install libxml2 2.6.27
tar zxvf libxml2-2.6.27.tar.gz
cd libxml2-2.6.27
./configure --prefix=$SVN_HOME --with-python=/usr/bin/python --with-zlib=/usr
make
make install

4. Install neon 0.26.1
tar zxvf neon-0.26.1.tar.gz
cd neon-0.26.1
./configure --prefix=$SVN_HOME --with-libs=$SVN_HOME --enable-shared --with-libxml2 --with-expat
make
make install

5. Install DB 4.4.20
tar zxvf db-4.4.20.tar.gz
cd db-4.4.20/build_unix
../dist/configure --prefix=$SVN_HOME
make
make install

6. Install apache 2.2.3
tar zxvf httpd-2.2.3.tar.gz
cd httpd-2.2.3/srclib/apr
./configure --prefix=$SVN_HOME
make
make install
cd ../apr-util
./configure --prefix=$SVN_HOME --with-berkeley-db=$SVN_HOME --with-apr=../apr --with-gdbm=$SVN_HOME --with-expat=$SVN_HOME
make
make install
cd ../..
./configure --prefix=$SVN_HOME --enable-mods-shared=all --with-apr=srclib/apr --with-apr-util=srclib/apr-util
make
make install

7. Install swig 1.3.29
tar zxvf swig-1.3.29.tar.gz
cd SWIG-1.3.29
./configure --prefix=$SVN_HOME --with-python=/usr/bin/python --enable-static=yes
make
make install

8. Install Subversion 1.4.2
tar zxvf subversion-1.4.2.tar.gz
cd subversion-1.4.2
./configure --prefix=$SVN_HOME --with-swig=$SVN_HOME --with-neon=$SVN_HOME --with-berkeley-db=$SVN_HOME --with-apxs=$SVN_HOME/bin/apxs --with-apr=$SVN_HOME/bin/apr-1-config --with-apr-util=$SVN_HOME/bin/apu-1-config --with-zlib
make
make install

9. Setup the configuration of apahce.

10. finish.

沒有留言: