簡(jiǎn)介
并行版本系統(tǒng)(CVS)是一個(gè)版本控制系統(tǒng),用于跟蹤項(xiàng)目源代碼文件的所有修改。CVS廣泛應(yīng)用于開(kāi)放源代碼軟件和專(zhuān)有軟件的開(kāi)發(fā)項(xiàng)目,被普遍認(rèn)為是可免費(fèi)獲取、功能全面的最佳版本控制工具。
配置流程
1.配置編譯環(huán)境
安裝依賴(lài)工具。
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)進(jìn)入cvs的安裝目錄。
cd cvs-1.11.23
3)替換getline接口。
由于編譯過(guò)程中源碼lib/getline.h文件中聲明的getline接口與/usr/include/stdio.h文件中的getline接口沖突,需要進(jìn)行替換處理。
sed-i's/getline/get_line/'lib/getline.{c,h}
4)生成Makefile文件。
./configure
5)編譯安裝cvs。
“-j”參數(shù)可利用多核CPU加快編譯速度,在本示例中,使用的是2核CPU,所以此處為“-j2”。
可通過(guò)下述命令查詢(xún)CPU核數(shù):
cat/proc/cpuinfo|grep"processor"|wc-l make-j2 make install
----結(jié)束
4.運(yùn)行和驗(yàn)證
查詢(xún)cvs版本號(hào)。
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.