解决mac使用svn: E170000: Unrecognized URL scheme for https://xxx错误
2015-06-01 21:49
781 查看
OS X版本:10.10.3
10.10.3自带了svn,但是版本是1.7,如果项目是使用1.8的svn,就必须升级到1.8,才能够正常使用。当前svn的最新版本是1.8.13。那么首先删除旧版本的svn,先查看svn安装到哪个目录:
10.10.3自带了svn,但是版本是1.7,如果项目是使用1.8的svn,就必须升级到1.8,才能够正常使用。当前svn的最新版本是1.8.13。那么首先删除旧版本的svn,先查看svn安装到哪个目录:
localhost:~ mikan$ which svn /usr/local/bin/svn删除旧版本的svn:
localhost:~ mikan$ cd /usr/local/bin/ localhost:bin mikan$ rm -rf svn*通过brew install subversion
localhost:bin mikan$ brew update subversion查看svn版本:
localhost:bin mikan$ svn --version查看svn服务器上的某个目录:
localhost:bin mikan$ svn list https://ip:port/xxx/trunk/[/code]此时却出现了:svn: E170000: Unrecognized URL scheme for https://ip:port/xxx/trunk/[/code]
通过网上查找,原来1.8以后需要serf软件包来支持访问http协议的版本库,不然会出现上面的错误。而serf需要使用scons来编译安装,所以要成功安装最新版本的svn,需要如下步骤:
1、安装scons
2、安装serf
3、安装svn
下面是具体步骤
1、安装sconslocalhost:bin mikan$ brew install scons
2、安装serf
serf不能通过brew安装,只能下载源码来安装,而serf托管在googlecode下,最新版本是1.3.8,但是不能在googlecode下载最新版本的,不知道是什么原因,但找了另一个网站可下载:
http://fossies.org/linux/www/serf-1.3.8.tar.gz/
下载serf并解压后,安装步骤如下:tar -xvf serf-1.3.8.tar.bz2 cd serf-1.3.8 scons PREFIX=/usr/local/serf scons install其中scons PREFIX=/usr/local/serf中的/usr/local/serf是serf的安装目录,安装完成后,接下来安装svn
3、安装svn
首先去官网下载最新版本的svn源码包,当前最新版本是1.8.13:
https://subversion.apache.org/download/
然后解压安装:tar -xvf subversion-1.8.13.tar.bz2 cd subversion-1.8.13 ./configure --with-serf make install好了,安装成功,来验证一下:localhost:subversion-1.8.13 mikan$ svn --version svn, version 1.8.13 (r1667537) compiled Jun 1 2015, 21:01:09 on x86_64-apple-darwin14.3.0 Copyright (C) 2014 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - 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. - using serf 1.3.8 - handles 'http' scheme - handles 'https' scheme
通过最后两行知道支持http和https
再通过svn list来验证一下:svn list https://ip:port/xxx/trunk/ Error validating server certificate for 'https://182.92.233.191:443': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually! - The certificate hostname does not match. Certificate information: - Hostname: iZ258hknam2Z - Valid: from May 14 14:00:46 2015 GMT until May 11 14:00:46 2025 GMT - Issuer: - Fingerprint: 5D:5A:8E:D7:AA:95:7D:29:6A:E7:67:2E:B1:22:E6:1A:4E:B2:F4:CE (R)eject, accept (t)emporarily or accept (p)ermanently?
这里输入p永久接受,然后即可显示该svn目录下的文件及文件夹了。
至此,便可正常使用svn了。
相关文章推荐
- MAC下SVN 命令的使用
- BP神经网络的数学原理及其算法实现
- 关于VirtualBox下虚拟机的几种网络模式
- Java Http下载网络文件
- 猫猫学iOS(五十六)网络基础以及如何搭建服务器
- java下载网络文件并重命名
- tcp/ip ---------- 网际协议之tcp
- TCP/IP协议簇
- 使用java检测网络连接状况
- 使用java检测网络连接状况
- 从时间序列到复杂网络:可见图算法
- 从多层感知器到卷积网络(一)
- TCP三次握手和四次挥手过程以及连接为什么使用三次连接,释放使用四次
- 使用Charles进行网络请求抓包解析
- http响应状态码301和302
- Linux网络编程:原始套接字编程及实例分析(3)
- Linux网络编程:原始套接字编程及实例分析(二)
- DHCP的配置及应用
- tomcat开启https
- MFC中的CAsyncSocket类实现网络通信