在 Debian 7 上安装 gcovr

在 Debian 7 上安装 gcovr

在 ubuntu 13.10 上我可以正常安装 gcovr:sudo apt-get install gcovr但在 debian 7 上我得到:

# apt-get install gcovr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package gcovr

如何在 Debian 7 上安装我需要的 gcovr:

http://meekrosoft.wordpress.com/2010/06/02/continuous-code-coverage-with-gcc-googletest-and-hudson/

答案1

如果使用 pip 安装,则可以正常工作:

# pip install gcovr
Downloading/unpacking gcovr
  Downloading gcovr-3.1.tar.gz
  Running setup.py (path:/tmp/pip_build_root/gcovr/setup.py) egg_info for package gcovr

Installing collected packages: gcovr
  Running setup.py install for gcovr
    changing mode of build/scripts-2.7/gcovr.bak from 644 to 755
    changing mode of build/scripts-2.7/gcovr from 644 to 755

    changing mode of /usr/local/bin/gcovr.bak to 755
    changing mode of /usr/local/bin/tmp to 755
    changing mode of /usr/local/bin/gcovr to 755
Successfully installed gcovr
Cleaning up...

相关内容