现在的位置: 首页 > 综合 > 正文

在 Bluehost 主机上安装 Subversion(SVN),支持 64 位主机

2013年06月23日 ⁄ 综合 ⁄ 共 1642字 ⁄ 字号 评论关闭

一开始是按照Bluehost论坛上的方法来安装,
但是发现无法支持http, https协议, 又按照半瓶墨水的方法来安装,
这次支持http协议了, 但是依然不支持https.

后来google了一下, 经过多次摸索, 终于安装成功, 下面分享经验.
cd ~
mkdir install
mkdir src
cd src
#下载
wget http://subversion.tigris.org/downloads/subversion-1.6.4.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.4.tar.gz
wget http://www.openssl.org/source/openssl-0.9.8k.tar.gz
tar xzvf openssl-0.9.8k.tar.gz
tar xzvf subversion-deps-1.6.4.tar.gz
mv subversion-1.6.4 deps
tar xzvf subversion-1.6.4.tar.gz

#编译OpenSSL
cd openssl-0.9.8k
./config –prefix=$HOME/install/openssl
make
make install
cd ..
cd deps

#编译apr
cd apr
./configure –prefix=$HOME/install/apr LDFLAGS=”-L/lib64″
make
make install
cd ..

#编译apr-util
cd apr-util
./configure –prefix=$HOME/install/apr-util –with-apr=$HOME/install/apr LDFLAGS=”-L/lib64″
make
make install
cd ..

#编译serf
cd serf
./configure –prefix=$HOME/install/serf –with-apr=$HOME/install/apr –with-apr-util=$HOME/install/apr-util –with-openssl=$HOME/install/openssl LDFLAGS=”-L/lib64″
make
make install
cd ..

#编译zlib
cd zlib
./configure –prefix=$HOME/install/zlib
make
make install
cd ..

#编译neon, subversion是否支持https就看这个组件编译的时候是否支持ssl了, 编译完成后, 你会看到一个summary, 上面明确显示支持ssl就对了
cd neon
./configure –prefix=$HOME/install/neon –enable-shared –enable-ssl –with-ssl –with-libs=$HOME/install/openssl LDFLAGS=”-L/lib64″
make
make install
cd ..
cd..

#编译subversion
cd subversion-1.6.4
cp -R ~/src/deps/sqlite-amalgamation ./
./configure –prefix=$HOME/install/subversion –without-berkeley-db –with-zlib=$HOME/install/zlib –with-apr=$HOME/install/apr –with-apr-util=$HOME/install/apr-util –with-serf=$HOME/install/serf –with-neon=$HOME/install/neon –with-ssl LDFLAGS=”-L/lib64″
make
make install

把svn添加到环境变量中, 会方便使用
cd ~
vi .bashrc
在文件最后增加PATH=$PATH:$HOME/install/subversion/bin存盘退出


抱歉!评论已关闭.