Skip to content

Instantly share code, notes, and snippets.

@3h5a9
Created May 16, 2016 20:57
Show Gist options
  • Save 3h5a9/fc0fed15bfb9186d301ad756a265bfe8 to your computer and use it in GitHub Desktop.
Save 3h5a9/fc0fed15bfb9186d301ad756a265bfe8 to your computer and use it in GitHub Desktop.
Bundle Install Error
[smehsan@localhost ~]$ cd Desktop
[smehsan@localhost Desktop]$ ls
App
[smehsan@localhost Desktop]$ cd App
[smehsan@localhost App]$
[smehsan@localhost App]$ rails new two
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/cookies_serializer.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
run bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies............................................
Using rake 11.1.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using nokogiri 1.6.7.2
Using rack 1.6.4
Using mime-types-data 3.2016.0221
Using arel 6.0.3
Installing debug_inspector 0.0.2 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20160517-8126-njp8r.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
rm -f
rm -f debug_inspector.so *.o *.bak mkmf.log .*.time
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -mtune=generic -fPIC -m64 -o debug_inspector.o -c debug_inspector.c
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
Makefile:238: recipe for target 'debug_inspector.o' failed
make: *** [debug_inspector.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/smehsan/.gem/ruby/gems/debug_inspector-0.0.2 for inspection.
Results logged to /home/smehsan/.gem/ruby/extensions/x86_64-linux/debug_inspector-0.0.2/gem_make.out
Using bundler 1.12.3
Installing byebug 9.0.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20160517-8126-md4bgt.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
rm -f
rm -f byebug.so *.o *.bak mkmf.log .*.time
make "DESTDIR="
gcc -I. -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -fPIC -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -mtune=generic -fPIC -m64 -o locker.o -c locker.c
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
Makefile:238: recipe for target 'locker.o' failed
make: *** [locker.o] Error 1
make failed, exit code 2
Gem files will remain installed in /home/smehsan/.gem/ruby/gems/byebug-9.0.3 for inspection.
Results logged to /home/smehsan/.gem/ruby/extensions/x86_64-linux/byebug-9.0.3/gem_make.out
Installing coffee-script-source 1.10.0
Installing execjs 2.6.0
Using thor 0.19.1
Using concurrent-ruby 1.0.2
Installing multi_json 1.12.0
Installing sass 3.4.22
Installing tilt 2.0.4
Installing spring 1.7.1
Installing sqlite3 1.3.11 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20160517-8126-sb7ast.rb extconf.rb
checking for sqlite3.h... *** 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
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib64
/usr/share/ruby/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/share/ruby/mkmf.rb:587:in `try_cpp'
from /usr/share/ruby/mkmf.rb:1113:in `block in find_header'
from /usr/share/ruby/mkmf.rb:911:in `block in checking_for'
from /usr/share/ruby/mkmf.rb:351:in `block (2 levels) in postpone'
from /usr/share/ruby/mkmf.rb:321:in `open'
from /usr/share/ruby/mkmf.rb:351:in `block in postpone'
from /usr/share/ruby/mkmf.rb:321:in `open'
from /usr/share/ruby/mkmf.rb:347:in `postpone'
from /usr/share/ruby/mkmf.rb:910:in `checking_for'
from /usr/share/ruby/mkmf.rb:1112:in `find_header'
from extconf.rb:30:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /home/smehsan/.gem/ruby/gems/sqlite3-1.3.11 for inspection.
Results logged to /home/smehsan/.gem/ruby/extensions/x86_64-linux/sqlite3-1.3.11/gem_make.out
Installing rdoc 4.2.2
Using tzinfo 1.2.2
Using loofah 2.0.3
Using rack-test 0.6.3
Using mime-types 3.0
An error occurred while installing debug_inspector (0.0.2), and Bundler cannot
continue.
Make sure that `gem install debug_inspector -v '0.0.2'` succeeds before
bundling.
run bundle exec spring binstub --all
Bundler::GemNotFound: Could not find gem 'sqlite3' in any of the gem sources listed in your Gemfile or available on this machine.
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/resolver.rb:356:in `block in verify_gemfile_dependencies_are_found!'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/resolver.rb:331:in `each'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/resolver.rb:331:in `verify_gemfile_dependencies_are_found!'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/resolver.rb:200:in `start'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/resolver.rb:184:in `resolve'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/definition.rb:200:in `resolve'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/definition.rb:140:in `specs'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/definition.rb:185:in `specs_for'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/definition.rb:174:in `requested_specs'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/environment.rb:19:in `requested_specs'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/runtime.rb:14:in `setup'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler.rb:95:in `setup'
/usr/local/share/gems/gems/bundler-1.12.3/lib/bundler/setup.rb:19:in `<top (required)>'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in `require'
bundler: failed to load command: spring (/home/smehsan/bin/spring)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment