我正在尝试为 fb-python 安装 fbthrift。
我按照指南 https://github.com/facebook/fbthrift并安装所需的依赖项。
但是运行的时候出现了这个错误
cmake ..
在命令中:
-- Found folly: /usr/local
CMake Error at /home/xian/rsocket-cpp/build/yarpl/yarpl-config.cmake:31 (include):
include could not find load file:
/home/xian/lib/cmake/yarpl/yarpl-exports.cmake
Call Stack (most recent call first):
CMakeLists.txt:107 (find_package)
-- Found YARPL: /home/xian
-- Could NOT find rsocket (missing: rsocket_DIR)
-- Found fizz: /usr/local
CMake Error at CMakeLists.txt:110 (find_package):
Could not find a package configuration file provided by "fmt" with any of
the following names:
fmtConfig.cmake
fmt-config.cmake
Add the installation prefix of "fmt" to CMAKE_PREFIX_PATH or set "fmt_DIR"
to a directory containing one of the above files. If "fmt" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
我尝试构建路径:
sudo cmake .. -DCMAKE_PREFIX_PATH=/home/xian/rsocket-cpp/build/yarpl/CMakeFiles/Export/lib/cmake
但它不起作用。
yarpl-exports.cmake 在
/home/xian/rsocket-cpp/build/yarpl/CMakeFiles/Export/lib/cmake/yarpl
我很确定我已经安装了 rsocket-cpp。
我该怎么办?
最佳答案
你必须安装 libfmt-dev
包 ...
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
$ sudo apt-get install libfmt-dev
$ cmake .
-- Configuring done
关于cmake - 安装问题: Cmake error : include could not find load file: yarpl-exports. cmake,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58514840/
相关文章:
haskell - Cabal/Stack 忽略自定义安装脚本的 ghc-options
javascript - 如何使用 yarn 将 NodeJS/React 应用程序部署到 Hero
amazon-web-services - Cloudwatch 中未显示 Cognito 的指标
ruby-on-rails - 如何使用 Vue 前端和 Rails 后端实现 env 变量?是否需
azure-devops - "kubeconfig"选项的 Azure Devops kubern
python - 在 Python 中打印大型 JSON 文件的前几行