Skip to content

Instantly share code, notes, and snippets.

@bwann
Created September 4, 2018 23:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bwann/cbe5775471cc554a788e23fa7053f461 to your computer and use it in GitHub Desktop.
Save bwann/cbe5775471cc554a788e23fa7053f461 to your computer and use it in GitHub Desktop.
Chef gem install rugged 0.27.0 failure
[root@cca47713 g1]# /opt/chef/embedded/bin/gem install /root/g1/rugged-0.27.0.gem -q --no-rdoc --no-ri
checking for pkg-config... yes
-- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/opt/chef/embedded/bin/$(RUBY_BASE_NAME)
--with-sha1dc
--without-sha1dc
--use-system-libraries
extconf.rb:21:in `sys': ERROR: 'cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo ' failed (RuntimeError)
from extconf.rb:83:in `block (2 levels) in <main>'
from extconf.rb:80:in `chdir'
from extconf.rb:80:in `block in <main>'
from extconf.rb:77:in `chdir'
from extconf.rb:77:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/opt/chef/embedded/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/rugged-0.27.0/mkmf.log
/opt/chef/embedded/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/rugged-0.27.0/mkmf.log:
...
...
"cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo "
-- The C compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
...
...
...
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR)
CMake Error at src/CMakeLists.txt:180 (MESSAGE):
Asked for OpenSSL TLS backend, but it wasn't found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment