cvs for linux 安装+登录+下载

1、http://blog.csdn.net/superchanon/article/details/8489103

http://zhidao.baidu.com/question/189924087.html?qbl=relate_question_0&word=cvs-1.11.tar.gz%20down

1、先解压 tar -zxvf 某某.tar.gz

2、再cd 某某目录


.tar.gz一般情况下都是源代码的安装包可以执行

tar zxvf *.tar.gz解压,然后进入解压的目录执行

./configure && make && make install

也可以分开写成这样

./configure (配置)

make (编译)

make install (安装)

上面的命令每执行一次都是自动运行的,不用手动干预


d. #make
这个时候出现错误
In file included from getline.c:25:
getline.h:15: error: conflicting types for ‘getline’
/usr/include/stdio.h:673: note: previous declaration of ‘getline’ was here
getline.c:158: error: conflicting types for ‘getline’
/usr/include/stdio.h:673: note: previous declaration of ‘getline’ was here
make[2]: *** [getline.o] Error 1
make[2]: Leaving directory `/home/chanon/Softwares/JavaEE/cvs-1.11.23/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chanon/Softwares/JavaEE/cvs-1.11.23'
make: *** [all] Error 2
意思是cvs-1.11.23/lib目录下的getline.h的第15行和getline.c的第158行中函数名getline跟/usr/include/stdio.h文件中的函数名产生冲突,即是stdio.h中也声明了getline函数。为了解决这个冲突,只需把getline.h的第15行和getline.c的第158行中的函数名getline改成get_line就可以了。
重新make,通过,没有错误。
e. #make install
注意得用root权限执行,不然权限不够,某些安装的动作无法执行。

sudo make install   root权限运行!!


f. 安装完成,检查是否安装成功
#cvs -v
Concurrent Versions System (CVS) 1.11.23 (client/server)
Copyright (C) 2006 Free Software Foundation, Inc.
Senior active maintainers include Larry Jones, Derek R. Price,
and Mark D. Baushke.  Please see the AUTHORS and README files from the CVS distribution kit for a complete list of contributors and copyrights.
CVS may be copied only under the terms of the GNU General Public License, a copy of which can be found with the CVS distribution kit.
Specify the --help option for further information about CVS


1、“yang_evegreen: no such user,原因在于CVS用户不存在; 

去数字,才是正确账号



=================

tar -jxvf cvs-1.11.23.tar.bz2

cd

./configure

 make

cvs -v


export  CVSROOT=:pserver:xxxxx@host:/cvs

cvs login(cvs login run as Administrator)

cvs -d :pserver:xxxx@host:/cvs ocheckout projectname

==============================================


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值