gpt4 book ai didi

cmake - 安装问题: Cmake error : include could not find load file: yarpl-exports. cmake

转载 作者:行者123 更新时间:2023-12-05 08:06:46 25 4
gpt4 key购买 nike

我正在尝试为 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com