Ubuntu使用svn命令行创建分支 遇到svn: SSL is not supported错误

来源:互联网 发布:清华大学网络教育招生 编辑:程序博客网 时间:2024/06/05 07:57

Ubuntu使用svn命令行创建分支 遇到svn: SSL is not supported错误


这主要是因为在编译svn源码的时候,没有加上--with-ssl选项,导致不支持https加密协议。解决办法(以svn1.6.13为例):

1、下载svn1.6.13源码,并解压,得到subversion1.6.13目录,因为在ubuntu下系统缺少一些库文件,还需要一个相应的包,下载subversion-deps-1.6.13.tar.bz2,并将其中的所有子目录,也解压到刚才的subversion1.6.13目录;

2、执行./configure --with-ssl;

3、如上一步没有错误,执行make命令;

4、执行make install命令,安装完毕。

测试方法:输入svn --version,显示如下:

svn, version 1.6.13 (r1002816)
   compiled Mar  5 2012, 11:22:32

Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see
http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
  - handles 'http' scheme
  - handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - handles 'http' scheme
  - handles 'https' scheme

其中显示 - handles 'https' scheme,表示支持https协议,OK~

原创粉丝点击