您的位置:首页 > 运维架构 > Linux

cvs for linux 安装+登录+下载

2016-03-29 17:48 721 查看
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

==============================================
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: