An error occurred while installing json (1.8.1), and Bundler cannot continue – Rails
Running “bundle update” worked for me.
Running “bundle update” worked for me.
From the RVM support site: RVM installs everything into ~/.rvm. To remove RVM from your system run ‘rm -rf ~/.rvm’. You may have one additional config file in ~/.rvmrc and of course the RVM hook in your bash/zsh startup files. So, just go to the command line and type rm -rf ~/.rvm All the installed gems are in … Read more
It could be that there was a previous Ruby env installed on your system prior to your installation of 2.0? This might have had an existing GEM_PATH that lead to the /1.8 directory which the installation of version 2.0 simply kept. The problem you where likely having, then, was that Passenger/Apache was looking in the … Read more
Its a permissions issue. You could fix it with this: or possibly in your case What does this do: This is telling the system to change the files to change the ownership to the current user. Something must have gotten messed up when something got installed. Usually this is because there are multiple accounts or … Read more
Use the -v flag:
Update: I now have a very detailed step-by-step tutorial for setting up a proper Ruby development environment on a Mac, including a Homebrew troubleshooting section with the most common issues people run into. Although my step-by-step tutorial is guaranteed to work, I also have a script that will save you a lot of time. My tutorial uses a … Read more
below is what I need to do. To run the specs, you’ll need to install RSpec. First, run gem install bundler in the root directory of your project. Then, run bundle install. To run a single spec file, run a command like this: bundle exec rspec spec/00_hello_spec.rb. To run all of the specs at once, run bundle exec rspec. So, … Read more
This is basically a duplicate of this question, where I already posted a detailed answer that solves the problem. Instead of maintaining two separate answers, I thought it would be better to just link to my answer here since the same solution applies: https://stackoverflow.com/a/54873916/928191