我正在尝试运行cmake
命令 ( sudo cmake -S. -B./build -G Ninja
)。
这给了我错误:
-- Configuring FOSSOLOGY
-- Checking for module 'libxslt'
-- Package 'libxslt', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:607 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
cmake/SetDefaults.cmake:127 (pkg_check_modules)
CMakeLists.txt:10 (include)
但是当我运行时yum list installed | grep libxslt
,我得到以下输出:
libxslt.x86_64 1.1.37-1.fc37 @fedora
另外,跑步sudo dnf install libxslt
说:
Package libxslt-1.1.37-1.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
然而跑步which libxslt
说:
libxslt not found
可能是什么问题呢?
答案1
您需要libxslt-devel
包含编译所需的头文件的包。