sudo tar -jxvf CUnit-2.1-3.tar.bz2
cd CUnit-2.1-3
sudo aclocal
sudo autoconf
sudo autoheader
sudo libtoolize
sudo automake --add-missing
sudo automake
sudo mkdir <install directory>
sudo ./configure --prefix <install directory>
sudo make
sudo make install



工具下载地址:http://sourceforge.net/p/cunit/code/HEAD/tree/

这里install directory 是安装目录

我安装在/opt/Cunit。


注意运行编译完成后的程序时要先执行

export LD_LIBRARY_PATH=/opt/Cunit/lib


Logo

更多推荐