kenlm icon indicating copy to clipboard operation
kenlm copied to clipboard

cmake failed on CentOS Linux 7

Open cfangpp opened this issue 4 years ago • 4 comments

When i used follow command

mkdir build cd build cmake ..

occurred follow error.

CMake Error at /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:218 (message): Could NOT find Boost (missing: Boost_INCLUDE_DIR program_options system thread unit_test_framework) (Required is at least version "1.41.0") Call Stack (most recent call first): /usr/local/share/cmake-3.19/Modules/FindPackageHandleStandardArgs.cmake:582 (_FPHSA_FAILURE_MESSAGE) /usr/local/share/cmake-3.19/Modules/FindBoost.cmake:2193 (find_package_handle_standard_args) CMakeLists.txt:85 (find_package)

-- Configuring incomplete, errors occurred! See also "/root/kenlm/build/CMakeFiles/CMakeOutput.log". See also "/root/kenlm/build/CMakeFiles/CMakeError.log".

And I have installed boost yum install boost Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile Package boost-1.53.0-28.el7.x86_64 already installed and latest version Nothing to do

I can not cmake successfully on my machine, and machine info like follow

Operating System: CentOS Linux 7 (Core) CPE OS Name: cpe:/o:centos:centos:7 Kernel: Linux 4.14.105-19-youzan_1 Architecture: x86-64

cfangpp avatar Feb 03 '21 14:02 cfangpp

You need the development package of boost, not just the runtime libraries.

kpu avatar Feb 03 '21 14:02 kpu

I installed boost with boost_1_62_0.tar.gz. Is there anything else that needs to be done?

cfangpp avatar Feb 03 '21 14:02 cfangpp

Here are the instructions for installing Boost in a home directory https://neural.mt/code/kenlm/dependencies/ . If installing systemwide, try /usr not /usr/local

kpu avatar Feb 03 '21 14:02 kpu

Thanks, it's build successfully

cfangpp avatar Feb 04 '21 01:02 cfangpp