linuxsvn源码安装
⑴ 关于在svn在linux中安装报错的问题,请大侠帮忙解决
需要安装或升级sqlite这个软件包 或者指定sqlite源码包的路径 你试试看
⑵ linux里安装svn遇到的问题
gcc的路径放在PATH里了么?
⑶ 怎么在linux上安装svn服务端
centos 6.5
1.安装tftp软件
# yum -y install tftp*
2.修改配置文件
# vi /etc/xinetd.d/tftp
server_args = -s /tftpboot '加-c
disable = yes '改为no #默认tftp服务是关闭的。
修改后的代码:
service tftp
{
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /var/lib/tftpboot -c
disable = no
per_source = 11
cps = 100 2
flags = IPv4
}
修改项server_args= -s <path> -c
其中<path>处可以改为你的tftp-server的根目录,参数-s指定chroot,-c指定了可以创建文件。
4.
# vi /etc/selinux/config
SELINUX=permissive 或者 disable
5.启动tftp服务
# service xinetd start
不能启动试试关闭防火墙
# service iptables stop
linux下tftp的使用
$ tftp 192.168.x.x -c put 22.txt 从linux下上传一个文件到 ip 为192.168.x.x 远程主机下
$ tftp 192.168.x.x -c get 33.txt 从远程主机得到一个33.txt的文件
⑷ linux下apache+SVN搭建完美版
Linux下源码方式安装apache 2.2.14 & svn 1.6.6 Created by okala at 2009-12-25环境:Red Hat Enterprise Linux Server release 5.3 (Tikanga)httpd-2.2.14.tar.gzsubversion-1.6.6.tar.gz 到官网 http://subversion.tigris.org/ 下载当前最新的稳定版本subversion-1.6.6.tar.gz到官网 http://httpd.apache.org/ 下载当前最新的稳定版本httpd-2.2.14.tar.gz 1. 安装Apache2.2.14用root账号执行以下命令:tar zxf httpd-2.2.14.tar.gz #解压到当前目录cd httpd-2.2.14 #进入解压后的目录./configure --prefix=/local/svnroot/apache2 --enable-so --enable-mods-shared=all --enable-dav=share --enable-dav-fs --with-ldap --enable-ldap --enable-authnz-ldap --enable-authn-alias#定义安装的目标路径(可据自己需要修改),使能LDAPmake #编译make install #安装/local/svnroot/apache2/bin/apachectl start #启动Apache用IE访问以下网址,http://hostIP/,如果提示It works!,则Apache安装成功。然后就可以先停止Apache了:/local/svnroot/apache2/bin/apachectl stop #停止Apache 2. 安装Subversion 1.6.6用root账号执行以下命令:tar zxf subversion-1.6.6.tar.gz #解压到当前目录cd subversion-1.6.6 #进入解压后的目录./configure --with-apxs=/local/svnroot/apache2/bin/apxs --prefix=/local/svnroot/subversion --with-apr=/local/svnroot/apache2 --with-apr-util=/local/svnroot/apache2 --with-ssl --enable-maintainer-mode#定义安装的目标路径(可据自己需要修改),指明Apache的安装路径,使能SSLmake #编译make install #安装 3. 安装后的系统设置用root账号执行以下命令:useradd svnroot #创建Linux系统里的账号svnrootpasswd svnroot #设置svnroot账号的密码chown –R svnroot.svnroot /local/svnroot #把svn目录下所有文件改为属于svnrootchmod 750 /local/svnroot #把svn目录设为其他Linux用户不可读 4. Apache设置su svnroot #由root账号切换到svnroot账号来执行以下的命令vi /local/svnroot/apache2/conf/httpd.conf #编辑Apache服务器的配置文件下述参数根据自己的安装情况进行相应修改:ServerRoot "/local/svnroot/apache2"Listen 80 #可修改为其他的端口,则访问时也要在URL里加上对应的端口号 User svnrootGroup svnroot#前面把svn安装目录的所有文件改为属于svnroot,这里这样设置,那么Apache运行时就会切换到使用该Linux里的账号svnroot与组svnroot ServerAdmin [email protected] #定义一个邮箱地址ServerName 192.18.1.1 #该主机的地址 #ErrorLog "logs/error_log"ErrorLog "|/local/svnroot/apache2/bin/rotatelogs /local/svnroot/apache2/logs/error_log.%Y%m%d.log 86400 480"#修改Errorlog记录的方式为按天记录,避免一个log文件过大 # CustomLog "logs/access_log" commonCustomLog "|/local/svnroot/apache2/bin/rotatelogs /local/svnroot/apache2/logs/access_log.%Y%m%d.log 86400 480" common#修改accesslog记录的方式为按天记录,避免一个log文件过大 #在末尾开始加入这部分集成LDAP方面使用的参数LDAPSharedCacheSize 200000LDAPCacheEntries 1024LDAPCacheTTL 600LDAPOpCacheEntries 1024LDAPOpCacheTTL 600 <AuthnProviderAlias ldap abc>AuthLDAPURL "ldap://192.168.1.1:3268/DC=lala,DC=lala,DC=lala,DC=com?sAMAccountName?sub?(objectClass=*)" NONEAuthLDAPBindDN "CN=la\, lala,OU=users,OU=lala,ou=lala ,DC=lala,DC=lala,DC=la,dc=com"AuthLDAPBindPassword "password"</AuthnProviderAlias>#这部分指定访问LDAP服务器的URL、用户名、密码 RewriteEngine onRewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)RewriteRule .* - [F] include /local/svnroot/apache2/conf/httpd.project#我把各个库的配置信息用一个独立的文件来管理 5. svn库的配置su svnroot #切换到svnroot账号,如果用root账号创建svn库,会有导致无法提交文件到该库的错误/local/svnroot/subversion/bin/svnadmin create --fs-type fsfs /local/svnroot/repository/sw1#该命令用svnadmin创建fsfs存储格式的svn库“sw1” vi /local/svnroot/apache2/conf/httpd.project #创建httpd.project文件,输入以下内容:<Location /sw1> #到时访问的路径就是http://hostip/sw1DAV svn #使用dav传输SVNPath /local/svnroot/repository/sw1 #sw1库在Linux系统中的真实物理路径AuthzSVNAccessFile /local/svnroot/permission/sw1.perm #配置各个用户访问权限的文件AuthType BasicAuthName "sw1 SVN repository." #客户端访问该库时显示的登陆提示信息AuthBasicProvider file abc #先看文件中是否有该用户名,再看LDAP中有无该用户名AuthzLDAPAuthoritative offAuthUserFile /local/svnroot/user/sw1.user #记录各个用户名与其密码的文件Satisfy Any #允许匿名访问,若不允许,可注释掉此行Require valid-user #要求用户名与密码验证</Location>Shift+分号,输入wq保存后退出编辑模式:wq vi /local/svnroot/permission/sw1.perm #创建sw1.perm权限控制文件,输入:[/]test = rw #账号test拥有读写权限* = #其他账号没有读写权限Shift+分号,输入wq保存后退出编辑模式:wq /local/svnroot/apache2/bin/htpasswd -cm /local/svnroot/user/sw1.user test#-c参数表明创建文件sw1.user,若此文件已存在,则不要-c参数#-m表示用MD5加密协议#此命令往sw1.user里添加用户test,随后设置其密码 至此,安装好了Apache、SVN,配置好了svn安装目录的权限,配置好了Apache建立好了库设立了库里目录的访问权限创建了该库的账户于是,可以运行啦 6. 运行SVN服务器用root账号执行:/local/svnroot/apache2/bin/apachectl start然后用IE或TortoiseSVN访问建立好的svn库:http://hostip/sw1输入账号test及其密码,应该就能访问了,里面什么内容也没有呢 如果是LDAP账户,则只需要在sw1.perm文件里分配权限给相应的账号就可以了,不需要再创建到sw1.user文件里。
⑸ 如何在linux上安装svn服务器
你好,centos下安装 svn 1.9.5 按照步骤一步一步装就OK 。以下是我的步骤。分享给你
安装1.9
准备工作:
1、安装编译工具包
yum install apr* autoconf automake bison bzip2 cloog-ppl compat* cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++ gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutils-libs-devel krb5-devel libcom_err-devel libpng* libjpeg* libsepol-devel libselinux-devel libstdc++-devel libtool libtool* libgomp libxml2 libxml2-devel libXpm* libtiff libtiff* libX* make mpfr ncurses* ntp openssl openssl-devel patch pcre-devel perl php-common php-gd policycoreutils ppl telnet t1lib t1lib* nasm nasm* wget zlib-devel zlib unzip perl-ExtUtils-Embed
2、yum remove apr apr-util subversion subversion-libs #删除系统中原有的svn及依赖包
3、下载软件包
https://dist.apache.org/repos/dist/release/apr/apr-1.5.2.tar.gz
https://dist.apache.org/repos/dist/release/apr/apr-util-1.5.4.tar.gz
http://prdownloads.sourceforge.net/scons/scons-2.3.5.tar.gz
http://www.openssl.org/source/openssl-1.0.1o.tar.gz
https://www.apache.org/dist/serf/serf-1.3.9.tar.bz2
http://www.apache.org/dist/subversion/subversion-1.8.13.tar.gz
http://www.sqlite.org/2017/sqlite-amalgamation-3160200.zip
1、安装apr
cd /usr/local/src #进入软件包存放目录
tar zxvf apr-1.5.2.tar.gz #解压
cd apr-1.5.2 #进入安装目录
./configure --prefix=/usr/local/apr #配置
make #编译
make install #安装
2、安装apr-util
cd /usr/local/src
tar zxvf apr-util-1.5.4.tar.gz
cd apr-util-1.5.4
./configure --with-apr=/usr/local/apr/bin/apr-1-config
make && make install
3、安装scons
cd /usr/local/src
tar zxvf scons-2.3.5.tar.gz
cd scons-2.3.5
python setup.py install #配置安装
4、安装openssl
cd /usr/local/src
tar zxvf openssl-1.0.1o.tar.gz
cd openssl-1.0.1o
CFLAGS=-fPIC ./config --prefix=/usr/local/openssl enable-shared
make && make install
vi /etc/profile #添加系统环境变量
export PATH=$PATH:/usr/local/openssl/bin >> /etc/profile
#export PATH=$PATH:/usr/local/openssl/bin >> /etc/profile
:wq! #保存退出
source /etc/profile #使配置生效
ln -s /usr/local/openssl/include/openssl /usr/include/openssl #添加系统软连接
5、安装serf
cd /usr/local/src
tar -xf serf-1.3.9.tar.bz2
cd serf-1.3.9
scons PREFIX=/usr/local/serf APR=/usr/local/apr/bin/apr-1-config APU=/usr/local/apr/bin/apu-1-config OPENSSL=/usr/local/openssl
scons install
cd /usr/local/serf/lib
cp libserf-1.so* /usr/local/lib/ #拷贝文件到系统目录
6、安装svn
cd /usr/local/src
tar zxvf subversion-1.9.5.tar.gz
cd subversion-1.9.5
mkdir /usr/local/src/subversion-1.9.5/sqlite-amalgamation #创建sqlite-amalgamation目录
cd /usr/local/src
unzip sqlite-amalgamation-3160200.zip -d /usr/local/src/subversion-1.9.5/sqlite-amalgamation
mv /usr/local/src/subversion-1.9.5/sqlite-amalgamation/sqlite-amalgamation-3160200/* /usr/local/src/subversion-1.9.5/sqlite-amalgamation
#解压sqlite-amalgamation软件包到sqlite-amalgamation目录
cd /usr/local/src/subversion-1.9.5
./configure --prefix=/usr/local/svn --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config --with-serf=/usr/local/serf --with-openssl=/usr/local/openssl --enable-mod-activation #配置
make #编译
make install #安装
vi /etc/profile #添加系统环境变量,添加到最后一行
export PATH=$PATH:/usr/local/svn/bin
:wq! #保存退出
source /etc/profile #使配置立刻生效
whereis libexpat.so.1 #查找文件安装目录,如下:
libexpat.so: /lib/libexpat.so.0 /usr/local/lib/libexpat.so /usr/local/lib/libexpat.so.1
vi /etc/ld.so.conf #编辑加入libexpat.so.1的目录
/usr/local/lib/
:wq! #保存退出
ldconfig #使配置生效
⑹ 如何在linux上检出另一台linux上的svn源码
应该是在14上用命令svn checkout svn://192.168.12.12/你的目录
⑺ Linux中svn服务器安装与使用
直接开放svnserve的端口就可以了,默认端口是3690
如果selinux开启了,它会阻止文件的写入,从仓库中拉去正常,但上传的时候会出现 不能打开文件"***/db/txn-current-lock"权限不够
如果出现semanage未定义,可以参考 CentOS7 中安装semanage来设置selinux
仓库目录为 /home/svn/test ,如果要删除版本仓库直接删除目录就可以了 rm -rf /home/svn/test
在仓库目录 /home/svn/test 的 conf 目录中会有三个文件
修改配置
修改配置添加账号密码,以 账号=密码 的格式配置, = 号二边尽量不要存在空格
权限管理分为组管理和目录权限管理
多个创建可以共用一套账号和密码权限管理。也可以用不同的账号密码管理,如果用不同的配置少单仓库类似,修改每个仓库conf下的账号和权限文件就可以了。下面说一下共用账号权限文件的情况。
在仓库目录 /home/svn 目录中创建authz文件和passwd文件。
修改配置各仓库下conf/svnserve.conf。将password-db和authz-db指向/home/svn/目录下的文件
修改/home/svn/passwd配置添加账号密码,以 账号=密码 的格式配置, = 号二边尽量不要存在空格
修改/home/svn/authz权限管理分为组管理和目录权限管理
如果单仓库以/home/svn启动,此时访问的地址会有仓库名。 svn://ip/test
访问地址分别为:
编辑 /etc/sysconfig/svnserve 文件,修改 OPTIONS="-r /var/svn" 参数改为svn仓库目录 OPTIONS="-r /home/svn"
设置开机启动
修改后也可以用systemctl来启动、停止、重启
svnserve启动后,修改authz和passwd文件是时实生效的,并不需要重启服务
有时随着仓库越来越多,权限配置也越来越多时,会出现一些配置错误,导致访问时出现无法加载权限验证之前的错误,这个时候我们可以将svn服务器的日志打印出来,看些配置出错了。
停止svn服务器,重新附加log-file参数输入日志到指定文件
⑻ linux svn 安装 问题怎么解决
你用源码安装gcc?那还得需要gcc。lz可以考虑学习下lfs的文档。 我不建议这么折腾。编译器用系统本身的软件管理系统安装就行了,推荐所有软件都尽量用系统本身的软件管理系统安装。
⑼ 如何在Suse10上安装Subversion步骤详解
以前svn的服务器一直在windows环境下安装,按照官方提供的安装方法,很容易就安装成功。近日,由于开发需要,要求在linux上安装,本以为安装过程会像windows下那么容易,没相当实现过程是相当坎坷。赶紧抽时间将这个过程记录下来,以备日后不时之需,同时也为遇到相同问题的朋友提供一些经验和教训。
软件版本:
subversion-1.4.0
解包
我采用的是源码安装,源文件为subversion-1.4.0.tar.tar和subversion-deps-1.4.0.tar.gz。输入命令:
tar–xvfsubversion-1.4.0.tar.tar
tar–xvfsubversion-deps-1.4.0.tar.gz
其中,subversion-deps-1.4.0.tar.gz解开之后,会在subversion-1.4.0目录下,增加apr、apr-util、neon和zlib几个安装中必须的库文件。
gcc安装
由于安装Suse时并没有安装gcc,所以整个安装过程颇费周折。
在安装gcc-4.1.0-28.4.i586.rpm之前,需要安装cpp-4.1.0-28.4.i586.rpm、binutils-2.16.91.0.5-23.4.i586.rpm和glibc-devel-2.4-31.2.i586.rpm。不过,最好是在安装系统之初就将gcc安装好,避免不必要的麻烦。
zlib问题
在Suse10上安装Subversion时会遇到zlib问题。gcc安装完毕以后,对源码进行configure操作:./configure–prefix=/opt/svn
但是配置并没有成功,在最后提示:
checkingzlib.husability...no
checkingzlib.hpresence...no
checkingzlib.h...no
configure:error:subversionrequireszlib
通过./configure–help查看其用法,使用命令:
./configure–prefix=/opt/svn–with-zlib
但是仍然找不到zlib。千辛万苦goolge来一篇文章,按照提示,终于解决zlib的问题:
1)cdsubversion-1.4.3/zlib
2)./configure--shared
3)make
4)cd..
5)./configureCPPFLAGS="-Izlib/-Lzlib/"
6)make
Make&&makeinstall之后,svn就成功安装到/opt/svn目录下了。
配置路径
在etc/profile中加入:PAHT=$PATH;/opt/svn/bin
创建版本库
在安装Subversion时需要创建版本库。输入命令:
svnadmincreate/home/RepositoryLib
在/home/RepositoryLib目录下成功创建了版本库RepositoryLib。然后就可以对该版本库进行相应的配置了。
启动版本库
输入命令:svnserve-d-r/home/RepositoryLib
最后成功启动版本库。本节讲解Suse10上安装Subversion完毕。
⑽ Linux系统装svn遇到的问题
你用源码安装gcc?那还得需要gcc。lz可以考虑学习下lfs的文档。
我不建议这么折腾。编译器用系统本身的软件管理系统安装就行了,推荐所有软件都尽量用系统本身的软件管理系统安装。
希望能解决您的问题。