Skip to content

Instantly share code, notes, and snippets.

@alexandcote
Created May 10, 2018 15:57
Show Gist options
  • Save alexandcote/9ca4c9e6a437b8079e9e834f99b749b0 to your computer and use it in GitHub Desktop.
Save alexandcote/9ca4c9e6a437b8079e9e834f99b749b0 to your computer and use it in GitHub Desktop.
A issue with hiredis
RubyGems Environment:
- RUBYGEMS VERSION: 2.7.6
- RUBY VERSION: 2.4.4 (2018-03-28 patchlevel 296) [x86_64-darwin17]
- INSTALLATION DIRECTORY: /Users/alexandrecote/.gem/ruby/2.4.4
- USER INSTALLATION DIRECTORY: /Users/alexandrecote/.gem/ruby/2.4.0
- RUBY EXECUTABLE: /opt/rubies/2.4.4/bin/ruby
- EXECUTABLE DIRECTORY: /Users/alexandrecote/.gem/ruby/2.4.4/bin
- SPEC CACHE DIRECTORY: /Users/alexandrecote/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /opt/rubies/2.4.4/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-17
- GEM PATHS:
- /Users/alexandrecote/.gem/ruby/2.4.4
- /opt/rubies/2.4.4/lib/ruby/gems/2.4.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/alexandrecote/.nvm/versions/node/v8.9.4/bin
- /Users/alexandrecote/.gem/ruby/2.4.4/bin
- /opt/rubies/2.4.4/lib/ruby/gems/2.4.0/bin
- /opt/rubies/2.4.4/bin
- /usr/local/bin
- /usr/local/sbin
- /usr/local/opt/coreutils/libexec/gnubin
- /Users/alexandrecote/.zsh/bin
- /usr/local/opt/zplug/repos/paulirish/git-open
- /usr/local/Cellar/zplug/2.4.2/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
current directory: /Users/alexandrecote/.gem/ruby/2.4.4/gems/hiredis-0.6.0/ext/hiredis_ext
/opt/rubies/2.4.4/bin/ruby -r ./siteconf20180510-29109-1bwc65u.rb extconf.rb
cc -std=c99 -pedantic -c -O3 -fPIC -Wall -W -Wstrict-prototypes -Wwrite-strings true net.c
clang: error: no such file or directory: 'true'
make: *** [net.o] Error 1
*** 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/rubies/2.4.4/bin/$(RUBY_BASE_NAME)
extconf.rb:25:in `block in <main>': Building hiredis failed (RuntimeError)
from extconf.rb:23:in `chdir'
from extconf.rb:23:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /Users/alexandrecote/.gem/ruby/2.4.4/gems/hiredis-0.6.0 for inspection.
┃┃ Results logged to /Users/alexandrecote/.gem/ruby/2.4.4/extensions/x86_64-darwin-17/2.4.0-static/hiredis-0.6.0/gem_make.out
┃┃
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:92:in `run'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/ext_conf_builder.rb:46:in `block in build'
┃┃ /opt/rubies/2.4.4/lib/ruby/2.4.0/tempfile.rb:295:in `open'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/ext_conf_builder.rb:30:in `build'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:164:in `block (2 levels) in build_extension'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:163:in `chdir'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:163:in `block in build_extension'
┃┃ /opt/rubies/2.4.4/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:162:in `b
┃┃ uild_extension'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:201:in `block in build_extensions'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:198:in `each'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/ext/builder.rb:198:in `build_extensions'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:774:in `build_extensions'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/rubygems_gem_installer.rb:23:in `build_extensions'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/rubygems/installer.rb:306:in `install'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/source/rubygems.rb:153:in `block in install'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/rubygems_integration.rb:217:in `preserve_paths'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/source/rubygems.rb:142:in `install'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/installer/gem_installer.rb:56:in `install'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/installer/gem_installer.rb:16:in `install_from_spec'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/installer/parallel_installer.rb:162:in `do_install'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/installer/parallel_installer.rb:153:in `block in worker_pool'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/worker.rb:64:in `apply_func'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/worker.rb:59:in `block in process_queue'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/worker.rb:56:in `loop'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/worker.rb:56:in `process_queue'
┃┃ /opt/rubies/2.4.4/lib/ruby/site_ruby/2.4.0/bundler/worker.rb:90:in `block (2 levels) in create_threads'
┃┃
┃┃ An error occurred while installing hiredis (0.6.0), and Bundler cannot continue.
┃┃ Make sure that `gem install hiredis -v '0.6.0'` succeeds before bundling.
┃┃
┃┃ In Gemfile:
┃┃ hiredis
┃┃ Bundler::InstallError: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
@lavoiesl
Copy link

Can you include the /Users/alexandrecote/.gem/ruby/2.4.4/extensions/x86_64-darwin-17/2.4.0-static/hiredis-0.6.0/gem_make.out too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment