Skip to content

Installation instructions for CentOS7 #180

@NicolasRouquette

Description

@NicolasRouquette

Building ET on CentOS7 is tricky.

First, the cmake utility is too old (2.8) so we have to install cmake3 explicitly:

yum -y install epel-release
yum install cmake3

(found this tip here: https://www.heliocastro.info/?p=238#comment-5624)

Next, building failed:

cmake3 ../
-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- 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
-- 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
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Could NOT find GFLAGS (missing: GFLAGS_INCLUDE_DIR GFLAGS_LIBRARY) 
CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake3/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:44 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeOutput.log".
See also "/home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeError.log".

Here's the error log:

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_e3e96/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_e3e96.dir/build.make CMakeFiles/cmTC_e3e96.dir/build
gmake[1]: Entering directory `/home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_e3e96.dir/CheckSymbolExists.c.o
/usr/bin/cc    -o CMakeFiles/cmTC_e3e96.dir/CheckSymbolExists.c.o   -c /home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_e3e96
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_e3e96.dir/link.txt --verbose=1
/usr/bin/cc      -rdynamic CMakeFiles/cmTC_e3e96.dir/CheckSymbolExists.c.o  -o cmTC_e3e96 
CMakeFiles/cmTC_e3e96.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_e3e96] Error 1
gmake[1]: Leaving directory `/home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_e3e96/fast] Error 2

File /home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_0f3b9/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_0f3b9.dir/build.make CMakeFiles/cmTC_0f3b9.dir/build
gmake[1]: Entering directory `/home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_0f3b9.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_0f3b9.dir/CheckFunctionExists.c.o   -c /usr/share/cmake3/Modules/CheckFunctionExists.c
Linking C executable cmTC_0f3b9
/usr/bin/cmake3 -E cmake_link_script CMakeFiles/cmTC_0f3b9.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=pthread_create    -rdynamic CMakeFiles/cmTC_0f3b9.dir/CheckFunctionExists.c.o  -o cmTC_0f3b9 -lpthreads 
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_0f3b9] Error 1
gmake[1]: Leaving directory `/home/rouquett/tools/EternalTerminal/build/CMakeFiles/CMakeTmp'
gmake: *** [cmTC_0f3b9/fast] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions