Error Installing Json
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 25 Star 408 Fork 162 flori/json Code Issues 60 Pull requests 15 Projects 0
Error Installing Json Error Failed To Build Gem Native Extension
Wiki Pulse Graphs New issue json-1.8.3 Gem::Ext::BuildError: ERROR: Failed to build error installing json windows gem native extension. #253 Open yashwinkumar opened this Issue Jul 31, 2015 · 85 comments Projects None yet error installing json failed to build gem native extension Labels None yet Milestone No milestone Assignees No one assigned 74 participants and others yashwinkumar commented Jul 31, 2015 Installing json 1.8.3 with native extensions Gem::Ext::BuildError: ERROR:
Update Your Path To Include Build Tools
Failed to build gem native extension. /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-15743-prqh44.rb extconf.rb Cannot allocate memory - /usr/local/rvm/rubies/ruby-2.2.2/bin/ruby -r ./siteconf20150731-15743-prqh44.rb extconf.rb 2>&1 Gem files will remain installed in /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/gems/json-1.8.3 for inspection. Results logged to /home/projects/individ/releases/20150730121841/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0/json-1.8.3/gem_make.out An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that gem install json -v '1.8.3' succeeds before bundling. 👍 4 purezen commented Aug
Installerror The 'json' Native Gem Requires Installed Build Tools
15, 2015 I have the same issue. Am on Yosemite (Mac) and Ruby 2.2.2. alaouy commented Aug 22, 2015 The same issue on ubuntu-trusty-64 running ruby 2.2.3. the solution is to install libgmp3-dev. sudo apt-get install libgmp3-dev 👍 41 😄 9 🎉 11 😕 1 ❤️ 25 snicky commented Aug 24, 2015 Thanks alaouy! sivagollapalli commented Aug 25, 2015 @alaouy Thanks. elcisko commented Aug 25, 2015 thanks!!! jogaco commented Sep 10, 2015 Good tip! DRAKUN commented Sep 11, 2015 Hi i have the same problem on mac osx10.10 please someone can help , i search solution but i dont see nothing phsilbr commented Sep 15, 2015 Thanks a lot! evaldasg commented Sep 18, 2015 thanks @alaouy 👍 gabrielmedina commented Sep 23, 2015 thanks! MannyCrisostomo commented Sep 24, 2015 Thanks @alaouy, God bless you man! xristos commented Sep 25, 2015 Hi, I have the same exact problem in Windows7. Any help would be greatly appreciated! Thanks in advance! zealot128 referenced this issue in dresden-weekly/ansible-rails Sep 26, 2015 Merged New standard package for Ruby 2.2.3 #18 shabrin123 commente
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 gem install json 1.8.3 error this site About Us Learn more about Stack Overflow the company Business Learn
Bundle Install Json
more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question can't install json gem 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 https://github.com/flori/json/issues/253 Can't install JSON gem up vote 9 down vote favorite 2 I need to install json because I get this error: Could not find json-1.4.6 in any of the sources I ran gem install json and bundle install but I was only able to install json-1.5.1 when I need json-1.4.6 I have gem 'json', '1.4.6' in my gemfile, so I'm not sure what's http://stackoverflow.com/questions/5216278/cant-install-json-gem going on... UPDATE I get this error: Installing json (1.4.6) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/fileutils.rb:1216:in `chmod': Operation not permitted - /Library/Ruby/Gems/1.8/gems/json-1.4.6/CHANGES (Errno::EPERM) ruby gem bundler share|improve this question edited Sep 18 '13 at 17:20 Bonifacio2 1,33031331 asked Mar 7 '11 at 5:45 Justin Meltzer 3,5802182152 add a comment| 5 Answers 5 active oldest votes up vote 7 down vote accepted Why did you run gem install json at all? Bundler takes care of that for you and will ensure that the correct version of each gem is installed (since sometimes dependencies require an older version). Run gem uninstall json bundle install Also ensure you have source 'https://rubygems.org' at the top of your Gemfile. As for the permissions info, you may have to run gem and bundle commands with sudo. By the way, I highly recommend taking a look at and using RVM, particularly the gemsets feature. It will make your life infinitely better when developing Ruby apps. If you decide to do so, I'd also suggest trashing all the gems you've install using the system Ruby by running sudo rm -rf /Library/Ruby/Gems/1.8/. It's also important that when using RVM you don't hav
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and http://stackoverflow.com/questions/29578142/how-to-install-json-gem-failed-to-build-gem-native-extensionmac-10-10 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 https://teamtreehouse.com/community/error-occurred-while-installing-json-182-and-bundler-cannot-continue 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 error installing minute: Sign up How to install json gem - Failed to build gem native extension(mac 10.10) up vote 20 down vote favorite 2 OS: Mac OS X 10.10.3 XCode: Latest with command line tools installed (version 6.3) Rails: version 4.2.1 Ruby: version 2.2.1 I was trying to generate the routes for a project I am working on (been doing that on error installing json regular basis), when I got an error message, with a recommendation that I do bundle install and bundle exec. I did, and this time around, the process broke off while compiling the JSON Gem (version 1.7.7). Doing some research on StackOverflow, the recommendation was to update the Xcode's command line tools, and I did, but that did not solve the problem. I tried installing the JSON version 1.7.7 separately, and it failed, telling me to look for the error log in: /Users/zwb/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150411-36070-1t083xl.rb extconf.rb creating Makefile 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/zwb/.rvm/rubies/ruby-2.2.1/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 ruby-on-rails ruby json xcode osx share|improve
i have a problem when i generate the rails app. I use the sane version of ruby and rails of the course build-a-simple-ruby-on-rails-application Gem::Ext::BuildError: ERROR: Failed to build gem native extension. C:/Ruby193/bin/ruby.exe -r ./siteconf20150330-5036-nrllhf.rb extconf.rb creating Makefile make clean Makefile:165: *** target pattern contains no %'. Stop. make Makefile:165: *** target pattern contains no%'. Stop. make failed, exit code 2 Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/json-1.8.2 for inspection. Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.1/json-1.8.2/gem_make.out An error occurred while installing json (1.8.2), and Bundler cannot continue. Make sure that gem install json -v '1.8.2' succeeds before bundling. maxwoelfle 2,924 Points maxwoelfle maxwoelfle 2,924 Points >1y ago First you should try $ sudo gem install json -v '1.8.2' in my case (Ubuntu 14.04) that didn't work directly and I had to do this: $ sudo apt-get install ruby-dev and then I could install the gem and continue. Had one more problem that was fixed by: $ sudo apt-get install libsqlite3-dev Hope that helps. Posting to the forum is only allowed for members with active accounts. Please sign in or sign up to post. Our mission is to bring affordable, technology education to people everywhere, in order to help them achieve their dreams and change the world. Our Company About Us Contact Us Community Treehouse Stories Student Perks Treehouse Blog Affiliate Program Careers Topics HTML CSS Design JavaScript Ruby PHP WordPress iOS Android Development Tools Business Tracks Web Design Web Development Rails Development PHP Development iOS Development Android Development WordPress Development Starting a Business Treehouse Blog About Treehouse Privacy Policy Terms & Conditions © 2016 Treehouse Island, Inc. Sign in Email Address Password I forgot my password Sign in