#CMAKE INSTALL CENTOS 7.2 UPDATE#
It looks like gem need newer glibc which is hard to update on CentOS 7. Build files cannot be regenerated correctly. The compiler feature "cxx_std_17" is not known to CXX compilerĬMake Generate step failed. RUBY_INCLUDE_DIR: /home/deploy/.rbenv/versions/2.7.1/include/ruby-2.7.0 /home/deploy/.rbenv/versions/2.7.1/include/ruby-2.7.0/x86_64-linuxįatal: Not a git repository (or any of the parent directories). OPENSSL_LIBRARIES: /usr/lib64/libssl.so /usr/lib64/libcrypto.so Found OpenSSL: /usr/lib64/libcrypto.so (found version "1.0.2k") Performing Test SNAPPY_HAVE_BMI2 - Failed Performing Test SNAPPY_HAVE_SSSE3 - Failed Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE - Failed Performing Test HAVE_ATTRIBUTE_ALWAYS_INLINE Performing Test HAVE_BUILTIN_CTZ - Success Performing Test HAVE_BUILTIN_EXPECT - Success Performing Test HAVE_CLANG_MBMI2 - Success Performing Test HAVE_CLANG_MAVX - Success Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2 - Failed Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX2 Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX - Failed Performing Test HAVE_VISUAL_STUDIO_ARCH_AVX Looking for lzo1x_1_15_compress in lzo2 - not found Looking for lzo1x_1_15_compress in lzo2 Check if the system is big endian - little endian Searching 16 bit integer - Using unsigned short Looking for pthread_create in pthread - found Looking for pthread_create in pthreads - not found Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed Performing Test CMAKE_HAVE_LIBC_PTHREAD
Found Git: /usr/bin/git (found version "1.8.3.1") Check for working C compiler: /usr/bin/cc - works Check for working C compiler: /usr/bin/cc Check for working CXX compiler: /usr/bin/c++ - works Check for working CXX compiler: /usr/bin/c++ The C compiler identification is GNU 4.8.5 The CXX compiler identification is GNU 4.8.5 Results logged to /home/deploy/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/extensions/x86_64-linux/2.7.0/couchbase-3.0.0/gem_make.outĬentos 7 actually has cmake 3 and when I provide it I receive different error: $ mkdir ~/bin export PATH=~/bin:$PATH ln -s /usr/bin/cmake3 ~/bin/cmake Gem files will remain installed in /home/deploy/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/couchbase-3.0.0 for inspection. To see why this extension failed to compile, please check the mkmf.log which can be found here: Check the mkmf.log file for more details. Stop.ĮRROR: failed to build extension in /tmp/cb-RelWithDebInfo-2.7.1-83-x86_64-linux-3.0.0/libcouchbase.soĬould not create Makefile due to some reason, probably lack of necessary Make: *** No targets specified and no makefile found. Configuring incomplete, errors occurred! cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DRUBY_HDR_DIR=/home/deploy/.rbenv/versions/2.7.1/include/ruby-2.7.0 -DRUBY_ARCH_HDR_DIR=/home/deploy/.rbenv/versions/2.7.1/include/ruby-2.7.0/x86_64-linux -DTAOCPP_JSON_BUILD_TESTS=OFF -DTAOCPP_JSON_BUILD_EXAMPLES=OFF -DSNAPPY_BUILD_TESTS=OFF -DSNAPPY_INSTALL=OFF /home/deploy/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/couchbase-3.0.0/extĬMake Error at CMakeLists.txt:1 (cmake_minimum_required):ĬMake 3.15 or higher is required. build RelWithDebInfo extension 3.0.0 for ruby 2.7.1-83-x86_64-linux This could take a while.ĮRROR: Failed to build gem native extension.Ĭurrent directory: /home/deploy/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/couchbase-3.0.0/ext Here is an exception that I get when I try to install it on a CentOS 7 server: $ gem install couchbaseīuilding native extensions.