Error Installing Json 1.6.5
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Why won't bundler install JSON gem? up vote 33 down vote favorite 8 I get the following error when attempting to run cap production deploy. DEBUG [dc362284] Bundler::GemNotFound: Could not find json-1.8.1.gem for installation DEBUG [dc362284] An error occurred while installing json (1.8.1), and Bundler cannot continue. DEBUG [dc362284] Make sure that `gem install json -v '1.8.1'` succeeds before bundling. It may be important to note that this deployment was working, than I upgraded to Ruby 2.1.0 to remove an encoding error. I upgraded locally which worked fine. I ran rvm install 2.1.0 and rvm use 2.1.0 then changed my .ruby-version file to reflect this Ruby upgrade. The bundle install command works locally, but produces the same above error when I ssh onto the destination server and run this command. If I run gem list I can see this in the list of gems. ... jquery-rails (3.0.4) json (1.8.1) less (2.3.2) ... If I try the recommended solution gem install json -v '1.8.1' Locally and on the destination server I get the following output: Building native extensions. This could take a while... Successfully installed json-1.8.1 Parsing documentation for json-1.8.1 Done installing documentation for json after 0 seconds 1 gem installed So it appears the gem is installed, right? Why is this happening? How can I solve this? Any help would be greatly appreciated. ruby-on-rails gem capistrano bundler share|improve this question edited Jul 5 '14 at 16:06 Donnied 55311637 asked Jan 13 '14 at 15:31 Thomas 1,12521333 What bundle show json gives you? –user2503775 Jan 13 '14 at 15:36 Add gem json, '1.8.1' to Gemfile &ndash
Sign in Pricing Blog Support Search GitHub This repository Watch 133 Star 4,067 Fork 565 sparklemotion/nokogiri Code Issues 158 Pull requests 18 Projects 0 Wiki Pulse Graphs New issue Issues installing Nokogiri 1.6.5 on OS X Yosemite (10.10.1) #1210 Closed adamdullenty opened this Issue Dec 17, 2014 · 16 comments Projects None yet Labels needs more info Milestone No milestone Assignees flavorjones 7 http://stackoverflow.com/questions/21095098/why-wont-bundler-install-json-gem participants adamdullenty commented Dec 17, 2014 Hey, I recently followed this guide to get my brand new MacBook set up in the same way as my Ubuntu box, but switching to chruby instead of rvm: http://andycroll.com/mac/ruby/the-simplest-possible-serious-ruby-on-rails-setup-on-mavericks/ So my environment should be pretty clean. However when trying to 'bundle install' I'm getting https://github.com/sparklemotion/nokogiri/issues/1210 the following error for Nokogiri: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/me/.rubies/ruby-2.1.3/bin/ruby extconf.rb /Users/me/.rubies/ruby-2.1.3/bin/ruby: invalid option -2 (-h will show valid options) (RuntimeError) extconf failed, exit code 1 Gem files will remain installed in /Users/me/.gem/ruby/2.1.3/gems/nokogiri-1.6.5 for inspection. Results logged to /Users/me/.gem/ruby/2.1.3/extensions/x86_64-darwin-14/2.1.0-static/nokogiri-1.6.5/gem_make.out An error occurred while installing nokogiri (1.6.5), and Bundler cannot continue. Since then I have tried all of the relevant code snippets on here http://www.nokogiri.org/tutorials/installing_nokogiri.html with again no luck (and the error message I am seeing is different to the one highlighted on that page anyway) Fairly new to OS X and Macs in general so not overly sure how to proceed. Any ideas would be gratefully received. juliosousa commented Dec 21, 2014 I had a lot of trouble with this installation, but it solved for me: gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2- lib=/usr/lib/ adamdullenty commented Dec 21, 2014 No luck with that unfortunately, similar error: Building
have problems installed required gems. I am running Redmine on Windows XP system. here is the log http://www.redmine.org/boards/2/topics/29070 D:\biz\apps\redmine_trunk>bundle install Fetching source index for http://rubygems.org/ Using rake (0.9.2.2) Using activesupport (2.3.14) Installing rack (1.1.3) Using actionpack (2.3.14) Using actionmailer (2.3.14) Using activerecord (2.3.14) Using activeresource (2.3.14) https://www.experts-exchange.com/questions/27537707/Rails-installation.html Installing coderay (1.0.5) Installing edavis10-object_daddy (0.4.3) Installing fastercsv (1.5.4) Using i18n (0.4.2) Installing json (1.6.5) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. d:/Ruby187/bin/ruby.exe error installing extconf.rb creating Makefile make make: *** No rule to make target `ruby.h', needed by `parser.o'. Stop. Gem files will remain installed in d:/Ruby187/lib/ruby/gems/1.8/gems/json-1.6.5 for inspection. Results logged to d:/Ruby187/lib/ruby/gems/1.8/gems/json-1.6.5/ext/json/ext/parser/gem_make.out An error occured while installing json (1.6.5), and Bundler cannot continue. Make sure that `gem install json -v '1.6.5'` succeeds before bundling. D:\biz\apps\redmine_trunk> Obviously tehre error installing json is a problem with building gem native extensions. This is new to me. I have installed mingw32 with QtCreator and D:\QtSDK\mingw\bin; in in the PATH=. I don't know how to proceed ahead. What do I have to do next? Someone else encountered such problems? Help please... Replies (12) RE: bundle install problems - Added by Jean-Philippe Lang over 4 years ago Remove .bundle/config if present then try: bundle install --without development test rmagick This should skip the json gem installation which is not needed to run Redmine. RE: bundle install problems - Added by Ivan Cenov over 4 years ago Many thanks for your help, Jean-Philippe Lang!It works. Here is the log: D:\biz\apps\redmine_trunk>bundle install --without development test rmagick Fetching source index for http://rubygems.org/ Using rake (0.9.2.2) Using activesupport (2.3.14) Using rack (1.1.3) Using actionpack (2.3.14) Using actionmailer (2.3.14) Using activerecord (2.3.14) Using activeresource (2.3.14) Using coderay (1.0.5) Using fastercsv (1.5.4) Using i18n (0.4.2) Using mysql (2.8.1) Installing net-ldap (0.3.1) Installing pg (0
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > Rails installation ? Want to Advertise Here? Solved Rails installation ? Posted on 2012-01-15 Ruby 1 Verified Solution 6 Comments 825 Views Last Modified: 2012-08-13 Using windows ultimate 64. I installed rails and gem and ruby. when I type rails server I get "could not find gem 'turn <~> 0.8.3' in any of the gem sources listed in your Gemfile. Run 'bundle install' to install missing gems." I ran "bundle install" and after doing a bunch of things it says: Gem::InstallError: The 'json' native gem requires installed build tools. Please update your PATH to include build tools or download the DevKit from 'http://rubyinstaller.org/downloads' and follow the instructions at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit' An error occured while installing json (1.6.5), and Bundler cannot continue. Make sure that `gem install json -v '1.6.5'` succeeds before bundling. What do I do to fix this? 0 Question by:Jess31 Facebook Twitter LinkedIn Google LVL 10 Best Solution byAndrew Doades Download the ruby DevKit: https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe Extract to C:\devkit (this is what I use) Then in command prompt type the Go to Solution 6 Comments LVL 24 Overall: Level 24 Ruby 8 Message Active today Expert Comment by:fridom2012-01-16 Gem::InstallError: The 'json' native gem requires installed build tools. It means this stuff is not written Ruby but some extension. The build tools are make, gcc, probably some lexer and other tools. So it seems you better follow the first link and install the missing stuff. Regards Friedrich 0 Message Active 2 days ago Author Comment by:Jess312012-01-16 I did do that, installed the Development Kit but I get the same e