espnet / espnet

End-to-End Speech Processing Toolkit
https://espnet.github.io/espnet/
Apache License 2.0
8.51k stars 2.19k forks source link

fail to install kenlm,"undefined reference to `pthread_create'" #2264

Closed xcrpkuss closed 4 years ago

xcrpkuss commented 4 years ago

1.In run shell ./install_kenlm.sh,and have some errors. image "In function main':CheckSymbolExists.c:(.text+0x1b): undefined reference topthread_create'" image

2.I search some solution,and add in CMakeList in kenlm,but still didn't work: " cmake_minimum_required(VERSION 2.6)

Define a single cmake project

project(kenlm)

find_package(Threads REQUIRED) set(THREADS_PREFER_PTHREAD_FLAG ON) add_executable(${PROJECT_NAME} "CheckSymbolExists.c") target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads) “ 3.Can I replace this package?Or I need find way to install it?

kamo-naoyuki commented 4 years ago

The first one indicates that you don't have boost simply.

I can install kenlm without problem, so this is not an installation issue of espnet. You should ask at the other place. At least, you should write your OS, gcc, and etc. whenever asking about compile issue.

xcrpkuss commented 4 years ago

The first one indicates that you don't have boost simply.

I can install kenlm without problem, so this is not an installation issue of espnet. You should ask at the other place. At least, you should write your OS, gcc, and etc. whenever asking about compile issue.

Yes ,it's because the install of boost,when I set the location of boost.it run ok.

kamo-naoyuki commented 4 years ago

i see, thanks