- 浏览: 1526157 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (225)
- JAVA (27)
- Spring (49)
- Linux (51)
- JavaScript (8)
- Scrum (23)
- IDE (2)
- JSON (2)
- Solr (0)
- Webharvest (0)
- Hibernate (8)
- 杂谈 (3)
- Windows 7 (4)
- 持续集成 (23)
- tomcat (3)
- Android (1)
- SpringSecurity (11)
- Maven (9)
- jotm (3)
- C3P0 (1)
- Active Directory (2)
- cas (1)
- JQuery (2)
- ajax (1)
- plsql (2)
- nginx (4)
- apache (1)
- thrift (7)
- python (3)
- oracle (4)
- php (2)
- redis (1)
- fedora (1)
- windows7 (0)
- SVN (1)
- NFS (1)
- SAMBA (1)
- Atomikos (1)
- apache-poi (1)
- mysql (2)
- vncserver (1)
- mac (2)
- firefox (1)
- JIRA (1)
- p6spy (1)
- git (1)
- github (1)
- gitlab (1)
- gogs (1)
- Druid (1)
- MyBatis (1)
- docker (8)
- zabbix (1)
最新评论
-
lialatd:
您好,我用您的方法通过java api往jira系统中添加is ...
JIRA REST API ---- JAVA -
sprcen945:
可以了,是因为没加intercept-url 的拦截, 尼玛, ...
SpringSecurity3.X--Cas client 配置 -
sprcen945:
请问为什么我配了security.xml后切入点不起作用(之前 ...
SpringSecurity3.X--Cas client 配置 -
linxingyul:
根据楼主的代码 继承了WebMvcConfigurationS ...
SpringMVC4零配置--Web上下文配置【MvcConfig】 -
java_老头:
MvcConfig.java的FilterType.ANNOT ...
SpringMVC4零配置--Web上下文配置【MvcConfig】
以Red Hat Enterprise Linux 5为例进行讲解。
相关系列:
安装svn版本为1.6.1
一。下载svn
下载地址:http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74
选择subversion-1.6.1.tar.gz 和 subversion-deps-1.6.1.tar.gz
将该下载包拷贝到/usr/local/下(随意了,找个地方就好)
二。安装
cd /usr/local/
tar zxvf subversion-1.6.1.tar.gz
tar zxvf subversion-deps-1.6.1.tar.gz #会自动解压到subversion-1.6.1下
cd subversion-1.6.1
按照一些网络资料的介绍,执行如下命令即可完成安装
./configure
make
make install
但在实际安装过程中会,执行./configure时,根据系统的配置不同会有不同的错误提示,我使用的是一个全新安装的系统,主要配置如下:
桌面环境:GNOME桌面环境
应用程序:图形,图形化互联网,
编辑器开发 : 只选择开发工具
服务器:万维网服务器
基本系统:java ,X窗口系统,基本,拨号联网支持,管理工具,系统工具。
语言支持:中文支持
接下来我把我遇到的错误提示和解决方法说明如下:
./configure
#错误提示1#
configure: error: We require OpenSSL; try --with-openssl
解决方法:
错误提示需要安装openssl,所以我就安装了一个openssl,安装方法如下:
cd /usr/local
wget http://www.openssl.org/source/openssl-1.0.0a.tar.gz
tar -zxvf openssl-1.0.0a.tar.gz
cd openssl-1.0.0a
./config
./config -t
make depend
make
make test
make install
安装之后会在/usr/local下生成一个ssl目录
设置环境变量,在/etc/profile的PATH中增加如下内容:
PATH=/usr/local/ssl/bin:/sbin/:$PATH:/usr/sbin
export PATH
ok,错误提示1解决。
重新执行./configure --with-openssl=/usr/local/ssl #这里加上--with-openssl参数
#错误提示2#
configure: error: subversion requires zlib
解决方法:
cd /usr/local
wget http://zlib.net/zlib-1.2.5.tar.gz
tar -xvzf zlib-1.2.5.tar.gz
cd zlib-1.2.5
./configure
make
make install
cd /usr/local
ln -s zlib-1.2.5 zlib
ok,错误提示2解决。
重新执行./configure --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib ,成功!
接着执行如下命令:
make
make install
ok,svn安装完成。
三。验证
svn --version
有可能会出现如下提示:
svn: error while loading shared libraries: /usr/local/serf/lib/libserf-0.so.0: cannot restore segment prot after reloc: Permission denied
此时执行如下命令即可解决问题:
setenforce permissive
说明:这是权限配置问题,关于这部分可以参考:http://blog.csdn.net/venoy4806/archive/2009/10/13/4665097.aspx
再次执行svn --version
root@localhost svn]# svn --version
svn, version 1.6.1 (r37116)
compiled Jun 17 2010, 14:59:48
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
* 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
ok,svn配置完成。
测试一下:
svn checkout https://xxx.xxx.xxx/
结果报如下错误:svn: SSL is not supported
仔细一看,原因如下,svn --version显示,ra_neon 不支持https :
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
从网上查了一下,说是在执行./configure 时要加上--with-ssl
ok,重新安装,如下:
./configure --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib --with-ssl
错误提示:
configure: error: could not find library containing RSA_new
应该是类库的路径不对,那么我们就指定类库路径,如下:
./configure --with-openssl=/usr/local/ssl --with-zlib=/usr/local/zlib --with-ssl --with-libs=/usr/local/ssl
ok,这次执行成功,接着执行make,make install 即可。
现在再次执行svn --version,显示如下:
[wap@localhost boss]$ svn --version
svn, version 1.6.1 (r37116)
compiled Jun 17 2010, 14:59:48
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
可以看到,现在https也支持了。
这次执行
svn checkout https://xxx.xxx.xxx/
成功。
四。后记
总的来说svn的安装还是有些复杂的,为了安装方便我使用的是root用户。
另外在安装过程中可能会遇到如下错误提示:
configure: error: no suitable apr found 和configure: error: Subversion requires SQLite
这是因为没有加入subversion-deps-1.6.1.tar.gz的原因,subversion-deps-1.6.1.tar.gz中包含了在安装svn是必要的一些包,注意下载时两者的版本要一致。
PS:
遇到过这样一个问题,执行svn --version报如下异常:
svn: error while loading shared libraries: /usr/local/serf/lib/libserf-0.so.0: cannot restore segment prot after reloc: Permission denied
不明所以,用的好好地突然就这样了,到网上了解了一下,给出解决方法:
编辑/etc/selinux/config,找到这段:
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=enforcing
把 SELINUX=enforcing 注释掉:#SELINUX=enforcing ,然后新加一行为:
SELINUX=disabled
保存,关闭。
chcon -t texrel_shlib_t /usr/local/serf/lib/libserf-0.so.0
貌似关于这样的问题都可以通过执行chcon -t texrel_shlib_t 文件名称来解决
虽然解决了,不过还是不明所以。
发表评论
-
图文详解CentOS7下安装Zabbix3.2
2016-11-12 15:04 2138centOS7下zabbix-server和zabbix- ... -
Linux下安装Oracle11g服务器
2015-12-24 14:10 1018安装环境 Linux服务器:CentOS6.5 64位 ... -
Linux下安装Oracle11g服务器
2015-12-23 15:41 0安装环境 Linux服务器:CentOS6.5 64位 ... -
oracle批量导入csv文件
2015-12-11 18:57 3588数据表: CREATE TABLE "CA ... -
mysql批量导入与导出csv文件
2015-12-10 18:42 5329一.导入 数据格式: 38685553,48892 ... -
Linux 挂载U盘和移动硬盘
2015-12-10 11:32 1参考:http://www.cnblogs.com/yeah ... -
RAID-虚拟化-U盘启动的设置方法(Dell R510)
2015-12-10 11:25 20151.raid模式说明 RAID是英文Redundant ... -
linux远程桌面----VNCServer与rdesktop
2015-02-06 11:13 2209windows远程桌面到linux,需要在linux上安装 ... -
linux下SAMBA服务安装与配置
2014-03-07 11:34 1969局域网使用的文件共享服务。 一.安装包: rpm -qa ... -
程序员必知必会----linux常用命令之十【系统相关】
2014-01-22 16:27 2631一.linux快捷键 Ctrl+C : ... -
程序员必知必会----linux常用命令之九【文件系统管理】
2014-01-22 11:31 1694一.文件系统构成 /usr/bin 、/bin:存放所有 ... -
程序员必知必会----linux常用命令之八【网络命令】
2014-01-21 17:38 3760一.设置固定IP 先说一下临时设置IP的方法: ifc ... -
linux之ACL授权
2014-01-21 11:46 2446ACL授权比chmod更加灵活,也更加精细化,在进行授权操作 ... -
Linux----SSH三大模块与rsync增量备份
2014-01-20 14:06 6053SSH版本:openssh 如果系统没有scp命令,yu ... -
linux下NFS服务安装与配置
2014-01-17 16:26 6516NFS--Network File System :Uni ... -
程序员必知必会----linux常用命令之七【shell编程】
2014-01-16 10:34 1148#!/bin/sh:指定执行脚步的shell #:注释行 ... -
程序员必知必会----linux常用命令之六【文本分析】
2014-01-16 10:34 12751.grep cat file | grep key : ... -
程序员必知必会----linux常用命令之五【进程管理】
2014-01-15 15:34 1256进程管理 w:查看当前登录用户的信息 load ave ... -
程序员必知必会----linux常用命令之四【软件包管理】
2014-01-15 15:33 9981.rpm包 查询: rpm -qa | grep s ... -
程序员必知必会----linux常用命令之三【用户管理】
2014-01-15 15:32 1459一.配置文件说明 1./etc/passwd :用 ...
相关推荐
linux下svn安装笔记带钩子 svn安装 linux下svn安装 svn钩子
Linux下svn安装
Linux下SVN安装配置,详细讲解linux的安装方法 以及要注意的问题
linux下svn安装(含安装包和说明)
linux下svn安装配置,redhat为例
LINUX下SVN安装[定义].pdf
Linux下SVN安装配置 采用源文件编译安装。源文件共两个,为: subversion-1.6.1.tar.gz (subversion 源文件) subversion-deps-1.6.1.tar.gz (subversion依赖文件) 注意文件版本必须一致,否则很容易产生各种奇怪...
个人时间,在redhat linux 4.4下进行,操作系统版本 i386
Linux(CentOS6.2)下安装SVN服务
...
...
Linux离线安装svn, 含详细的配置文档和所需的所有相关依赖包,亲测可用。支持svn checkout https://这种格式的(ssl加密协议)
linux下SVN环境搭建 linux下SVN环境搭建 linux下SVN环境搭建
本资源包含三个文件,一个ppt,里面详细讲述了linux下svn服务器的安装及配置过程,并对配置选项做了详细的说明。另外两个文件是svn的安装源文件
linux centos操作系统下的SVN服务器安装和配置详细介绍
linux下安装SVN支持http;linux下安装SVN支持http;linux下安装SVN支持http
离线状态下安装linuxsvn支持redhat5.8和centos6.4,有各个依赖安装包,适合linux系统纯净安装的
linux下svn的安装及出现的问题详细解决方案