linux下安装subversion 1.6.5
linux下svn服务器组建

svn服务器组建1. 系统redhat52. 软件为apr-1.3.8.tar.gzapr-util-1.3.9.tar.gzhttpd-2.2.4.tar.gzsqlite-amalgamation-3.6.17.tar.gzsubversion-1.6.5.tar.bz2subversion-deps-1.6.5.tar.bz2下载地址wget /apr/apr-1.3.8.tar.gzwget /apr/apr-util-1.3.9.tar.gzwget /apache-mirror/httpd/httpd-2.0.63.tar.gzwget /sqlite-amalgamation-3.6.13.tar.gzwget /downloads/subversion-1.6.5.tar.bz2wget /downloads/subversion-deps-1.6.5.tar.bz23.安装1)安装apr-1.3.8.tar.gz 先将文件解压到出来我是在/usr/src中[root@bogon drug22]#tar –zvxf apr-1.3.8.tar.gz -C /usr/src/[root@bogon drug22]# cd /usr/src/apr-1.3.8/[root@bogon apr-1.3.8]# ./configure[root@bogon apr-1.3.8]# make[root@bogon apr-1.3.8]# make install2)安装apr-util-1.3.9.tar.gz[root@bogon drug22]#tar –zvxf apr-util-1.3.9.tar.gz -C /usr/src/[root@bogon drug22]# cd /usr/src/apr-util-1.3.9[root@bogonapr-util-1.3.9]#./configure –-prfefix=/usr/local/apr -–with-apr=/usr/local/apr[root@bogon apr-util-1.3.9]# make[root@bogon apr-util-1.3.9]# make install注:sqlite这里可以不用安装如果下面提示安装在装直接make和make install 即可3)安装httpd-2.2.4.tar.gz[root@bogon drug22]#tar –zvxf ahttpd-2.2.4.tar.gz -C /usr/src/[root@bogon drug22]# cd /usr/src/httpd-2.2.4[root@bogon httpd-2.2.4]# ./configure –prfefix=/usr/local/apache --enable-dav --enable-so--enable-maintaer-mode --enable-ssl --with-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/bin/apu-1-config[root@bogon ahttpd-2.2.4]# make[root@bogon httpd-2.2.4]# make install启动apache服务[root@bogon ~]# ../usr/local/apache/bin/apachectl start打开网页127.0.0.1 确定服务开启4)安装svn包subversion-1.6.5.tar.bz2subversion-deps-1.6.5.tar.bz2 找了很多资料说这两个都要下载且要保证版本一样[root@bogon drug22]#tar –jvxf subversion-1.6.5.tar.bz2 -C /usr/src/[root@bogon drug22]#tar –jvxf subversion-deps-1.6.5.tar.bz2 -C /usr/src/[root@bogon drug22]# cd /usr/src/subversion-1.6.5[root@bogon subversion-1.6.5]# ./configure --with-apxs=/usr/localapache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr (这里就是用subversion-1.6.5包里面的文件替换相应文件中的文件)[root@bogon subversion-1.6.5]# make[root@bogon subversion-1.6.5]# make install查看subversion版本是否为subversion-1.6.5 是表示安装成功[root@bogon ~]# svnserve --version5)修改apache配置文件[root@bogon ~]# vi /usr/local/apache/conf/httpd.conf查看中已经有了svn库文件# LoadModule foo_module modules/mod_foo.soLoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so#修改User daemonGroup daemon为(修改为系统其中的一个用户名)User apacheGroup apache在最后加入<Location /svn>DA V svnSVNParentPath /svn/project(指向路径)AuthType BasicAuthName "SVN Repository" (欢迎界面命名)AuthUserFile /svn/passwd.conf (密码验证路径)AuthzSVNAccessFile /svn/authz.conf(控制文件路径)Require valid-user (验证有效用户才能登入)</Location>然后ESC 建在:wq保存退出(SVNParentPath与SVNPath这两者的区别:前者是多库的状态,后者是单库的状态)现在apache配置文件已好创建svn存储库库名为linux_svn[root@bogon ~]# cd /[root@bogon /]# mkdir linux_svn[root@bogon /]# cd /lilib/ linux_svn/[root@bogon /]# cd /lilib/ linux_svn/[root@bogon /]# cd /linux_svn/[root@bogon linux_svn]# mkdir test[root@bogon linux_svn]# ../usr/local/bin/svnadmin create /linux_svn/test/rrr [root@bogon linux_svn]#库创建成功配置apache控制文件和密码文件[root@bogon /]# cd /linux_svn/[root@bogon linux_svn]# htpasswd -c passwd.conf test1(test1为用户名,下面输入两次密码)控制文件[root@bogon linux_svn]# touch auth.conf[root@bogon linux_svn]# vi auth.conf键入[groups]Admin=test1Develop=(用户名见用,隔开)[/]@admin=rw@develop=rw[rrr:/]test1=rw[/]这是对于库rrr的控制认证[/]*=r6)修改/linux_svn/test文件的权限(在下一次建库时要重新修改权限)[root@bogon /]# chown -R apache:apche /linux_svn/test/root@bogon /]# chmod -R 700 /linux_svn/test/7)设置apache 和svn服务开机自动启动[root@bogon /]# vi /etc/rc.local键入/usr/local/bin/svnserve -d -r /svn/project/usr/local/apache/bin/apachectl start8)客户端连接时http://ip地址/svn/版本库名称(rrr)输入库相应的用户密码即可。
linux 下搭建Subversion

linux 下搭建Subversion (SVN)收藏人:皮爸2014-12-17 | 阅:1 转:2 | 来源 | 分享本次操作主要通过虚拟机VMWARE安装linux进行搭建前提准备:用VMWARE搭建的SVN 为了让别的用户可以访问,首先需要进行端口映射(svn常用端口为“edit-->Virtual Network Editor"进入一下面板点击 "NAT Setting..." 按钮,进入点击"Add",进行端口映射,这里映射成svn常用端口,当然你也可以映射成别的,不过在后面号即可映射成功接下来正式在linux环境搭建subversion,当然此处的linux环境是通过虚拟机创建的,一般情况系统都自带有:[root@TKE2 logs]# rpm -qa|grep subversionsubversion-1.4.2-4.el5_3.1subversion-1.4.2-4.el5_3.1可以先升级到最新版本(升级与否自己决定)[root@TKE2 logs]# yum update subversion升级成功后[root@TKE1 logs]# rpm -qa|grep subversionsubversion-1.6.11-11.el5_9subversion-1.6.11-11.el5_9测试是否安装成功[root@TKE1 conf]# svn --versionsvn, version 1.6.11 (r934486)compiled Apr 11 2013, 14:29:11Copyright (C) 2000-2009 CollabNet.Subversion is open source software, see /This product includes software developed by CollabNet (/).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. - with Cyrus SASL authentication- handles 'svn' scheme* ra_local : Module for accessing a repository on local disk.- handles 'file' scheme接下来就是配置 SVN 了首先简历版本库[root@TKE1 logs]# mkdir -p /opt/svn[root@TKE1 logs]# cd /opt/svn/[root@TKE1 svn]# pwd/opt/svn/## 建立 svn 版本库[root@TKE1 svn]# svnadmin create svns## 更改权限为svn[root@TKE1 svn]# chmod -R svn:sv svns[root@TKE1 svn]# lltotal 8drwxr-xr-x 6 svn svn 4096 Jul 3 20:00 svns## 进行相关配置,配置文件主要在版本库下的conf 文件夹下[root@TKE1 svn]# cd svns/[root@TKE1 svns]# lltotal 48drwxr-xr-x 2 svn svn 4096 Jul 4 09:46 confdrwxr-sr-x 6 svn svn 4096 Jul 4 09:49 db-r--r--r-- 1 svn svn 2 Jul 3 20:00 formatdrwxr-xr-x 2 svn svn 4096 Jul 3 20:00 hooksdrwxr-xr-x 2 svn svn 4096 Jul 3 20:00 locks-rw-r--r-- 1 svn svn 229 Jul 3 20:00 README.txt[root@TKE1 svns]# cd conf/[root@TKE1 conf]# lltotal 24-rw-r--r-- 1 svn svn 1139 Jul 4 09:45 authz-rw-r--r-- 1 svn svn 367 Jul 4 09:46 passwd-rw-r--r-- 1 svn svn 2255 Jul 3 20:00 svnserve.conf## 配置信息列举/**##配置用户权限* vi authz[group][/]harry = rwadmin = rw##配置用户和密码* vi passwd[users]harry = harryadmin = admin1203##配置svn server信息* vi svnserve.confanon-access = read ## 使非授权用户无法访问auth-access = write ## 使授权用户有写权限password-db = passwd ##指明密码文件路径,同级目录下的passwd 就是上面修改的authz-db = authz ##同上realm = svns ## 认证命名空间,subversion会在认证提示里显示,并且作为*/## 其它采用默认配置. 各语句都必须顶格写, 左侧不能留空格, 否则会出错启动svnsvnserve -d --listen-port 3690 -r /opt/svn/svns简介:此指令用于启动svn服务,-d指明以守护模式运行,svn自动在3690端口监听。
在Linux上安装配置Subversion服务器

在Linux上安装Subversion服务器1,我下载的版本是subversion-1.6.12.tar.gz和subversion-deps-1.6.12.tar.gz。
2,安装好Linux系统以后,配置ip地址,安装SSH。
aptitude->net3,使用SSH协议,将压缩包发送到Linux系统,4,解压压缩包。
tar xvzf 压缩包5,安装g++,aptitude->devel->main6,进入解压后的文件夹,有一个configure文件,输入./configure –prefix=/usr/local/subversion7,cofigure成功后,安装make。
devel->make8,在解压缩后的文件夹中,依次输入make;make install。
9,svnserve –version如果显示svnserve版本情况,则安装成功到此,subversion服务器的安装就告一段落。
接下来是配置。
Subversion 服务器配置1,创建svn目录:mkdir –p /svn/repos12,创建资源库,svnadmin create /svn/RD(研发部)3,在资源库的conf文件中,编辑svnserve.conf,passwd和authz,进行用户和权限管理。
如:输入vi /svn/RD/conf/svnserve.conf修改svnserve.conf中的下面几项参数为,并消去前面的#符:[general]anon-access = nonepassword-db = passwdauthz-db = authzrealm = RD在passwd中添加用户名和密码如下:zhaow=zhaowtest=test在authz中设置用户和组权限。
在[groups]下,添加一个组[groups]# harry_and_sally = harry,sallydev_group = zhaowtest_group = test# [/foo/bar]# harry = rw# * =# [repository:/baz/fuz]# @harry_and_sally = rw# * = r[/RD]@dev_group = rw@test_group = r* =启动svn服务器. svnserve –d –r /svn/设置开机启动svn1,创建执行脚本svn.sh(/root路径下),其内容很简单,如下:#!/bin/bashsvnserve -d --listen-port 8080 -r /home/svnroot/repository2,添加可执行权限命令行运行:#chmod ug+x /root/svn.sh3,添加自动运行打开(vi或gedit)/etc/init.d/rc.local ,在最后添加一行内容如下:/root/svn.sh保存退出。
linux下安装subversion(svn)客户端

linux下安装subversion(svn)客户端linux 下安装 subversion(svn) 客户端网上找了下都是讲如何安装svn server的,我只需要一个支持http协议的客户端哈,不想装apache。
安装所需软件apr,apr-util,sqlite,neon,subversion1.下载软件1. wget /apache-mirror/apr/apr-1.3.7.tar.gz2. wget /apache-mirror/apr/apr-util-1.3.8.tar.gz3. wget /sqlite-amalgamation-3.6.16.tar.gz4. wget /neon/neon-0.28.4.tar.gz5. wget /downloads/subversion-1.6.3.tar.bz26. apt-get install libxml2 libxml2-dev expat7. sudo apt-get install zlib1g-dev8. apt-get install expat libexpat1 libexpat1-dev2.安装apr1. tar zxvf apr-1.3.7.tar.gz2. cd apr-1.3.73. ./configure -prefix=/usr/local/apr4. make5. make install6. cat /etc/ld.so.conf7. echo /usr/local/apr/lib >> /etc/ld.so.conf3.安装apr-util1. tar zxvf apr-util-1.3.8.tar.gz2. cd apr-util-.1.3.83. ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/4. make5. make install6. echo /usr/local/apr-util/lib >> /etc/ld.so.conf7. ldconfig -v4.安装sqlite1. tar zxvf sqlite-amalgamation-3.6.16.tar.gz2. cd sqlite-3.6.16/3. configure --prefix=/usr/local/sqlite4. make5. make install5.安装neon不需要支持http协议可以略掉安装1. tar zxvf neon-0.28.4.tar.gz2. cd neon-0.28.43. ./configure --prefix=/usr/local/neon --enable-shared4. make5. make install方式二:解压后重命名为neon,移动至subversion编译目录但subversion编译时好像找不到neon报错如下1. configure: checking neon library2.3. An appropriate version of neon could not be found, so libsvn_ra_neon4. will not be built. If you want to build libsvn_ra_neon, please either5. install neon 0.28.4 on this system6.7. or8.9. get neon 0.28.4 from:10. /neon/neon-0.28.4.tar.gz11. unpack the archive using tar/gunzip and rename the resulting12. directory from ./neon-0.28.4/ to ./neon/13.14. no suitable neon found6.安装subversion1. tar -jxvf subversion-1.6.3.tar.bz22. cd subversion-1.6.33. ./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-sqlite=/usr/local/sqlite --with-neon=/usr/local/neon4. make5. make install7.检查测试安装后应该有三个模块1. /usr/local/svn/bin/svn --version2. svn,版本 1.6.3 (r38063)3. 编译于 Jul 30 2009,14:31:414.5. 版权所有 (C) 2000-2009 CollabNet。
subversion 操作指南

subversion 操作指南下载温馨提示:该文档是我店铺精心编制而成,希望大家下载以后,能够帮助大家解决实际的问题。
文档下载后可定制随意修改,请根据实际需要进行相应的调整和使用,谢谢!并且,本店铺为大家提供各种各样类型的实用资料,如教育随笔、日记赏析、句子摘抄、古诗大全、经典美文、话题作文、工作总结、词语解析、文案摘录、其他资料等等,如想了解不同资料格式和写法,敬请关注!Download tips: This document is carefully compiled by theeditor.I hope that after you download them,they can help yousolve practical problems. The document can be customized andmodified after downloading,please adjust and use it according toactual needs, thank you!In addition, our shop provides you with various types ofpractical materials,such as educational essays, diaryappreciation,sentence excerpts,ancient poems,classic articles,topic composition,work summary,word parsing,copy excerpts,other materials and so on,want to know different data formats andwriting methods,please pay attention!Subversion(SVN)操作指南一、简介Subversion(简称SVN)是一种版本控制系统,用于管理对文件和目录的更改。
CollabNet SubversionSubversion安装配置

Linux(CentOS)下安装CollabNetSubversion1.服务器版本和安装软件1.1服务器版本:RedHatCentOS 5.5 32 bit1.2安装软件:CollabNetSubversion-client-1.6.12-1.i386.rpmCollabNetSubversion-server-1.6.12-1.i386.rpmCollabNetSubversion-extras-1.6.12-1.i386.rpm2.安装执行rpm –qa | grep subversion 搜索出自带的SVN“subversion-1.4.2-4.el5_3.1”执行rpm –e subversion-1.4.2-4.el5_3.1 将其卸载进入安装程序所在目录执行:rpm –ivh CollabNetSubversion-client-1.6.12-1.i386.rpmrpm –ivh CollabNetSubversion-server-1.6.12-1.i386.rpmrpm –ivh CollabNetSubversion-extras-1.6.12-1.i386.rpm 注意:安装时一定要按照上述的顺序来安装。
3.配置SVN安装完成后会在系统的三个位置有相应组件./var/opt/CollabNet_Subversion //存放SVN的日志文件./opt/CollabNet_Subversion //存放SVN的可执行程序./etc/opt/CollabNet_Subversion //存放SVN的配置文件# cd /opt/CollabNet_Subversion/bin# ./Configure-CollabNet-Subversion // 进入SVN配置向导CollabNet Subversion Server is a free download of open-source Subversion,compiled and tested by CollabNet. For more information about CollabNetSubversion, visit the CollabNet community at .Would you like to configure the CollabNet Subversion Server now? [yes] (按回车开始配置,回车表示接受默认的选项)Welcome to CollabNet Subversion Server setup.You will now be asked some questions to configure CollabNet Subversion.Defaults are given in square brackets. If a default is okay for youJust hit [Enter] to continue.This setup can configure either Apache or svnserve as Subversionserver, for you. Would you like to configure Apache as yourSubversion server now? [yes] (是否配置apache server for SVN)Continuing with apache Subversion server configuration ...Specify the base directory for Subversion repositories: [/var/svn/repositories]Non-existing base path, Let me create and continue [yes] (配置仓库基路径)Base path created.Would you like to create a new Subversion repository? [yes] (配置第一个svn仓库)What should be your new Subversion repository name? repository1(输入第一个仓库名称,这里为repository1 )New repository created.Would you like to initialize the repository with trunk/branches/tags folders? [no] yes (是否初始化trunk/branches/tags 目录)Done.Would you like to create another Subversion repository? [yes] (配置另一个svn仓库)What should be your new Subversion repository name? repository2 (输入第二个仓库名称,这里为repository2 )New repository created.Would you like to initialize the repository with trunk/branches/tags folders? [yes] (是否初始化trunk/branches/tags 目录)Done.Would you like to create another Subversion repository? [yes] no (上面已经创建了2个仓库,不再创建新的仓库了)Would you like to give the name and port that the server uses to identify itself? [yes] (配置apache 服务域名端口等)Registered DNS name or IP address: 192.168.226.128 (配置IP地址或域名)Server port number: 8080 (配置apache端口,默认端口为80,如果被占用,请使用其他端口)Allow anonymous read access? [no] (是否匿名访问,这里设置不允许匿名访问)0 users currently have access to this repository:Would you like to create a new Subversion account? [yes](是否设置svn用户)Account username(To re-create or delete a Subversion account, enter an existing username): blueart (svn 用户名称)Account password: (输入密码)Retype account password: (再次输入密码)Adding password for user blueartAccount createdWould you like to create another user account? [yes] no (是否创建另一个账户)Would you like to configure ViewVC? [yes] (是否配置viewVC)Stopping CollabNet Subversion: httpd (no pid file) not running[确定]Starting CollabNet Subversion: [确定]Congratulations! You have successfully configured the CollabNetSubversion server.You can access your repositories at the following URL:http://192.168.226.128:8000/svn/YOUR-REPOS-NAMEhttp://192.168.226.128:8000/viewvc/YOUR-REPOS-NAME 至此,SVN安装配置完成。
在Linux下安装与配置subversion独立服务器

r pI e ”
# c h me s n r o /ss n r p1 d/ o / v o tttv /e
_
#l l s—
我 们 可 以进 入 /o / n ro t snrp h me v _ots v / 1目录 , 看 rp s /t e 看 e l目录 下 是 面 具 有 很 大 的 优 势 。 高 效 的 分 支 和 标 签 操 作 以 及 可 修 改 特 性 ,使 得 不 是 有 cn、b h oslc s 件 夹 和 fr tRE D . t 件 ,如 果 o /d 、ok 、ok 文 oma、 A MEt 文 x sb es n作 为 软 件 配 置 管 理 的 版 本 控 制 系统 的 工 具 很 快 受 到 软件 开 有 说 明 sb es n独 立 服 务 器 安 装 成 功 , u vri o u vri o 而且 版 本 库 也 已 建 立 。 我 们 发 公 司公 司 的 欢 迎 !也 因此 , 多 人 把 sb es n版 本 控 制 系 统 当 作 在 /o / v ott sr 目录 下 可 以 建 立 多 个 版 本 库 rp … … 许 u vri o h me sn ro /tvd s e2
_
1 安 装
11 安 装 前 的准 备 和所 需 要 的环 境 .
OS 服 务 器 L n x : iu 客 户 端 w n o sx id w p下
r p1 e 一m
安 装 软件 : b es n安 装 包 s v ri u o
To t ie VN ro s s
这 条语 句 将 把 路 径 /o /s r m ot 找 到 的 文 件 导 入 到 你 创 建 h me e/ p r 下 u i 的 S b es n版 本 库 中 去 , 交 后 的 修 订 版 为 1 当 然 导人 操 作完 全 可 u vri o 提 。 以在 另 一 台 安 装有 T r i S ot s VN 的客 户 端 上 来 进 行 。 oe 为 了 Ln x的其 他 用 户 不 能 对 版 本 库 目录 进 行 操 作 , 们 就 要 设 iU 我
从零开始在Linux系统(Fedora_12)下安装Apache+Subversion_V1.0

xxx从零开始在Linux系统(Fedora 12)下安装Apache+Subversion目录1 准备工作 (2)1.1软件下载 (2)1.1.1Apache下载 (2)1.1.2Subversion下载 (3)1.2软件解压 (3)1.2.1解压Apache源码包 (4)1.2.2解压Subversion源码包 (4)1.3软件编译、安装 (5)1.3.1编译、安装Apache源码包 (5)1.3.2编译、安装Subversion源码包 (7)1.4安装SVN所需module—mod_dav_svn (9)1.5(可选)让Apache能加载新安装的module—mod_dav_svn模块 (10)2 配置版本库 (11)2.1建立版本库目录 (11)2.2建立svn版本库(与上面目录对应) (12)2.3版本库所有者和权限修改 (12)3 配置用户 (13)3.1创建用户密码文件 (13)3.2创建用户 (13)3.3删除用户 (13)3.4修改密码 (13)4 配置版本库的访问权限 (14)4.1创建授权文件authz (15)4.2创建用户群组 (15)4.3创建访问规则 (15)5 修改subversion.conf配置文件,让Apache知道如何处理 Subversion客户端 (16)6 配置过程可能用到的其它命令 (17)6.1Linux系统下查询机器的IP (17)6.2看apache报错的日志文件 (17)6.3重新启动SVN (17)首先说明一下SVN版本管理系统不一定要Apache才能运行,但是可以使用apache,视具体情况来选择。
(1)如果只要通过file://或svn://来访问,则不需要apache,只安装svn即可,使用svnserve来作为服务。
(2)如果你要建立一个可以通过http://或https://来访问的版本库服务器,则你需要使用apache。
http与https的差异在于https采用了SSL加密技术。
linux下搭建svn服务器

自己摸索了几天,今天终于小有成就!从零基础逐渐壮大,收获还是颇丰的!系统环境:虚拟机中Red Hat Enterprise Linux 4客户端windows: TortoiseSVN-1.6.5.16974-win32-svn-1.6.5.msi需要的软件包:subversion-1.6.5.tar.bz2apr-1.3.8.tar.gz apr-util-1.3.9.tar.gzsqlite-amalgamation-3.6.13.tar.gzhttpd-2.2.4(不需要支持http访问的可以不安装)文章将阐述全过程,不需要支持http的可以不配置appche接下来的安装都是在root身份下安装apache#tar -zxvf httpd-2.2.4.tar.gz#cd httpd-2.2.4.tar.gz#./configure --prefix=/usr/local/apache 此处将会在后面的make时创建--enable-dav --enable-so --enable-modules=most注:--enbalce-dav 选项一定要加上启动apache#/usr/local/apache/bin/apachectl start打开浏览器http://192.168.58.xxx 如果有显示"It works!"则证明已经安装成功注:其中IP为安装apache机器的IP 也就是svn服务器的IP#make#make install安装apr apr-util#tar -zxvf apr-1.3.8.tar.gz注:解压时也可在此指定解压路径当然了安装时要进入其中#cd apr-1.3.8#./configure --prefix=/usr/local/apr 此路径为最终安装路径留个印象后面能用到#make#make install#tar -zxvf apr-util-1.3.9.tar.gz#cd apr-util-1.3.9.tar.gz#./configure=/usr/local/apr-util --with-apr=/usr/local/apr 提供apr支持 =后面为apr安装路径#make#make install安装 sqlite#tar -zxvf sqlite-amalgamation-3.6.13.tar.gz#cd sqlite-3.6.13#./configure --prefix=/usr/local/sqlite#make#make install安装svn#tar -zxvf subversion-1.6.5.tar.bz2#cd subversion-1.6.5#./configure --prefix=/usr/local/svn--with-paxs=/usr/local/apache/bin/apxs--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util--with-sqlite=/usr/local/sqlite--with-zlib=/usr/local/zlib 此处地址不定看看你zlib的安装路径在哪把它写在这没有的话自己装一个路径写这--with-ssl--enable-maintainer-mode#make#make install注:--with-zlib=/...后面不写路径会报错svn服务器安装结束安装svn客户端windows 下安装TortoiseSVN-1.6.5.16974-win32-svn-1.6.5.msi 常用软件安装方法SVN配置建立版本库#mkdir -p /opt/svn#/usr/bin svnadmin create /opt/svn/repository#ls -l /opt/svn/repository有内容显示说明版本库建立成功#vi /opt/svn/repository/conf/svnserve.conf修改如下内容:并把每行的#去掉[general]anon-access = noneauth-access = writepassword-db = /opt/svn/repository/conf/passwd 此为系统自动生成文件,但要修改过之后才能生效authz-db = /opt/svn/authz.conf 此文件还没有创建但系统已经为此自动生成了一个文件,路径同上我用我自己创建的realm = repository创建svn用户此用户也就是客户端的登陆用户#htpasswd -c /opt/svn/htpasswd admin之后体统会提示输入密码、校验密码注:第一次创建svn用户时要加 -c 意思是:如果htpasswd存在将覆盖写入往后再创建svn用户时也是执行此命令不过不用加 -cadmin 为用户名标识登陆用户例:新增加用户user#htpasswd /opt/svn/htpasswd user用户配置文件#vi /opt/svn/repository/conf/passwd在最下面添加两行代码格式为:用户名 = 密码admin = admin 前不要加# 、留空格user = user权限配置文件#vi /opt/svn/authz.conf写入如下代码[groups]admin = admin,user[/]@admin = rw 代表admin的所有组员有读写权限注:admin组里面有admin和user组员其中有一个以上的组员时要用逗号隔开这一部分自己可以找资料看看设计内容很多,我只建了一个版本库,还有多个版本库的设置,版本库下的具体目录权限设置启动svn服务#svnserver -d --listen-port 9999 -r /opt/svn/repository注:启动时也是有名堂的可以找资料看看-d 后台运行9999是要监听的端口-r 后面的是版本库路径#ps -ef | grep svnserve 查看svn有没有启动成功成功显示root 5088 1 0 Jul05 ? 00:00:00 svnserve -d --listen-port 9999 -r /opt/svn/repository客户端登陆右键单击某个文件夹点击check out输入URL:svn://192.168.58.XXX:9999/opt/svn/repository其中IP为启动svn服务的机器的IP不用支持http的下面范围内可以不用理会/***********************************/配置apache#vi /usr/local/apache/conf/httpd.conf做如下修改:listen 80 如果是以root用户启动apache此处不用修改其他用户启动的要修改大于1024的否则报错# Example:# LoadModule foo_module modules/mod_foo.soLoadModule dav_module modules/mod_dav.soLoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so注:此段代码我的没有我自己添加的因为后面启动apache时报:Invalid command 'DAV', perhaps mis-spelled or defined by a module not included in the server configuration 别光添加代码还要确保此文件上级目录下的 modules 里面有相应的模块没有的话另外下载其他的 httpd-xxx-xxx 解压安装把其中的相应模块拷贝过来User svnGroup svnServerName 192.168.58.xxx IP设置svn服务器的IP把DocumentRoot "/usr/local/apache/htdocs"改为DocumentRoot "/opt/svn/repository"把<Directory "/usr/local/apache/htdocs">改为<Directory "/opt/svn/repository">另外在最下面添加:<Location /opt/svn>DAV svn 如果没有Loadmodules xxx_dav xxx.so 此处会报错SVNParentPath /opt/svn svn设置AuthType Basic 连接类型设置AuthName "Subversion Authorization" 连接框提示AuthzSVNAccessFile /opt/svn/authz.conf 权限配置文件此文件中有 [group] AuthUserFile /opt/svn/htpasswd 此文件中存的是用 htpasswd 创建的Require valid-user 采用何种认证</Location>重启apache 验证配置/usr/local/apache/bin/apachectl restart 如果没有启动用start打开浏览器访问http://192.168.58.xxx/opt/svn/repository --》弹出登陆框如果不弹出登陆框则配置失败/***********************************/最后:我安装过程中错误千奇百怪的,一点一点上网搜资料,慢慢的就完善了!也预祝你们顺利!。
Subversion1.6安装配置

导入项目到版本库
svn import D:\dev file:///d:/svn_repository/dev/ -m "initial import”
显示储存库内容
svn list file:///d:/svn_repository/dev/
启动Subversion服务器
svnserve –d –r d:/svn_repository/
启动apache
cd D:\Program Files\CollabNet Subversion Server\httpd\bin
httpd.exe
访问版本库http://localhost/svn/dev/
1.1.2. 客户端安装
双击CollabNetSubversion-client-1.6.0-5.win32.exe文件进行安装。
1.2. 建立和导入版本库
建立库文件夹 具体路径 d:\svn_repository
建立版本库dev
svnadmin create d:\svn_repository\dev
4. 在结果安装窗口中,把"Subeclipse in the Features"选择到安装列表中,并且通过向导来开始安装插件。
5. 完成这些之后,重新启动Eclipse。
1.5.2. 建立Repository定义
打开视图SVN Repository("Windows>Show View>Other>SVN Repository")并且在上下文菜单中选择"New>Repository Location",弹出”Add SVN Repository”,输入正确的URL:http:// IP:Port/svn/dev。
Linux下安装SVN服务端的方法步骤

Linux下安装SVN服务端的⽅法步骤⼀、yum 安装yum install subversion⼆、配置1、创建仓库我们在/home下建⽴⼀个名为svn的仓库(repository),以后所有代码都放在这个下⾯,创建成功后在svn下⾯多了⼏个⽂件夹。
[root@localhost /]# cd /home[root@localhost home]# mkdir svn[root@localhost home]# svnadmin create /home/svn[root@localhost home]# ls svnconf db format hooks locks README.txtconf⽂件夹,是存放配置⽂件的[root@localhost home]# cd svn/conf[root@localhost conf]# lsauthz passwd svnserve.confauthz 是权限控制⽂件passwd 是帐号密码⽂件svnserve.conf 是SVN服务配置⽂件2、配置passwd ⽂件[root@localhost conf]# vim passwd### This file is an example password file for svnserve.### Its format is similar to that of svnserve.conf. As shown in the### example below it contains one section labelled [users].### The name and password for each user follow, one account per line.[users]# harry = harryssecret# sally = sallyssecretuser1=123456user2=1234563、配置authz[root@localhost conf]# vim authz### This file is an example authorization file for svnserve.### Its format is identical to that of mod_authz_svn authorization### files.### As shown below each section defines authorizations for the path and### (optional) repository specified by the section name.### The authorizations follow. An authorization line can refer to:### - a single user,### - a group of users defined in a special [groups] section,### - an alias defined in a special [aliases] section,### - all authenticated users, using the '$authenticated' token,### - only anonymous users, using the '$anonymous' token,### - anyone, using the '*' wildcard.###### A match can be inverted by prefixing the rule with '~'. Rules can### grant read ('r') access, read-write ('rw') access, or no access### ('').[aliases]# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joe# [/foo/bar]# harry = rw# &joe = r# * =# [repository:/baz/fuz]# @harry_and_sally = rw# * = r[/]user1=rwuser2=r*=~4、配置svnserve.conf[root@localhost conf]# vim svnserve.conf### This file controls the configuration of the svnserve daemon, if you### use it to allow access to this repository. (If you only allow### access through http: and/or file: URLs, then this file is### irrelevant.)### Visit / for more information.[general]### The anon-access and auth-access options control access to the### repository for unauthenticated (a.k.a. anonymous) users and### authenticated users, respectively.### Valid values are "write", "read", and "none".### Setting the value to "none" prohibits both reading and writing;### "read" allows read-only access, and "write" allows complete### read/write access to the repository.### The sample settings below are the defaults and specify that anonymous ### users have read-only access to the repository, while authenticated### users have read and write access to the repository.anon-access = readauth-access = write### The password-db option controls the location of the password### database file. Unless you specify a path starting with a /,### the file's location is relative to the directory containing### this configuration file.### If SASL is enabled (see below), this file will NOT be used.### Uncomment the line below to use the default password file. password-db = passwd### The authz-db option controls the location of the authorization### rules for path-based access control. Unless you specify a path### starting with a /, the file's location is relative to the the### directory containing this file. If you don't specify an### authz-db, no path-based access control is done.### Uncomment the line below to use the default authorization file.authz-db = authz### This option specifies the authentication realm of the repository.### If two repositories have the same authentication realm, they should### have the same password database, and vice versa. The default realm ### is repository's uuid.# realm = My First Repositoryrealm = /home/svn### The force-username-case option causes svnserve to case-normalize### usernames before comparing them against the authorization rules in the ### authz-db file configured above. Valid values are "upper" (to upper-### case the usernames), "lower" (to lowercase the usernames), and### "none" (to compare usernames as-is without case conversion, which### is the default behavior).# force-username-case = none[sasl]### This option specifies whether you want to use the Cyrus SASL### library for authentication. Default is false.### This section will be ignored if svnserve is not built with Cyrus最后⼀⾏的realm记得改成你的svn⽬录打开注释时切记前⾯不要留有空格三、启动与停⽌[root@localhost conf]# svnserve -d -r /home/svn(启动)[root@localhost conf]#kill all svnserve(停⽌)以上就是本⽂的全部内容,希望对⼤家的学习有所帮助,也希望⼤家多多⽀持。
在windows下安装collabnet subversion server 1.6.5

在windows下安装collabnet subversion server 1.6.5在网上搜索了下,参考了前辈们的文章,我自己试着在Windows下装了Subversion 1.6.5,记录如下:1.Subversion1.6.5版本的安装包自带了Apache2.2.13,所以无需额外安装Apache服务器2.一路默认安装,如果需要修改仓库根目录或者Apache2.2.13端口可以自行修改为自己想要的,Apache默认端口为80,Subversion默认仓库存储路径为C:\svn_repository。
安装的过程中会自动将Subversion和Apache注册成服务,安装完成后重启一下电脑,运行services.msc查看服务,可以看到“CollabNet Subversion Apache”和“CollabNet Subversion svnserve”两个服务已经自动启动,如果不想让他们自动启动,可以修改为手动启动。
注:安装结束时没有提示重启电脑,但重启之前Apache服务无法启动,提示“The requested operation has failed!”。
3.重启电脑后运行C:\Program Files\CollabNet\Subversion Server\httpd\bin的“ApacheMonitor.exe”打开Apache控制台,可以看到控制台的状态栏有如下内容:Apache/2.2.13 (Win32) DA V/2 SVN/1.6.54.运行命令提示符cmdcd C:\Program Files\CollabNet\Subversion Serversvnadmin create c:\rep//用svnadmin命令创建名为rep的仓库(这条命令成功后,在rep下会出现很多文件夹和文件) cd C:\Program Files\CollabNet\Subversion Server\httpd\binhtpasswd -cm c:\rep\user.txt admin//用htpasswd命令创建用户(admin),同时生成密码认证文件,c参数为create,m参数为MD5加密方式New password: ******Re-type new password: ******Adding password for user admin //加入用户成功htpasswd -m c:\rep\user.txt test//用htpasswd命令创建用户(test),注意如果在这时加入c参数会覆盖掉之前创建的用户及文件。
SVN (Subversion) 的安装配置与应用

2、SVN:可以简单理解为一个版本控制器,主要实现多人协作开发文件共享和版本 控制的一个过程。
3、SVN的特点
1)根据文件修改的次数自动增加版本号以便找回历史文件
2)防止多人开发时同时修改一类文件导致文件覆盖或被删除
PATH=$PATH:/opt/subversion/bin
export PATH
在文件最后加入
9. 测试SVN是否安装成功,执行: svnserve –version
如果显示版本信息, 则安装成功。
如果出现: -bash: svnserve: command not found 可能需要重启下服务器:reboot
此为svn内部指令,create用于新建版本库。请使用svn help查看详细说明。
3. 修改版本库配置文件
首先 cd /opt/svndata/repos/conf/ 进入到这个目录下看看里面有什么文件 ls
authz passwd svnserve.conf
有了这三个文件就可以进行配置了,如果没有则需要手工建立
指令简介:此指令用于启动svn服务,-d指明以守护模式运行,svn自动在3690端口监听。3690是默认端口,
可以使用“–listen-port=”或者“–listen-host=”来指定其它端口。-r选项用来指定svn服务的根目录,
这样用户就可以使用相对路径访问,而不用提供完整路径。
6.linux 端svn服务器到这里已经好了,windows端安装个svn客户端就可以访问了
4.每个文件配置如下:
svnserve.conf:
linux下apache SVN搭建完美版

linux下apache+SVN搭建完美版一、先介绍一下Subversion和apache,apr,apr-util的关系很多朋友初次接触Subversion时不是很理解subversion和apache的关系。
我在这里简单说明一下svn服务器和客户端的安装说明。
1.1服务器subversion服务器是不需要apache的,但是可以使用apache,视具体情况来选择。
1、如果只要通过file://或svn://来访问,则不需要apache,只安装svn即可,使用svnserve来作为服务。
2、如果你要建立一个可以通过http://或https://来访问的版本库服务器,则你需要使用apache。
1.2客户端在windows下,不管你要访问的是什么类型的服务器,只要安装一个TortoiseSVN就可以了,开发者已经帮你搞定一切。
在类Linux系统下,如果你通过file://或svn://来访问,则只要编译安装svn就可以,如果通过http://访问,则要同neon编译,如果通过https://访问,则要同带ssl支持的neon 编译,不论怎样,都要同apr和apr-util编译。
neon、apr、apr-util也很容易获得,目前发布的subversion代码都会有一个叫做subversion-deps-xxx的文件,比如1.4.3的就是subversion-deps-1.4.3.tar.bz2对于访问国外网站比较慢的朋友,下载Subversion 和客户端,可以到 ,因带宽和流量有限,网站只对注册用户开放下载,这点有点麻烦,但是很值得,一是下载速度的确相当快,二是里面有很多热于与大家交流的Subversion爱好者二、架设2.1 首先准备好相关的安装包,我这里使用的是下列的几个包Apr : apr-1.2.11.tar.gz 和apr-util-1.5.2.tar.gzApache : httpd-2.2.25.tar.gzSubversion: subversion-1.6.5和subversion-deps-1.6.5.tar.gz Zlib: zlib-1.2.8.tar.gz Sqlite: sqlite-autoconf-3080002.tar.gz注意:在安装过程中可能会提示需要安装其他的包,根据具体的情况来安装所需要的包,如果安装过程很顺利则说明你运气好!2.2、安装和配置步骤:1、安装apr-1.2.11 # tar –zvxf apr-1.2.11.tar.gz# cd apr-1.2.11# ./configure /* 安装不指定路径时默认安装到/usr/local/apr# make ; make install2、安装apr-util-1.2.11# tar –zvxf apr-util-1.2.11.tar.gz# cd apr-util-1.2.11# ./configure - -with-apr=/usr/local/apr# make ; make install安装Sqlite #tar -zxvfsqlite-autoconf-3080002.tar.gz # ./configure--prefix=/usr/local/sqlite # cd sqlite # make & make install 3、安装httpd-2.2.25.tar.gz# tar –zvxf httpd-2.2.25.tar.gz# cd httpd-2.2.25# ./configure --prefix=/usr/local/apache--with-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/apr/bin/apu-1-config --enable-dav --enable-maintainer-mod --enable-rewrite --enable-so--with-sqlite=/usr/local/sqlite# make ; make install安装好后启动apache# /usr/local/apache/bin/apachectl –k start用浏览器查看http://localhost/,得到it works,说明apache已经配置成功了。
subsversion安装

subsversion 1.6.6安装作者:赵亚栋2010 年 01 月目录一、安装环境说明: (4)二、安装前准备 (4)2.1 检查必要的ldap环境: (4)2.2 检查是否存在老的svn版本: (5)2.3 下载subsversion: (5)2.4 下载apache web服务: (5)2.5 下载JA V A运行库: (6)2.6 下载openDS服务: (6)三、配置文件说明 (6)3.1 apache web服务配置 (6)3.2 Subsversion配置文件 (7)四、安装相关软件 (7)4.1 java环境安装 (7)4.2 安装openDS (8)4.3 安装apache (8)4.4 安装subsversion (9)五、apache+ldap管理用户 (10)5.1 http.conf配置 (10)5.2 SvnAccess配置文件 (13)六、使用apache管理用户 (14)七、使用svn管理用户 (14)7.1 用户管理 (14)7.2 编写启动脚本 (15)八、可能遇到的问题 (16)注意1、以下安装及配置均在redhat as 5 下测试通过,非redhat或redhat版本不一致可能有所不同(主要是安装目录,配置文件存放地址不同),但基本设置及操作应该相同。
先理解几个配置文件中设置的意义及这些软件是如何协作的再参考文档进行配置,配置时要细心,一个空格也可能造成很大的问题!!!2、强烈建议在对配置文件操作前先做好配置文件的备份。
3、强烈建议在安装完成后,不要急着修改配置文件,先运行apache服务看看是否能够正常启动。
这样方便日后配置文件出错时的问题查找。
4、修改任何配置后,尽量重新启动服务后在测试。
5、如安装linux时已经安装http服务器跳过,请先将其停止。
一、安装环境说明:操作系统:RedHat As 5.3 32位web服务:apache 2.2.14svn版本:subversion1.6.6ldap服务:sun openDS2.0我比较喜欢使用最新的版本(至少当时应该算是比较新的版本),所以操作系统,web 服务,svn、ldap全部从官方下载最新的版本。
Linux下安装SVN客户端

Linux下安装SVN客户端分类:Linux 2014-07-03 13:37 147人阅读评论(0) 收藏举报linuxsvn1、下载[maintain@HM16-213software]$ wget /downloads/subversion-deps-1.6.12.tar.bz2[maintain@HM16-213 software]$ wget /downloads/subversion-1.6.12.tar.bz22、解压[maintain@HM16-213 software]$ tar jxvf subversion-deps-1.6.12.tar.bz2[maintain@HM16-213 software]$ tar jxvf subversion-1.6.12.tar.bz23、准备安装[root@HM16-213 software]# mkdir /usr/local/subversion[root@HM16-213 software]# cd subversion-1.6.124、安装[root@HM16-213 subversion-1.6.12]# ./configure --prefix=/usr/local/subversion[root@HM16-213 subversion-1.6.12]# make && make install5、测试完成[root@HM16-213 subversion-1.6.12]# cd /usr/local/subversion/bin[root@HM16-213 bin]# lltotal 1348-rwxr-xr-x 1 root root 7007 Dec 18 11:12 apr-1-config-rwxr-xr-x 1 root root 6510 Dec 18 11:12 apu-1-config-rwxr-xr-x 1 root root 1840 Dec 18 11:12 neon-config-rwxr-xr-x 1 root root 640714 Dec 18 11:12 svn-rwxr-xr-x 1 root root 111254 Dec 18 11:12 svnadmin-rwxr-xr-x 1 root root 69421 Dec 18 11:12 svndumpfilter-rwxr-xr-x 1 root root 137177 Dec 18 11:12 svnlook-rwxr-xr-x 1 root root 229281 Dec 18 11:12 svnserve-rwxr-xr-x 1 root root 107874 Dec 18 11:12 svnsync-rwxr-xr-x 1 root root 25042 Dec 18 11:12 svnversion6、建立软连接[root@HM16-213 /]# ln /usr/local/subversion/bin/svn /sbin/svn7、测试[root@HM16-213 /]# svnType 'svn help' for usage.[root@HM16-213 /]# svn -husage: svn <subcommand> [options] [args]Subversion command-line client, version 1.6.11.Type 'svn help <subcommand>' for help on a specific subcommand. Type 'svn --version' to see the program version and RA modulesor 'svn --version --quiet' to see just the version number.Most subcommands take file and/or directory arguments, recursing on the directories. If no arguments are supplied to such a command, it recurses on the current directory (inclusive) by default.Available subcommands:addblame (praise, annotate, ann)catchangelist (cl)checkout (co)cleanupcommit (ci)copy (cp)delete (del, remove, rm)diff (di)exporthelp (?, h)importinfolist (ls)locklogmergemergeinfomkdirmove (mv, rename, ren)propdel (pdel, pd)propedit (pedit, pe)propget (pget, pg)proplist (plist, pl)propset (pset, ps)resolveresolvedrevertstatus (stat, st)switch (sw)unlockupdate (up)Subversion is a tool for version control.For additional information, see /。
svn安装手册

Linux系统下Subversion 安装与配置一、首先准备好操作系统以及相关的安装包:使用的操作系统是,红旗Linux sp3这次使用的是下列的几个包apr-1.3.3.tar.gzapr-util-1.3.4.tar.gzsubversion-1.6.6.tar.bz2subversion-deps-1.6.6.tar.gzhttpd-2.2.21.tar.gz二、安装和配置步骤:1、安装apr-1.3.3# tar –zvxf apr-1.3.3.tar.gz# cd apr-1.3.3# ./configure /* 安装不指定路径时默认安装到/usr/local/apr # make# make install2、安装 apr-util-1.3.4# tar –zvxf apr-util-1.3.4.tar.gz# cd apr-util-1.3.4# ./configure --with-apr=/usr/local/apr# make# make install3、安装 httpd-2.2.21(apache)# tar –zvxf httpd-2.2.21.tar.gz# cd httpd-2.2.21# ./configure --prefix=/usr/local/apache2.2.21--with-apr=/usr/local/apr/bin/apr-1-config--with-apr-util=/usr/local/apr/bin/apu-1-config --enable-modules=so --enable-dav --enable-maintainer-mode --enable-rewrite# make# make install安装好后启动apache# cd /usr/local/apache2.2.21/bin/./apachectl –k start确认apache版本./httpd -v用浏览器查看http://IP/,得到it works,说明apache已经配置成功了。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
linux下安装subversion 1.6.5以下安装是在RHEL5.5默认安装的情况下,以root身份进行安装!1 .下载安装apr,下载地址:/[root@localhost pub]# tar -jxvf apr-1.3.12.tar.bz2 首先解压缩[root@localhost pub]# mkdir /usr/local/apr 建立apr要安装到的目录[root@localhost pub]# cd apr-1.3.12[root@localhost apr-1.3.12]# ./configure --prefix=/usr/local/apr 开始配置编译[root@localhost apr-1.3.12]# make;make install 安装2.安装apr-util[root@localhost pub]# tar -jxvf apr-util-1.3.9.tar.bz2[root@localhost pub]# cd apr-util-1.3.9[root@localhost apr-util-1.3.9]# mkdir /usr/local/apr-util[root@localhost apr-util-1.3.9]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr [root@localhost apr-util-1.3.9]# make;make install3.安装neon在安装之前,需要确认libxml2,如果没有安装需要安装上![root@localhost pub]# rpm -q libxml2libxml2-2.6.26-2.1.2.8[root@localhost pub]# rpm -q libxml2-devellibxml2-devel-2.6.26-2.1.2.8[root@localhost pub]# tar -zxvf neon-0.25.5.tar.gz[root@localhost pub]# mkdir /usr/local/neon[root@localhost pub]# cd neon-0.25.5[root@localhost neon-0.25.5]# ./configure --prefix=/usr/local/neon[root@localhost neon-0.25.5]# make;make install4.安装Berkeley DB[root@localhost pub]# cd /usr/local/src[root@localhost src]# tar -zxvf /var/ftp/pub/db-4.6.18.tar.gz[root@localhost src]# cd db-4.6.18/[root@localhost db-4.6.18]# cd build_unix/[root@localhost build_unix]# mkdir /usr/local/berkeleydb[root@localhost build_unix]# ../dist/configure --prefix=/usr/local/berkeleydb --enable-cxx其中-enable-cxx就是编译C++库,这样才能编译Berkeley DB数据库的PHP扩展php_db4. yum -y install gcc-c++安装一下就可以了[root@localhost build_unix]# make;make install[root@localhost build_unix]# echo '/usr/local/bekeleydb/lib/'>>/etc/ld.so.conf[root@localhost build_unix]# ldconfig这2句的作用就是通知系统Berkeley DB的动态链接库在/usr/local/berkeleydb/lib/目录5.安装sqlite-amalgamation-3.6.13.tar.gz[root@localhost pub]# tar -zxvf sqlite-amalgamation-3.6.13.tar.gz[root@localhost pub]# mkdir /usr/local/sqlite[root@localhost pub]# cd sqlite-3.6.13/[root@localhost sqlite-3.6.13]# ./configure --prefix=/usr/local/sqlite[root@localhost sqlite-3.6.13]# make;make install6.编译安装httpd,下载地址:/[root@localhost pub]#tar xvzf httpd-2.2.4.tar.gz//解压apache2安装包[root@localhost pub]#cd httpd-2.2.4//进入解压后的目录[root@localhost httpd-2.2.4]# mkdir /usr/local/apache2[root@localhost httpd-2.2.4]# ./configure -prefix=/usr/local/apache2 --enable-dav --enable-so --enable-maintainer-mode --enable-rewrite --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config//配置apache安装,后面的第一个参数是定制apache安装到那个目录,--enable-dav --enable-so是和subversion整合时需要的[root@localhost httpd-2.2.4]# make;make install 完成安装,如果没有错误,真的太幸运了,哈哈。
出现错误是很挠头的![root@localhost pub]# cd /usr/local/apache2/[root@localhost apache2]# bin/apachectl start 启动web服务,并访问,注意防火墙,如果能正确的访问,说明没有问题,ok了![root@localhost apache2]# bin/apachectl stop 可以停止,接着安装其他的软件包了。
7安装subversion1.6.5//servlets/ProjectDocumentList?folderID=10339&expandFolder=10339 &folderID=260 subversion-1.6.5.tar.gz和subversion-deps-1.6.5.tar.bz2下载地址[root@localhost pub]# tar -zxvf subversion-1.6.5.tar.gz[root@localhost pub]# tar -jxvf subversion-deps-1.6.5.tar.bz2./configure以前,需要yum -y install openssl-devel否则会一直报错,提示你configure的时候加上--with-openssl,即使你加上了也会报错,因为需要一个openssl.h(具体的名字忘了)的头文件,如果你没有安装openssl-devel这个软件包的话,这个.h文件系统中是没有的。
再解压缩subversion-devel-1.6.11.tar.gz后,会在解压缩subversion-1.6.11.tar.gz产生的文件夹内生成zlib文件,在configure时,要加上他的路径,否则configure: error: --with-zlib requires an argument.也是报错![root@localhost subversion-1.6.5]#./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-neon=/usr/local/neon --with-sqlite=/usr/local/sqlite--with-ssl --with-zlib=/var/ftp/pub/subversion-1.6.5/zlib --enable-maintainer-mode --without-berkeley-db在make之前一定要执行下一步,否则就会报错如下:/usr/bin/ld: cannot find -lexpatcollect2: ld returned 1 exit statusmake: *** [subversion/svn/svn] Error 1我也是出现错误了,报错了,然后百度,google一顿狂搜,愣是没有搜到我要的答案,不过大体上知道是缺少一个库文件,这个文件的名称应该包含lib,或expat,因为提示是没有找到lexpat嘛,所以,我就一个软件包一个软件包的测试,才找到这个软件包的,在安装完这个软件包之后,make才继续进行下去的!!!!需要安装的软件包主要是这两个:expat-1.95.8-8.2.1.i386.rpm和expat-devel-1.95.8-8.2.1.i386.rpm[root@localhost Server]# rpm -ivh expat-1.95.8-8.3.el5_4.2.i386.rpmwarning: expat-1.95.8-8.3.el5_4.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 Preparing... ########################################### [100%] 1:expat-devel ########################################### [100%] [root@localhost Server]# rpm -ivh expat-devel-1.95.8-8.3.el5_4.2.i386.rpmwarning: expat-devel-1.95.8-8.3.el5_4.2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186Preparing... ########################################### [100%] 1:expat-devel ########################################### [100%] [root@localhost subversion-1.6.5]#make[root@localhost subversion-1.6.5]#make install完成安装。