无法在Fedora 31上安装Folly

时间:2020-06-08 15:01:51

标签: c++ fedora folly

我无法在Fedora 31上进行编译。我安装了fmt并遵循以下说明:

git clone https://github.com/facebook/folly.git
cd folly
mkdir _build
cd _build
cmake ..

运行cmake ..时,出现以下错误:

[vagrant@localhost _build]$ cmake ..
-- The CXX compiler identification is GNU 9.3.1
-- The C compiler identification is GNU 9.3.1
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
  Could NOT find Boost (missing: Boost_INCLUDE_DIR context filesystem
  program_options regex system thread) (Required is at least version
  "1.51.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:445 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindBoost.cmake:2166 (find_package_handle_standard_args)
  CMake/folly-deps.cmake:36 (find_package)
  CMakeLists.txt:113 (include)


-- Configuring incomplete, errors occurred!
See also "/vagrant/folly/_build/CMakeFiles/CMakeOutput.log".
See also "/vagrant/folly/_build/CMakeFiles/CMakeError.log".

0 个答案:

没有答案