Error installing json 1.7.5 in rails

I am trying to install the latest version of json using the gem bundle installation and this leads to an error. I am trying to install aptana studio 3 in the workspace.

I get the following error: can someone shed some light on this problem -

Install json (1.7.5) with native extensions Gem :: Installer :: ExtensionBuildError: ERROR: Failed to create native extension gem.

An error occurred while installing json (1.7.5), and the Bundler cannot continue. Make sure gem install json -v '1.7.5' succeeds before binding.

After looking at this error, I just ran the json installation, and it works fine, but json doesn't seem to install.

- sandesh

+4
source share
2 answers

I had the same json 1.7.5 error when creating or installing a package on a new rail 3.2.9 app on ruby ​​1.9.3. This is what worked for me:

  • Get the latest version of Xcode (4.5.2 in my case). Open Xcode. Go to the "Settings" section. Go to the downloads and click on “INSTALL” in the command line tools.
  • In your terminal, run: rvm reinstall 1.9.3
  • Create a new application for rails, you will get the same json 1.7.5 error, but everything is fine. Then open the application and go to your Gemfile. At the top of the file, change source 'https://rubygems.org' to source 'http://rubygems.org'
  • run gem install json -v '1.7.5'
  • run bundle install

This should work, as in my case!

+1
source

I forgot about it. Please check the following questions:

When I try to install sudo gem install json, I get the following error

Why won't the package install json 1.7.4 on OS X 10.8?

You might need to install the Xcode command line tools.

0
source

Source: https://habr.com/ru/post/1437375/


All Articles