如何修复 CMake Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)
问题
使用 cmake . 构建项目时,你看到以下警告或错误消息:
cmake_libedit_error.txt
-- Could NOT find LibEdit (missing: LibEdit_INCLUDE_DIRS LibEdit_LIBRARIES)解决方案
此错误表示 CMake 无法找到 LibEdit 库,这是一个用于命令行编辑和历史记录的常用库。
要解决此问题,使用以下命令安装
install_libedit.sh
sudo apt install libedit-dev然后,重新运行 cmake .,错误应该已解决。
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow