Vagrant comes with its own embedded ruby, and doesn't use system ruby. So i tried brew install coreutils but it also didn't work for me. I'm trying to get it up and running on my local machine, but getting a few errors when I try to run the server. The latest json does not have that bug, and the issue was never in Bundler. 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. So now I'm completely out of ideas.
After a while I decided to just reinstall rbenv, ruby, rails, bundler, sqlite3 and try again. . As I said, I use , but there's also which works a bit differently. Make sure that gem install json -v '1. You'll either need to live with an older version of json, or update rails and rdoc to handle it.
We are migrating from 1. Have a question about this project? I clicked yes just to see what would happen. Reply to this email directly, view it on GitHub, or mute the thread. I opted out of this option though cause I feel this should be set in the initialization of the container. Please help me out wile installing plugin. This will only update those two gems and their dependencies. Make sure that gem install json -v '1.
. This is a much safer route. If bundle install will not work for you because you recently updated to El Capitan 10. There's some gem that requires older version of the json gem. I'll dig into it some day. I'm not sure if it was something on my end, but it seems I'm still stuck here : Sorry! The error is shown below.
Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Someone else encountered such problems? Hey everyone, I'm trying to set up by ruby on rails development environment and I got up the the point where I created a test app ruby new testapp. An error occurred while installing json 1. A safer solution would be to run bundle update json which in my case still crashed on kgio. When I run bundle install I get: An error occurred while installing json 1. Sorry for the thumbs downs but I guess they point to this comment :P I have been trying these suggestions and still get the error.
Including gem uninstall json with reinstall json -v '1. What do I have to do next? I notice that some of my Jenkins Mac Mini slaves when running the bundle install command install nokogiri 1. Was browsing around and decided to see if I could find another solution. This can occur if you install Vagrant in a folder containing spaces. I tried: gem install json -v '1. The same prompt telling me it needed the command line developer tools came up again and asked me to install once more.
Have a question about this project? Some people said to add gem 'json', '1. The error from Bundler is: An error occurred while installing json 1. The error says to try running gem install json -v '1. You may also want to suggest they add Ruby 2. This will show you more verbose errors. You should be able to see which gem does that, by looking into Gemfile.
When I started installing nokigiri gem or updating , I was bitten by this same issue. But this is not Redmine related. The issue above was to do with json 1. Any ideas how to fix the issue properly when using bundler? It was bouncing between the json error and a nokogiri error. For one of my old Rails 4 application, I wanted to install nokogiri -v 1. My ruby version is 2. What worked for me was with 7.
In the System variables frame, select the Path variable and then click Edit. Replies 12 Many thanks for your help, Jean-Philippe Lang! 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. I really can't wait to start learning Rails : Thanks for the reply by the way! Here is my error when I try to run. We need to install all the gems in app path. Make sure that gem install nokogiri -v '1. Sign up for a free GitHub account to open an issue and contact its maintainers and the community.