我正在尝试编译 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 2
该gtest
软件包是否依赖于该软件包libgtest-dev
?我读到该软件包libgtest-dev
不再可用?
有什么建议么?
答案1
选项是-l
,您要查找的库是gtest
。您在哪里读到有关不可用性的信息?可靠的网站?此外,如果不知道您正在运行哪个版本的 Ubuntu,就无法可靠地讨论软件(不)可用性。在我的 Ubuntu 16.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
是的,看起来您发现了未记录的依赖项。