ubuntu下安装带有ssl的svn

http://ubuntuforums.org/showthread.php?t=948900

错误如下:
svn: OPTIONS of 'https://xxxxxxxxxx.xxxx.xx/svn/repo': SSL negotiation failed: SSL error: Key usage violation in certificate has been detected. (https://xxxxxxxxxxx.xxxx.xx)

解决办法:
#Pull the Subversion and Subversion Deps source trees from the tigris site, and untar them in the same place:
#Go into the subversion-1.xx/neon directory ....
首先需要安装:libssl-dev libxml2-dev 两个包
wget http://subversion.tigris.org/downloads/subversion-【最新版】.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-【最新版】.tar.gz
tar xvfz subversion-【最新版】.tar.gz
tar xvfz subversion-deps-【最新版】.tar.gz
cd subversion-【最新版】/neon/

# neon will by default build with OpenSSL and not GNU TLS
# The main subversion build is supposed to build it, but it had
# problems on my amd64 setup, so I had build it separately
# 先安装一些包:
sudo apt-get install libssl-dev libxml2-dev
./configure --with-ssl --with-pic
make
make install

cd ..
rm -rf neon
echo "/usr/local/lib" >> /etc/ld.so.conf
ldconfig

# now build subversion with the OpenSSL-enabled neon
./configure --with-ssl --with-neon=/usr/local
make
make install

# get rid of /usr/bin/svn
dpkg --purge subversion

懒人直可以接拷贝如下代码执行脚本

echo "This script will reconfigure subversion to work with certs correctly."
echo "Steps outlined by dcrooke and compiled into this script by Kalosaurusrex"
echo "Please see the ubuntuforums.org thread for more information, questions or help."
echo "http://ubuntuforums.org/showthread.php?p=6057983"
echo ""
echo ""
echo "Please run this script as USER ONLY."
echo ""
echo "Press control-c to quit..else the script will start in 5 seconds."
sleep 5
sudo apt-get update
sudo apt-get install build-essential openssl ssh expat libxyssl-dev libssl-dev
sudo apt-get remove subversion
sudo dpkg --purge subversion
wget http://subversion.tigris.org/downloads/subversion-【最新版】.tar.gz
wget http://subversion.tigris.org/downloads/subversion-deps-【最新版】.tar.gz
tar xvfz subversion-【最新版】.tar.gz
tar xvfz subversion-deps-【最新版】.tar.gz
cd subversion-【最新版】/neon/
./configure --prefix=/usr/local --with-ssl --with-pic
make
sudo make install
cd ..
rm -rf neon
./configure --prefix=/usr/local --with-ssl --with-neon=/usr/local
make
sudo make install
cd ..
rm -rf subversion-【最新版】
rm subversion-【最新版】.tar.gz
rm subversion-deps-【最新版】.tar.gz
exit 0
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值