LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2059|回复: 8

哪位兄弟装过CVS服务器?遇到问题了(已解决)

[复制链接]
发表于 2006-10-25 21:57:25 | 显示全部楼层 |阅读模式
安装命令ACCEPT_KEYWORDS="~x86" USE="server" emerge cvsd,安装方法参照gentoo-wiki的HOWTO CVS Server(http://gentoo-wiki.com/HOWTO_CVS_Server),装好后可以cvs login,但在import modules的时候,总是提示"cvs [import aborted]: could not get working directory: Function not implemented",有没有兄弟碰到过类似的问题?

cvsd的版本:1.08
cvs的版本:1.12.12

/var/log/cvsd.log的日志信息如下:
=========================
cvsd: version 1.0.8 starting
cvsd: debug: binding 0.0.0.0 2401 family=2 socktype=1 protocol=6
cvsd: listening on 0.0.0.0 2401
cvsd: debug: binding :: 2401 family=10 socktype=1 protocol=6
cvsd: debug: socket() failed (ignored): Address family not supported by protocol
cvsd: debug: chroot(/var/lib/cvsd) done
cvsd: debug: nice(1) done
cvsd: debug: setgroups(0,NULL) done
cvsd: debug: setgid(410) done
cvsd: debug: setuid(104) done
cvsd: debug: cvs command to execute: '/bin/cvs -f --allow-root=/root pserver'
cvsd: accepting connections
cvsd: connection from 127.0.0.1 1539
cvsd: debug: limit coredumpsize to 0(soft) and 0(hard)
cvsd: debug: fork() succeeded (child pid=14580)
cvsd: debug: select() failed (ignored): Interrupted system call
cvsd: cvs command exited with exit-status 0
cvsd: connection from 127.0.0.1 1540
cvsd: debug: limit coredumpsize to 0(soft) and 0(hard)
cvsd: debug: fork() succeeded (child pid=14582)
cvsd: debug: select() failed (ignored): Interrupted system call
cvsd: cvs command exited with exit-status 0
发表于 2006-10-31 22:14:09 | 显示全部楼层
一模一样的问题,研究了两天不知道什么原因。
回复 支持 反对

使用道具 举报

发表于 2006-10-31 22:25:14 | 显示全部楼层
其实,也不完全一样。
我在本地import的时候,很顺利就可以进行了

但是当我想从另一台机器用winCVS登陆过来(登陆成功了),进行import的时候,就出现
cvs [import aborted]: could not get working directory: Function not implemented

而如果想尝试使用ssh authentication的话,连登陆都不行,总是
cvs [login aborted]: The :ext: protocol does not support the login command
回复 支持 反对

使用道具 举报

发表于 2006-10-31 23:10:40 | 显示全部楼层
function not implemented是ENOSYS错误的error msg,这个错误表示没有相应的系统调用
不会是cvs或者glibc太旧或太新(相对于内核)了吧
回复 支持 反对

使用道具 举报

发表于 2006-10-31 23:23:01 | 显示全部楼层
难道要安装下旧版本的cvs?

新手请教一下,怎么安装旧版本的软件……?
回复 支持 反对

使用道具 举报

发表于 2006-11-1 11:06:50 | 显示全部楼层
制定软件版本就可以了,比如
emerge -av =media-video/mplayer-0.9.8-r1
回复 支持 反对

使用道具 举报

发表于 2006-11-1 11:27:54 | 显示全部楼层
我这样设置了,似乎正常

Here are my new steps in setting up my CVS server:

1. installation
  1. # emerge cvsd
复制代码

2. setup cvs root
  1. # cvs -d /var/lib/cvsd/root init
复制代码

3. edit cvsd.conf, use whatever editor you like. make sure Jailroot line is commented and Repos is pointing the real directory.
  1. # vi /etc/cvsd/cvsd.conf
  2. cvsd.conf:
  3. #RootJail /var/lib/cvsd
  4. Repos=/var/lib/cvsd/root
复制代码

4. add user. mine is tester.
  1. # cvsd-passwd /var/lib/cvsd/root tester
复制代码

5. create readers and writers file, and add 'tester' into writers.
  1. # touch /var/lib/cvsd/root/CVSROOT/readers
  2. # chown cvsd:cvsd /var/lib/cvsd/root/CVSROOT/readers
  3. # touch /var/lib/cvsd/root/CVSROOT/writers
  4. # chown cvsd:cvsd /var/lib/cvsd/root/CVSROOT/writers
  5. # vi /var/lib/cvsd/root/CVSROOT/writers
复制代码

6. apply permissions
  1. # chown -R cvsd:cvsd /var/lib/cvsd
  2. #chmod -R 775 /var/lib/cvsd
复制代码

7. restart cvsd
  1. # /etc/init.d/cvsd restart
复制代码

----------done------------

Don't forget to use right repository in the winCVS (it is /var/lib/cvsd/root now).
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-2 02:33:48 | 显示全部楼层
谢谢AnakinFoxe,我的也搞掂了。
需要说一下的是cvsd.conf里的Repos=/var/lib/cvsd/root应为Repos /var/lib/cvsd/root
回复 支持 反对

使用道具 举报

发表于 2006-11-2 14:28:44 | 显示全部楼层
哦,对,笔误。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表