我正在尝试编译fix8框架。根据文档,唯一的依赖项是我成功编译/安装的poco library。当我在make文件夹上运行fix8时,会得到以下错误:
/usr/bin/ld: cannot find -lgtest
/usr/bin/ld: cannot find -lgtest_main
collect2: error: ld returned 1 exit status
make[2]: *** [libutest.la] Error 1
make[2]: Leaving directory `/home/kostas/Desktop/test/fix8-1.4.0/utests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kostas/Desktop/test/fix8-1.4.0'
make: *** [all] Error 2gtest包是否依赖于包libgtest-dev?我读过libgtest-dev软件包不再可用了吗?
有什么建议吗?
发布于 2016-11-23 17:48:27
选项是-l,您要寻找的库是gtest。你在哪里读到的关于不可利用性的文章?可靠的地点?另外,如果不知道您正在运行的Ubuntu的哪个版本,就无法可靠地讨论软件(Un)的可用性。在我的Ubuntu16.04.1 LTS上,有几种选择:
$ apt-cache search gtest
autopkgtest - automatic as-installed testing for Debian packages
lxc-tests - Linux Containers userspace tools (test binaries)
debian-policy - Debian Policy Manual and related documents
gnome-desktop-testing - runner for GNOME installed tests
gtester2xunit - Helper for converting gtester xml output to xunit.
libdist-zilla-plugin-podspellingtests-perl - Backward-compatibility wrapper around Dist::Zilla::Plugin::Test::PodSpelling
libdist-zilla-plugin-test-podspelling-perl - Author tests for POD spelling
libgtest-dev - Google's framework for writing C++ tests - header files
libxorg-gtest-data - X.Org dummy testing environment for Google Test - data
libxorg-gtest-dev - X.Org dummy testing environment for Google Test - headers
libxorg-gtest-doc - X.org dummy testing environment for Google Test - documentation
pkg-perl-autopkgtest - collection of autopktest scripts for Perl packages
python-nose-timer - timer plugin for nosetests - Python 2.x
python3-nose-timer - timer plugin for nosetests - Python 3.x是的,看起来你发现了一种无记录的依赖。
https://askubuntu.com/questions/852784
复制相似问题