SUSE11下编译Subversion客户端
来源:互联网 发布:windows pe 黑苹果 编辑:程序博客网 时间:2024/06/05 17:29
工作需要在SLES11下面编译svn的客户端,支持svn://,http://,https://。编译的有点小郁闷,最终还是通过了。过程记录在此。
1. apr-1.4.2
下载http://labs.renren.com/apache-mirror/apr/apr-1.4.2.tar.gz
执行
tar xzvf apr-1.4.2.tar.gz
cd apr-1.4.2
./configure
make
make install
cd apr-1.4.2
./configure
make
make install
2. apr-util-1.3.9
下载http://labs.renren.com/apache-mirror/apr/apr-util-1.3.9.tar.gz
执行
tar xzvf apr-util-1.3.9.tar.gz
cd apr-util-1.3.9
./configure --with-apr=/usr/local/apr/
make
make install
cd apr-util-1.3.9
./configure --with-apr=/usr/local/apr/
make
make install
3. sqlite-amalgamation-3.6.23
下载http://www.sqlite.org/sqlite-amalgamation-3.6.23.1.tar.gz
执行
tar xzvf sqlite-amalgamation-3.6.23.1.tar.gz
cd sqlite-amalgamation-3.6.23.1
./configure
make
make install
cd sqlite-amalgamation-3.6.23.1
./configure
make
make install
4. zlib-1.2.5
下载http://zlib.net/zlib-1.2.5.tar.gz
执行
tar xzvf zlib-1.2.5.tar.gz
cd zlib-1.2.5
./configure
make
make install
cd zlib-1.2.5
./configure
make
make install
5. libxml2-sources-2.7.7
下载http://xmlsoft.org/sources/libxml2-sources-2.7.7.tar.gz
执行
tar xzvf libxml2-sources-2.7.7.tar.gz
cd libxml2-2.7.7
./configure
make
make install
cd libxml2-2.7.7
./configure
make
make install
6. openssl-1.0.0a
下载http://www.openssl.org/source/openssl-1.0.0a.tar.gz
执行
tar xzvf openssl-1.0.0a.tar.gz
cd openssl-1.0.0a
./Configure
make
make install
cd openssl-1.0.0a
./Configure
make
make install
7. neon-0.29.3
下载http://www.webdav.org/neon/neon-0.29.3.tar.gz
执行
tar xzvf neon-0.29.3.tar.gz
8. subversion-1.6.12
下载http://subversion.tigris.org/downloads/subversion-1.6.12.tar.gz
执行
tar xzvf subversion-1.6.12.tar.gz
mv neon-0.29.3 subversion-1.6.12/neon
cd subversion-1.6.12
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/ssl/lib/pkgconfig && ./configure --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/ LDFLAGS=-L/usr/local/apr/lib/ --with-ssl
mv neon-0.29.3 subversion-1.6.12/neon
cd subversion-1.6.12
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/ssl/lib/pkgconfig && ./configure --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr/ LDFLAGS=-L/usr/local/apr/lib/ --with-ssl
make
make install
注:将刚才解压的neon-0.29.3移动到subversion源码文件夹下,并重命名为neon。如果出现make错误,提示有些接口找不到,请重新执行7,8两步。
9. 最终结果如下
# svn --version
svn, version 1.6.12 (r955767)
compiled Jul 7 2010, 09:05:44
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
svn, version 1.6.12 (r955767)
compiled Jul 7 2010, 09:05:44
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
本文出自 “海狗哥的流媒体空间” 博客,请务必保留此出处http://jeremiah.blog.51cto.com/539865/347284
10. 建立svn目录
使用svnadmin这个命令,不懂的话,可以先使用svnadmin help一下
svnadmin create repository 后面的repository为你要创建的目录名称,自己可以设置
11. 在新创建的repository目录下面,进行配置
改变conf目录下面的svnserver.conf文件
anon-access=none
auth-access=write
password-db=passwd,指出其用户名和密码是保存在passwd这个文件里面.然后在passwd文件里面设置用户名=密码就是了
12. svn help自学成才吧
- SUSE11下编译Subversion客户端
- SUSE11下编译Subversion客户端
- SUSE11下无图形界面安装oracle11g客户端
- ubuntu下安装subversion客户端
- ubuntu下安装subversion客户端
- ubuntu下安装subversion客户端
- ubuntu下安装subversion客户端
- suse11.0下dke环境gcc4.3.1编译starditc
- 手动编译安装subversion客户端(转)
- SUSE11下安装JDK6
- SUSE11下安装JDK6
- SUSE11下安装weblogic12
- suse11下关闭防火墙
- ubuntu下安装subversion客户端及使用方法
- ubuntu下安装subversion客户端和使用
- linux 下安装 subversion(svn) 客户端
- Linux/Ubuntu 下编译安装Subversion
- suse11下开通telnet服务
- 罗云彬win32汇编教程笔记 Win32汇编的全局变量与局部变量
- Asp.net中常用的26个性能优化方法
- 基于CSS3的表现层框架impress.js
- SyntaxError: Non-ASCII character '\xe7' in file解决方法
- Spring 表达式语言 (Spring Expression Language) SpEL
- SUSE11下编译Subversion客户端
- Android framework层编写service(实验验证后修订)
- 2012年3月11日面试后感以及其他
- Vim:打造Linux C/C++程序员的编辑器
- 网址收集
- web.xml The content of element type "web-app" must match "
- Error 15023: User already exists in current database.
- Linux Socket编程(不限Linux)
- ContentType 类型汇总