我正在尝试为fb-python安装fbthrift。
我遵循了 https://github.com/facebook/fbthrift并安装所需的依赖项。
但运行时出现此错误
cmake ..
在cmd中:
-- 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。
我该怎么办?
答案 0 :(得分:-1)
尝试
git clone https://github.com/fmtlib/fmt.git
cd fmt
cmake CMakeLists.txt
make
sudo make install