usr / bin / ld -lpthtread não encontrado

1

Estou tentando instalar o TRIQS-1.0.0 (git clone link src) no Pentium (R) Dual Core Sistema Ubuntu 14.04 de 32 bits. Usando os seguintes comandos

 mkdir build && cd build
 cmake -DCMAKE_INSTALL_PREFIX=~/build../src

o sistema retorna -lpthreads not found , mesmo que todas as dependências estejam instaladas.

Onde posso encontrar pthreads no Ubuntu 14.04?
A parte relevante do log de saída é mostrada abaixo:

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/enukpere/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec2501535256/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec2501535256.dir/build.make CMakeFiles/cmTryCompileExec2501535256.dir/build
make[1]: Entering directory '/home/enukpere/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/enukpere/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec2501535256.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTryCompileExec2501535256.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec2501535256
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec2501535256.dir/link.txt --verbose=1
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTryCompileExec2501535256.dir/CheckFunctionExists.c.o  -o cmTryCompileExec2501535256 -rdynamic -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec2501535256] Error 1
make[1]: Leaving directory '/home/enukpere/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec2501535256/fast] Error 
    
por user3799761 02.10.2014 / 09:44

1 resposta

0

Tente instalar as seguintes dependências ( libboost version is 1.54 in 14.04):

sudo apt-get install cmake git g++ libgfortran3 gfortran openmpi-bin openmpi-common \
     openmpi-checkpoint libopenmpi-dev libblas-dev liblapack-dev libfftw3-dev libgmp-dev \
     hdf5-tools libhdf5-serial-dev python-h5py libboost1.54-all-dev python-dev \
     python-numpy python-scipy python-virtualenv python-matplotlib doxygen\
     python-tornado python-zmq python-mpi4py cython
    
por Sylvain Pineau 02.10.2014 / 10:36