{"id":7322,"date":"2014-06-07T02:25:09","date_gmt":"2014-06-07T02:25:09","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/rails-one-month-rails-bundle-install-failure-creating-new-application-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:25:09","modified_gmt":"2014-06-07T02:25:09","slug":"rails-one-month-rails-bundle-install-failure-creating-new-application-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/rails-one-month-rails-bundle-install-failure-creating-new-application-collection-of-common-programming-errors\/","title":{"rendered":"Rails (One Month Rails) &ldquo;Bundle Install&rdquo; Failure, creating new application-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve been scouring the web all day for a solution but can&#8217;t seem to find a fix for this particular issue; I&#8217;ve seen nearly identical queries but I had no success with those solutions. I&#8217;ve just started One Month Rails and every time I try to create a new application like so:<\/p>\n<pre><code>Jaimess-MacBook-Pro:Desktop Jaimes$ rails new pinteresting\n      create  \n      create  README.rdoc\n      create  Rakefile\n      create  config.ru\n      create  .gitignore\n      create  Gemfile\n      create  app\n      create  app\/assets\/javascripts\/application.js\n      create  app\/assets\/stylesheets\/application.css\n      create  app\/controllers\/application_controller.rb\n      create  app\/helpers\/application_helper.rb\n      create  app\/views\/layouts\/application.html.erb\n      create  app\/assets\/images\/.keep\n      create  app\/mailers\/.keep\n      create  app\/models\/.keep\n      create  app\/controllers\/concerns\/.keep\n      create  app\/models\/concerns\/.keep\n      create  bin\n      create  bin\/bundle\n      create  bin\/rails\n      create  bin\/rake\n      create  config\n      create  config\/routes.rb\n      create  config\/application.rb\n      create  config\/environment.rb\n      create  config\/secrets.yml\n      create  config\/environments\n      create  config\/environments\/development.rb\n      create  config\/environments\/production.rb\n      create  config\/environments\/test.rb\n      create  config\/initializers\n      create  config\/initializers\/backtrace_silencers.rb\n      create  config\/initializers\/cookies_serializer.rb\n      create  config\/initializers\/filter_parameter_logging.rb\n      create  config\/initializers\/inflections.rb\n      create  config\/initializers\/mime_types.rb\n      create  config\/initializers\/session_store.rb\n      create  config\/initializers\/wrap_parameters.rb\n      create  config\/locales\n      create  config\/locales\/en.yml\n      create  config\/boot.rb\n      create  config\/database.yml\n      create  db\n      create  db\/seeds.rb\n      create  lib\n      create  lib\/tasks\n      create  lib\/tasks\/.keep\n      create  lib\/assets\n      create  lib\/assets\/.keep\n      create  log\n      create  log\/.keep\n      create  public\n      create  public\/404.html\n      create  public\/422.html\n      create  public\/500.html\n      create  public\/favicon.ico\n      create  public\/robots.txt\n      create  test\/fixtures\n      create  test\/fixtures\/.keep\n      create  test\/controllers\n      create  test\/controllers\/.keep\n      create  test\/mailers\n      create  test\/mailers\/.keep\n      create  test\/models\n      create  test\/models\/.keep\n      create  test\/helpers\n      create  test\/helpers\/.keep\n      create  test\/integration\n      create  test\/integration\/.keep\n      create  test\/test_helper.rb\n      create  tmp\/cache\n      create  tmp\/cache\/assets\n      create  vendor\/assets\/javascripts\n      create  vendor\/assets\/javascripts\/.keep\n      create  vendor\/assets\/stylesheets\n      create  vendor\/assets\/stylesheets\/.keep\n         run  bundle install\n<\/code><\/pre>\n<p>That all goes well and once the bundle install finishes I get this labyrinthine error message<\/p>\n<pre><code>Fetching gem metadata from https:\/\/rubygems.org\/..........\nFetching additional metadata from https:\/\/rubygems.org\/..\nResolving dependencies...\nUsing rake 10.3.1\nUsing i18n 0.6.9\nUsing json 1.8.1\nUsing minitest 5.3.3\nUsing thread_safe 0.3.3\nUsing tzinfo 1.1.0\nUsing activesupport 4.1.1\nUsing builder 3.2.2\nUsing erubis 2.7.0\nUsing actionview 4.1.1\nUsing rack 1.5.2\nUsing rack-test 0.6.2\nUsing actionpack 4.1.1\nUsing mime-types 1.25.1\nUsing polyglot 0.3.4\nUsing treetop 1.4.15\nUsing mail 2.5.4\nUsing actionmailer 4.1.1\nUsing activemodel 4.1.1\nUsing arel 5.0.1.20140414130214\nUsing activerecord 4.1.1\nUsing bundler 1.6.1\nUsing coffee-script-source 1.7.0\nUsing execjs 2.0.2\nUsing coffee-script 2.2.0\nUsing thor 0.19.1\nUsing railties 4.1.1\nUsing coffee-rails 4.0.1\nUsing hike 1.2.3\nUsing multi_json 1.10.0\nUsing jbuilder 2.0.7\nUsing jquery-rails 3.1.0\nUsing tilt 1.4.1\nUsing sprockets 2.11.0\nUsing sprockets-rails 2.1.3\nUsing rails 4.1.1\nUsing rdoc 4.1.1\nUsing sass 3.2.19\nUsing sass-rails 4.0.3\nUsing sdoc 0.4.0\nUsing spring 1.1.3\n\nGem::Ext::BuildError: ERROR: Failed to build gem native extension.\n\n    \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/bin\/ruby extconf.rb \nchecking for sqlite3.h... *** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of necessary\nlibraries and\/or headers.  Check the mkmf.log file for more details.  You may\nneed configuration options.\n\nProvided configuration options:\n    --with-opt-dir\n    --without-opt-dir\n    --with-opt-include\n    --without-opt-include=${opt-dir}\/include\n    --with-opt-lib\n    --without-opt-lib=${opt-dir}\/lib\n    --with-make-prog\n    --without-make-prog\n    --srcdir=.\n    --curdir\n    --ruby=\/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/bin\/ruby\n    --with-sqlite3-dir\n    --without-sqlite3-dir\n    --with-sqlite3-include\n    --without-sqlite3-include=${sqlite3-dir}\/include\n    --with-sqlite3-lib\n    --without-sqlite3-lib=${sqlite3-dir}\/lib\n    --enable-local\n    --disable-local\n\/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError)\nYou have to install development tools first.\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:587:in `try_cpp'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:1120:in `block in find_header'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:918:in `block in checking_for'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:351:in `block (2 levels) in postpone'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:321:in `open'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:351:in `block in postpone'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:321:in `open'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:347:in `postpone'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:917:in `checking_for'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/mkmf.rb:1119:in `find_header'\n    from extconf.rb:35:in `'\n\nextconf failed, exit code 1\n\nGem files will remain installed in \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1\/gems\/sqlite3-1.3.9 for inspection.\nResults logged to \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1\/extensions\/x86_64-darwin-12\/2.1.0-static\/sqlite3-1.3.9\/gem_make.out\nAn error occurred while installing sqlite3 (1.3.9), and Bundler cannot continue.\nMake sure that `gem install sqlite3 -v '1.3.9'` succeeds before bundling.\n         run  bundle exec spring binstub --all\n\/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/resolver.rb:352:in `resolve': Could not find gem 'sqlite3 (&gt;= 0) ruby' in the gems available on this machine. (Bundler::GemNotFound)\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/resolver.rb:165:in `start'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/resolver.rb:129:in `resolve'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/definition.rb:203:in `resolve'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/definition.rb:133:in `specs'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/definition.rb:178:in `specs_for'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/definition.rb:167:in `requested_specs'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/environment.rb:18:in `requested_specs'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/runtime.rb:13:in `setup'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler.rb:120:in `setup'\n    from \/Users\/Jaimes\/.rvm\/gems\/ruby-2.1.1@global\/gems\/bundler-1.6.1\/lib\/bundler\/setup.rb:17:in `'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'\n    from \/Users\/Jaimes\/.rvm\/rubies\/ruby-2.1.1\/lib\/ruby\/2.1.0\/rubygems\/core_ext\/kernel_require.rb:55:in `require'\nJaimess-MacBook-Pro:Desktop Jaimes$ \n<\/code><\/pre>\n<p>I&#8217;ve seen a few responses elsewhere on installing sqlite3 but none have worked here, one in particular involving a &#8216;yum&#8217; command which goes unrecognized when I plug it in:<\/p>\n<pre><code>yum install sqlite-devel\n<\/code><\/pre>\n<p>After which I only get:<\/p>\n<pre><code>-bash: yum: command not found\n<\/code><\/pre>\n<p>I&#8217;m at a complete loss for what I&#8217;m doing wrong or what I&#8217;ve overlooked, needing a fresh pair of eyes from a more seasoned ruby programmer!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been scouring the web all day for a solution but can&#8217;t seem to find a fix for this particular issue; I&#8217;ve seen nearly identical queries but I had no success with those solutions. I&#8217;ve just started One Month Rails and every time I try to create a new application like so: Jaimess-MacBook-Pro:Desktop Jaimes$ rails [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7322","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7322"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7322\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}