今天利用新的CentOS 5.8 安装了一下svn,发现了如下问题:


系统环境

Linux localhost.localdomain 2.6.18-308.el5 #1 SMP Tue Feb 21 20:05:41 EST 2012 i686 i686 i386 GNU/Linux

◆安装过程

#yum -y install subversion

#mkdir -p /svn/data;mkdir -p /svn/passwd

#rpm -aq subversion

subversion-1.6.11-11.el5_9

#svnserve -d -r /svn/data

svnserve: warning: cannot set LC_CTYPE locale

svnserve: warning: environment variable LC_ALL is zh.CN.GBK

svnserve: warning: please check that your locale name is correct

svnserve: Can't bind server socket: Address already in use

如上,发现出现了错误:谷歌了一下翻译如下:

svnserve的:警告:不能设置本地LC_CTYPE

svnserve的:警告:环境变量LC_ALL是zh.CN.GBK

svnserve的:警告:请检查您的区域名称是正确的

svnserve的:无法绑定服务器套接字:地址已在使用

头两句话需要做一下操作,添加LC_ALL:

# echo "export LC_ALL=C" /etc/profile

# source /etc/profile

后一句话就意思简单了进程占用了,这个可能是我之前安装,重启了机子的原因,杀了就行

#pkill svnserve

#svnserve -d -r /svn/data

这样就Ok了:〉