kpu / kenlm

KenLM: Faster and Smaller Language Model Queries
http://kheafield.com/code/kenlm/
Other
2.51k stars 511 forks source link

cmake failed on CentOS Linux 7 #322

Open cfangpp opened 3 years ago

cfangpp commented 3 years ago

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

kpu commented 3 years ago

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

cfangpp commented 3 years ago

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

kpu commented 3 years ago

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

cfangpp commented 3 years ago

Thanks, it's build successfully