华为云计算 云知识 cvs是什么意思
cvs是什么意思

简介

并行版本系统(CVS)是一个版本控制系统,用于跟踪项目源代码文件的所有修改。CVS广泛应用于开放源代码软件和专有软件的开发项目,被普遍认为是可免费获取、功能全面的最佳版本控制工具。

配置流程

1.配置编译环境

安装依赖工具。

yum install wget-y

2.获取软件包

获取“cvs-1.11.23”源码包。

cd/usr/local/src
wget https://ftp.gnu.org/non-gnu/cvs/source/stable/1.11.23/cvs-1.11.23.tar.gz

3.编译和安装

1)解压软件包。

cd/usr/local/src
tar-zxvf cvs-1.11.23.tar.gz

2)进入cvs的安装目录。

cd cvs-1.11.23

3)替换getline接口。

由于编译过程中源码lib/getline.h文件中声明的getline接口与/usr/include/stdio.h文件中的getline接口冲突,需要进行替换处理。

sed-i's/getline/get_line/'lib/getline.{c,h}

4)生成Makefile文件。

./configure

5)编译安装cvs。

“-j”参数可利用多核CPU加快编译速度,在本示例中,使用的是2核CPU,所以此处为“-j2”。

可通过下述命令查询CPU核数:

cat/proc/cpuinfo|grep"processor"|wc-l
make-j2
make install

----结束

4.运行和验证

查询cvs版本号。

cvs--version

回显信息如下,则表示cvs安装成功。

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.

上一篇:云计算的三种模式 下一篇:查询版本列表(OpenStack原生)ListVersions