具體每個平台的安裝方法不一樣,以下只是Red Hat Enterprise 4的安裝方法,
其他平台請參見CUnit 的README文件
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:39:47 EDT 2008 i686 i686 i386 GNU/Linux
[root@localhost CUnit-2.1-0]# pwd
/root/CUnit-2.1-0 (README文件在該目錄下)
然後運行一下命令
aclocal
autoconf
automake
chmod u+x configure
./configure --prefix /usr/local (這裡是設置將CUnit安裝到那裡,根據你的需要可以修改)
make
make install