Error Installing Json Rails
Contents |
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 error installing rails the json native gem Learn more about Stack Overflow the company Business Learn more about hiring developers
Error Installing Rails Json Native Gem Windows
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow rails json error handling 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 Cannot install JSON gem in rails using windows error installing json error failed to build gem native extension up vote 12 down vote favorite 5 I am doing a bundle install and all of the gems work fine except JSON when it get to the JSON gem I receive this error. Installing json (1.6.1) with native extensions c:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:55 2:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::E xtensionBuildError) c:/Ruby192/bin/ruby.exe extconf.rb checking for re.h... *** extconf.rb failed *** Could not create
Error Installing Json The 'json' Native Gem Requires Installed Build Tools
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. Any idea on what could be causing this error? ruby-on-rails ruby gem share|improve this question edited Jan 26 '12 at 14:34 Andy 11.3k72665 asked Oct 15 '11 at 21:28 Ray A. 81117 add a comment| 4 Answers 4 active oldest votes up vote 16 down vote You are working with Windows, so the RubyInstaller Development Kit may help you: http://rubyinstaller.org/add-ons/devkit/ The devkit installs a C-compiler (and some other stuff) to compile C-written parts. Install it and try again to install the gem - perhaps with option --platform=ruby. Details can be found at https://github.com/oneclick/rubyinstaller/wiki/Development-Kit share|improve this answer answered Oct 15 '11 at 22:04 knut 17.1k24484 5 This is the right answer but be sure to do gem update --system or you will still have problems with the rubyinstaller –pguardiario Oct 16 '11 at 2:55 1 Nice, solved my problem with DevKit +1 –a5his Jan 12 '12 at 17:29 2 There's even a Chocolatey NuGet installer for devkit! chocolatey.org/packages/ruby.devkit –mcandre Mar 22 '13 at 13:24 add a comment| up vote 3 down vote That's
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings ruby error installing json and policies of this site About Us Learn more about Stack Overflow error installing rails mac the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags
Error Installing Rails Failed To Build Gem Native Extension Ubuntu
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 http://stackoverflow.com/questions/7780756/cannot-install-json-gem-in-rails-using-windows takes a minute: Sign up Error installing json gem: The 'json' native gem requires installed build tools up vote 1 down vote favorite 1 When i'm trying to install this gem it claims that i need to have a devkit installed although i am sure i do have it. It also suggests that i need to update my systems variables http://stackoverflow.com/questions/25060514/error-installing-json-gem-the-json-native-gem-requires-installed-build-tools in PATH which i have directly linked to the devkit file in ruby. I have seen other questions on Stack Overflow and they didn't work with my issue. here is the full error message: C:\Users\Mahamoud>gem install json ERROR: Error installing json: 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' I've tried uninstalling and re installing ruby and still no result. i have my devkit located in the C:\Ruby193\bin ruby json windows gem share|improve this question edited Jul 31 '14 at 16:45 asked Jul 31 '14 at 13:46 Mahamo101 18115 add a comment| 1 Answer 1 active oldest votes up vote 4 down vote accepted There are detailed steps for installing DevKit here: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit And to test that your installation is working correctly, you are supposed to try this: gem install json --platform=ruby So, you should already have json installed. Instead of reinstalling ruby, I would try reinstalling DevKit...and follow the directions EXACTLY. share|improve this answer edited Jul 31 '14
Sign in Pricing Blog Support Search GitHub This repository Watch 2,290 Star 33,014 Fork https://github.com/rails/rails/issues/23016 13,433 rails/rails Code Issues 535 Pull requests 686 Projects 0 Pulse Graphs New issue Json gem not installing in mac osx. #23016 Closed kirubaebe opened http://www.systemroot.ca/2012/07/how-to-install-ruby-on-rails-in-windows/ this Issue Jan 11, 2016 · 2 comments Projects None yet Labels third party issue Milestone No milestone Assignees No one assigned error installing 5 participants kirubaebe commented Jan 11, 2016 I am having Mac os x 10.11... But when i am trying to install the json gem then it is showing like this... Installing json 1.7.7 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/kirubaebenezerramanathan/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20160111-86468-143vkc3.rb extconf.rb creating Makefile error installing json make "DESTDIR=" clean make "DESTDIR=" compiling generator.c In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ /Users/kirubaebenezerramanathan/.rbenv/versions/2.2.3/include/ruby-2.2.0/ruby/intern.h:793:9: note: macro 'rb_str_new' defined here #define rb_str_new(str, len) extension ( \ ^ In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const char , long)' [-Wint-conversion] VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ ~~~~~~~~~~ 1 warning and 1 error generated. make: ** [generator.o] Error 1 make failed, exit code 2 I have googled and updated the version of json 1.7.7 to 1.8.1 again it is showing the same... Also it is showing incompatible version with Ruby 2.x.... maclover7 added the third party issue label Jan 11, 2016 Strnadj commented Jan 11, 2016 @kirubaebe Please check: flori/json#229 They fixed your issue in 1.8.2. This is not an rails issue actu
& Rails — 20 — how to, install, rails, ruby, ruby on rails, windows I recently started playing around with Ruby and Rails. I haven't done much with it yet short of these CodeSchool courses, but it seems really powerful. I did run into a bit of a hiccup when installing it, though, so I thought I'd write a quick post on how to get it installed in windows. Just a quick note: as of this writing the latest version of Ruby is 1.9.3 Step 1 - Get The Files Ok, the first thing you need to do is get the files you're going to install. A quick search for "Ruby on Rails download" will lead you to this page: http://rubyonrails.org/download. The page tells you to download Ruby and RubyGems, but you'll also need one more file. The list of files you need are: Ruby: rubyinstaller-1.9.3-p194.exe RubyGems: Click the "Zip" button at the top (1.8.24 as of this writing) Ruby DevKit: DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe Note these files are the latest versions as of this writing. You may see newer ones if they have been updated. OK, so you have the three installer files now, so let's get started. Step 2 - Install Ruby This is pretty straight forward. Open the Ruby installer (rubyinstaller-1.9.3-p194.exe) and the first thing you need to do is review and accept the license agreement: Then click "Next >" and you'll be given a choice on where to install it to. I don't like to clutter up my C: drive, so I installed it to C:\langs\Ruby193. You can keep it as the default or put it wherever you want. You'll probably want to check the three tick boxes as well. Install Tcl/Tk support - This installs libraries for making GUI applications with Ruby Add Ruby executables to your PATH - This will allow you to run "ruby" and other ruby exes from any directory in the command prompt. Associate .rb and .rbw files with this ruby installation - The only reason you may not want this is if th