源码安装svn 1.8.9
2014年5月25日 12:26:14
需要文件: svn apr apr-util sqlite3 serf
svn : http://subversion.apache.org/download/
apr/apr-util : http://apr.apache.org/download.cgi
serf : https://code.google.com/p/serf/
安装 apr
./configure
make && make install
安装apr-util
./configure --with-apr=/usr/local/apr/bin/apr--config
make && make install
安装 sqlite3
wget http://www.sqlite.org/sqlite-amalgamation-3071501.zip 将其解压到svn源代码目录里更名为sqlite-amalgamation
安装 serf
serf 这个库提供的是对http和https协议的支持。值得说明的是,.8版本之前这里依赖的是neon,.8之后改成了serf (艹); 当前版本的serf是用scons命令安装的,类似configure, so, 也要先安装scons, but, scons的安装是需要python的, 安装完python就可以了
安装svn
./configure --with-apr=/usr/local/apr/bin/apr--config --with-apr-util=/usr/local/apr/bin/apu--config --with-serf=/usr/local/serf
注意,如果以前的系统中安装有rpm的 apr,apr-util 要将它们卸载掉,否则在执行 svn up 时会出现错误提示
svn: symbol lookup error: /usr/local/lib/libsvn_subr-.so.: undefined symbol: apr_atomic_xchgptr
解决方法时,卸载掉用rpm安装的apr,apr-util
rpm -e --allmatches apr-util --nodeps
rpm -e --allmatches apr --nodeps
还有:
sqlite3 不用安装,只用解压后,复制到svn解压后的源码包中
serf 是让svn识别http协议的 默认安装的prefix是/usr/local/serf
-------------------
有找了个机器安装,这次是先将原有的apr/apr-util 卸载掉再照上边的步骤安装时出的错:
如果make svn的时候提示错误: make: *** [subversion/libsvn_subr/libsvn_subr-1.la] Error 1
就试试在configure时,将 --with-apr=... --with-apr-util=... 的值指向源码包里
参考这篇文章: http://88fly.blog.163.com/blog/static/12268039020126212101341/
如果出现这个错误提示:
Serf was explicitly enabled but an appropriate version was not found
可能的原因是,在配置svn的./configure时,指定的apr/apr-util的配置文件路径不对,切记一个是apr/bin/apr-1-config,一个是 apr/bin/apu-1-config
如果svn up时出现错误提示:
svn: error while loading shared libraries: libserf-.so.: cannot open shared object file: No such file or directory
原因是: serf 1.2.1 版本没有libserf-1.so.1, 但在 serf 1.3.5有(不清楚1.3.*是否都有)
可能,安装了serf后可能开会出现上边提示,这时可以在/usr/lib64 里建立一个软连接
ln -s /usr/local/serf/lib/libserf-.so.1.3. /usr/lib64/libserf-.so.
Linux安装软件真蛋疼,在两个虚拟机上安装,就因为安装软件的顺序不一样,出的错还不一样,导致安装的命令也不一样
svn 初次使用,用户名密码设置 http://www.cnblogs.com/iLoveMyD/p/4233914.html
参考:
http://www.linuxidc.com/Linux/2014-05/101232.htm
http://blog.csdn.net/cww0403/article/details/20063223
http://www.darrenfang.com/svn-apr-atomic-xchgptr-error.html
http://www.th7.cn/system/lin/201403/51431.shtml
源码安装svn 1.8.9的更多相关文章
- CentOS 源码安装svn
一. 下载依赖包 1. apr源码包 http://mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.5.2.tar.gz 2. apr-util源码包 h ...
- Subversion1.8源码安装流程
为了解决svnamin:Unrecognized record type in stream的问题,决定将Subversion1.7升级为Subversion1.8 Subversion1.8的源码安 ...
- Linux 系统安装配置PHP服务(源码安装)
简介: PHP(外文名:PHP: Hypertext Preprocessor,中文名:“超文本预处理器”)是一种通用开源脚本语言.语法吸收了C语言.Java和Perl的特点,利于学习,使用广泛,主要 ...
- mono-3.4.0 源码安装时出现的问题 [do-install] Error 2 [install-pcl-targets] Error 1 解决方法
Mono 3.4修复了很多bug,继续加强稳定性和性能(其实Mono 3.2.8 已经很稳定,性能也很好了),但是从http://download.mono-project.com/sources/m ...
- 搭建LNAMP环境(七)- PHP7源码安装Memcached和Memcache拓展
上一篇:搭建LNAMP环境(六)- PHP7源码安装MongoDB和MongoDB拓展 一.安装Memcached 1.yum安装libevent事件触发管理器 yum -y install libe ...
- 搭建LNAMP环境(二)- 源码安装Nginx1.10
上一篇:搭建LNAMP环境(一)- 源码安装MySQL5.6 1.yum安装编译nginx需要的包 yum -y install pcre pcre-devel zlib zlib-devel ope ...
- 搭建LNAMP环境(一)- 源码安装MySQL5.6
1.yum安装编译mysql需要的包 yum -y install gcc-c++ make cmake bison-devel ncurses-devel perl 2.为mysql创建一个新的用户 ...
- Greenplum 源码安装教程 —— 以 CentOS 平台为例
Greenplum 源码安装教程 作者:Arthur_Qin 禾众 Greenplum 主体以及orca ( 新一代优化器 ) 的代码以可以从 Github 上下载.如果不打算查看代码,想下载编译好的 ...
- salt源码安装软件和yum安装软件
上面简单列出了源码安装的sls文件书写思路. 涉及到一些固定的思路:如, 1,拷贝 解压安装时候需要依赖tar.gz存在 如果已安装则无需再次安装. 2,启动脚本 加入chk时候需要文件存在,如果已添 ...
随机推荐
- helm的安装于与简单使用
根据 csdn 博客整理学习 原始博客地址: https://blog.csdn.net/weiguang1017/article/details/78045013 1. 下载所需要的文件: 客户端文 ...
- Yii 框架的Rbac [权限控制]
转载自 xmlife 的博客 : http://blog.csdn.net/xmlife/article/details/50733451 1.首先我们要在配置文件的组件(component)里面配置 ...
- Java中String直接赋字符串和new String的区别 如String str=new String("a")和String str = "a"有什么区别?
百度的面试官问 String A="ABC"; String B=new String("ABC"); 这两个值,A,B 是否相等,如果都往HashSet里面放 ...
- SVN Update Error: Please execute the 'Cleanup' command
尝试用下面两种方法 svn clean up 中有一个选项break lock勾选上 把对应的文件来里的.svn里面的lock文件删除. svn local delete, incoming dele ...
- contentInsetAdjustmentBehavior各个值之间的区别
iOS11也出了不少时候了网上说适配的文章一大堆.关于contentInsetAdjustmentBehavior这个参数之间的区别,好像没什么人能说明.往下看的前提是你已经知道什么是安全区域,没看明 ...
- HGOI20190126 模拟赛
/* 最后一题比较难! */ solution:观察这个奇怪的图,不能共用走廊,就是1.2打包,3,4打包,每个包之间连线的线段覆盖问题. 考虑吧每个数映射成一个约为一半的数,且相邻(前奇后偶映射值一 ...
- Windows 7 安装VS2008 SP1 失败
由于Windows 7自带了.NET Framework 3.5 SP1, 所以在安装VS 2008 SP1的时候会发生fatal error during installation的错误, 网上找来 ...
- LInux上返回到切换目录前的目录
在Linux系统上,切换目录用命令cd (change directory),查看当前目录的命令pwd (print working directory). 例如当前目录为:/home/keysyst ...
- First non-repeating character in a stream
First non-repeating character in a stream Given an input stream of n characters consisting only of s ...
- Helm二:安装
目录 Helm安装 Helm client安装 Helm tiller安装 Chart仓库配置 私有chart仓库 chart仓库的组成 创建本地仓库 chart仓库基本管理 Helm安装 Helm ...