-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Error installing bundle (on json-1.8.1) #4462
Comments
This issue seems to be similar to this one. May I ask, what suggested fixes have you tried so far? |
Well, I just tried: 'bundle update':
and now
Closing issue.. |
|
💥 The two solutions above are dangerous Running A safer solution would be to run
Sorry for the thumbs downs but I guess they point to this comment :P |
Further to @pferdefleisch 's comment - a single |
I have been trying these suggestions and still get the error...any suggestions? Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby -r ./siteconf20170107-16179-1uc3h4p.rb extconf.rb current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator make failed, exit code 2 Gem files will remain installed in /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.3 for inspection. An error occurred while installing json (1.8.3), and Bundler cannot continue. |
@ I heard last night at my local ruby meetup that someone was having issues with JSON on Ruby 2.4. It's super new. Probably need to wait for a patch. |
I was able to install newest version (2.0.2) of |
yes, i have success with gem install json -v '2.0.2' but when running bundle install in /var/www/html/snorby it always errors out with 'gem install json -v '1.8.3' and Bundler cannot continue i'm new to RoR...where would I find out if JSON has been patched? |
There's some gem that requires older version of the If you don't need the features from ruby 2.4, I'd suggest you stay with 2.3.x and give some time for gem devs to update dependencies. Edit: this might help ruby/json#308 (comment) |
What's your platform? Personally I use RVM to handle multiple ruby
versions on same machine.
On Tue, Jan 10, 2017, at 02:05, jb61264 wrote:
Thanks hasanen, how does one install the older version? I first tried
1.9.3 and then 2.2.0 and 2.4.0 thinking that the new install just
always overrode the previous...does the last installed version always
just overwrite and become the one that is being use?
— You are receiving this because you commented. Reply to this email
directly, view it on GitHub[1], or mute the thread[2].
|
I am on Ubuntu 16.0.4 |
In order to use specific version of ruby, instead of the platform's default, you need some kind of tool to manage different version. As I said, I use RVM, but there's also rbenv which works a bit differently. Check them out and choose which you find better for your needs. Once you made your choise, use it to install ruby 2.3.3 and you can continue using version 1.8.3 of |
well unfortunately, that is not resolving my issue...I did install RVM, so at least I have that now :) I ran rvm install ruby-2.3.3 and it notified me that I already had 2.3.3 installed...so I ran rvm use ruby-2.3.3 and it verified that I was now using ruby 2.3.3. When I go back to my /var/www/html/snorby directory and run "bundle install" I get the same dang message about the stupid json 1.8.3 gem I am submitting a new issue at: #5320 as I am seeing a new error message now |
I got here via Slate - slatedocs/slate#670 I am trying ruby:2.2-onbuild now instead of latest and it seems to get further. |
I was having the same error. Deleted Gemfile.lock and then did bundle install. Worked like a charm. |
Deleting Gemfile.lock has the same effect as running |
I tried that but was getting the same error. But after deleting the file it work. A quirk maybe? I don't know a thing about ruby ecosystem so I'll take your word on it jason expert ;) |
Great! Save me a ton of time! |
great!~~ |
I ultimately had an issue when I tried to install manually that finally I got this text which fixed it for me. It was bouncing between the json error and a nokogiri error. Hope this helps someone. The file "/usr/include/iconv.h" is missing in your build environment, To install Command Line Tools, try running |
Well I have read everything I can find on BeEF, watched tuts, and I STILL get various versions of this error and installs give errors. ANY help is GREATLY appreciated, I am frustrated as hell at this point but stubborn. Here is my error when I try to run ./beef: Traceback (most recent call last): Then if I try ti run bundle install I get this error: Makefile:242: recipe for target 'generator.o' failed make failed, exit code 2 Gem files will remain installed in /usr/share/beef-xss/debian/gems/ruby/2.5.0/gems/json-1.8.1 for An error occurred while installing json (1.8.1), and Bundler cannot continue. In Gemfile: PLEASE HELP... |
The issue above was to do with @gamut - I don't have much information, but it looks like you have an issue with the I'm going to lock this issue as the original problem turned out not to be with Bundler, and because it ranks highly on Google and is a frequent red-herring. In general, if you're reading this and have native extension install failing, it's likely that the problem is with the gem you're installing, not Bundler. |
Error installing:
Error:
I've tried multiple reinstalls and suggested fixes. I tried:
gem install json -v '1.8.1'
, but errors:The text was updated successfully, but these errors were encountered: