在centos上进行svn的编译安装

svn的参考网址:http://subversion.apache.org(在该网址中可下载svn的资源文件)

获取相应版本:

wget -c http://download.nextag.com/apache/subversion/subversion-1.8.11.tar.gz

安装过程:

tar -zxvf subversion-1.8.11.tar.gz

cd subversion-1.8.11/

./configure --help (大致看一下参数信息)

./configure --prefix=/usr/local/svnup

这时出现错误:

configure: error: no suitable APR found

好像APR没有,这个参考这个地址:http://apr.apache.org/

我们可以下载这三个包安装:

wget -c http://mirror.cc.columbia.edu/pub/software/apache//apr/apr-1.5.1.tar.gz

wget -c http://mirror.cc.columbia.edu/pub/software/apache//apr/apr-util-1.5.4.tar.gz

wget -c http://mirror.cc.columbia.edu/pub/software/apache//apr/apr-iconv-1.2.1.tar.gz

依次安装:

./configure --prefix=/usr/local/apr/apr-util-1.5.4

出错:

configure: error: APR could not be located. Please use the --with-apr option.

(好像需要--with-apr这个选项)

那就先安装:apr-1.5.1

tar -zxvf apr-1.5.1.tar.gz

cd apr-1.5.1

./configure --prefix=/usr/local/apr/apr-1.5.1

出现:rm: cannot remove ‘libtoolT‘: No such file or directory (不管它,不就是不能删除‘libtoolT‘,没有就不用删除呗!)

make

make install

接下来就安装apr-util-1.5.4

./configure --prefix=/usr/local/apr/apr-util-1.5.4  --with-apr=/usr/local/apr/apr-1.5.1(这回就加上这个之前apr的安装目录)

make

make install

好像还有一个没有安装啊(apr-iconv-1.2.1 用于字符集的转换)查看三者的./configure --help 发现它是带于apr-util-1.5.4中的,那就在apr-util-1.5.4安装之前先安装apr-iconv-1.2.1

tar -zxvf  apr-iconv-1.2.1.tar.gz

./configure  --prefix=/usr/local/apr/apr-iconv-1.2.1

出现错误configure: error: APR could not be located. Please use the --with-apr option

看来它也要apr的安装目录,那就如下吧

./configure  --prefix=/usr/local/apr/apr-iconv-1.2.1 --with-apr=/usr/local/apr/apr-1.5.1

make

make install

现在再次安装apr-util-1.5.4

./configure --prefix=/usr/local/apr/apr-util-1.5.4  --with-apr=/usr/local/apr/apr-1.5.1 --with-iconv=/usr/local/apr/apr-iconv-1.2.1

make clean

make

make install

-------------------------以上三个包安装完成-------------------------

最后再看subversion-1.8.11 中的./configure --help ( --with-apr=PATH         prefix for installed APR, path to APR build tree,or the full path to apr-config)

是不是只安装个apr就可以了,先别说 ,试试

./configure --prefix=/usr/local/svn-1.8.11(为了以后的版本管理,我把安装目录改成了加版本号的形式) --with-apr=/usr/local/apr/apr-1.5.1

又出错误了,出现:configure: error: no suitable APRUTIL found

那就是说还要apr-util 。(--with-apr-util  --with-apr-util=PATH    prefix for installed APU, path to APU build tree, or the full path to apu-config)

那就加上呗

再次配置如下:

./configure --prefix=/usr/local/svn-1.8.11 --with-apr=/usr/local/apr/apr-1.5.1 --with-apr-util=/usr/local/apr/apr-util-1.5.4

尼玛!又出错了,

configure: error: Subversion requires SQLite

看来还要安装SQLite(能嵌入SQL数据库中的一个引擎),

找到官网:http://www.sqlite.org/

得到下载链接:wget -c http://www.sqlite.org/2015/sqlite-autoconf-3080800.tar.gz

./configure --prefix=/usr/local/sqlite-autoconf-3080800

make

make install

再次编译subversion-1.8.11

./configure --prefix=/usr/local/svn-1.8.11 --with-apr=/usr/local/apr/apr-1.5.1 --with-apr-util=/usr/local/apr/apr-util-1.5.4 --with-sqlite=/usr/local/sqlite-autoconf-3080800

(玛啊!这次通过了)

make

make install

********************************* :)

时间: 2024-08-29 10:03:58

在centos上进行svn的编译安装的相关文章

centos 6.5 32位 编译安装Mysql

groupadd mysql #添加mysql组 useradd -g mysql mysql -s /bin/false #创建用户mysql并加入到mysql组,不允许mysql用户直接登录系统 mkdir -p /data/mysql #创建MySQL数据库存放目 chown -R mysql:mysql /data/mysql #设置MySQL数据库目录权限 mkdir -p /usr/local/mysql #创建MySQL安装目录 cd /opt tar zxvf mysql-5.5

CentOS 6.4源码编译安装httpd并启动测试

今天来总结一下在Linux中软件安装,通常我们应该知道,安装软件有两种方法:一种是软件包的安装,也就是rpm包的安装,就是指这些软件包都是 已经编译好的二进制rpm包,我们通过rpm安装工具和yum安装工具就可以直接安装了.另一种则是源代码安装,这种软件安装就是指它只有源代码,没有经 过编译的二进制,需要通过手动去编译安装的. rpm包是别人所编译好的软件包,比如说编译好的rpm包没有某个功能,也我们又想用,那我们就得自去手动下载源代码来自行安装了,自定义去安装程序包,这个是我们要撑握的. 下面

centos 6.5源码编译安装subversion 1.8.10

一.简介 CentOS 6.5的yum源可以安装的SVN客户端版本太低了,1.6.11,所以需要升级到1.8.10,而官网有没有找到1.8.10的安装包,只能选择源码编译安装. 二.安装步骤 参考官网:http://svn.apache.org/repos/asf/subversion/trunk/INSTALL 源码下载:http://archive.apache.org/dist/subversion/ 源码编译subversion依赖许多别的工具,比如:apr.apr-util.libto

CentOS 6系统的 lamp (编译安装,模块或php-fpm)详解

   LAMP 是指一组通常一起使用来运行动态网站或者服务器的 自由软件 名称首字母缩写: 1.Linux:操作系统: 2.Apache:网页服务器: 3. MariaDB或MySQL,数据库管理系统(或者数据库服务器): 4.PHP.Perl或Python,脚本语言:  实验要求: (1) 三者分离于两台或三台主机: (2) 一个虚拟主机用于提供phpMyAdmin:另一个虚拟主机用于提供wordpress: (3) xcache (4) 尝试mpm为非prefork机制:    IP   系

centos 学习笔记——源码编译安装apache

每一次遇到错误解决错误的过程,都是知识积累的最好时光,他会让你对这个知识点记忆更深刻!好吧原谅我这么无耻的给自己知识储备不足来开脱,话不多说把这次历程记录下来吧. 系统还是老样子: #cat /etc/redhat-release ;uname -r CentOS release 6.7 (Final) 2.6.32-573.el6.x86_64 学习安装的过程中遇到很多前辈们走过的弯路,估计我是都已经走过一遍了,先把需要准备的都提前备好: apache 版本2.4.20 (apache 官网地

CentOS 6.0最小化编译安装Nginx+MySQL+PHP+Zend

http://www.osyunwei.com/archives/235.html 引言: 操作系统:CentOS 6.0 32位         下载地址:http://mirrors.163.com/centos/6.0/isos/i386/CentOS-6.0-i386-bin-DVD.iso         安装方式:采用最小化安装,在安装系统的时候选择Minimal(CentOS 6.0默认就是Minimal安装模式,不含有任何可选安装包)         最小化安装完成之后,系统占用

CentOS 6 LAMP搭建,编译安装

搭建准备工作: CentOS 6.6 服务器IP:192.168.230.202 软件包位置/tmp/httpd wget http://mirror.bit.edu.cn/apache//httpd/httpd-2.4.25.tar.gz  ##httpd2.4.25 wget https://www.openssl.org/source/openssl-1.0.1u.tar.gz   ##openssl https://mirrors.tuna.tsinghua.edu.cn/apache/

CentOS下PHP 5.6编译安装

最近在尝试yii 2.0,我所使用的系统是centos,通过yum安装的php是5.2,而yii2.0至少需要5.4 在网上找了一些安装方式都失败了,包括修改yum的源来更新的方式也不成功,于是只能通过最原始的方式下载源码来编译安装了. 步骤如下 1. 如果要apache支持php,则首先需要安装apache yum install httpd 之后需要安装 yum install httpd-devel 这样系统上才能安装apxs,后面php要用到 find / -name "apxs&quo

CentOS下Apache+SVN+LDAP的安装与配置

上班接近4个月了,在公司做配置管理工程师,主要是在Linux下对公司的源代码以及项目发布进行管理.4个月接触了好多新知识,也对各种工具的集成使用搞得云里来雾里去的,所以打算自己搭建一套环境,进行测试. 首先是Apache+SVN的安装与配置.本人使用Virtualbox创建了一个虚拟机,所以接下来的环境搭建均在虚拟机CentOS上实现 1.Apache的安装 网上有很多教程都是使用源码安装的方式,但安装起来稍显复杂,容易将像我这样的初学者搞晕,所以我就采用了yum工具(CentOS系统下是yum