首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > CVS SVN >

ubuntu上安装带有ssl的svn

2012-07-02 
ubuntu下安装带有ssl的svnhttp://ubuntuforums.org/showthread.php?t948900错误如下:svn: OPTIONS of ht

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

热点排行