[英]Getting following error An error occurred while installing json (1.8.1), and Bundler cannot continue
I am trying to create a new rails app. 我正在尝试创建一个新的Rails应用程序。 But I am getting following error while running bundle install:
但是运行捆绑安装时出现以下错误:
An error occurred while installing json (1.8.1), and Bundler cannot continue.
安装json(1.8.1)时发生错误,并且Bundler无法继续。
I tried various options like xcode-select --install
, rm -rf test
as given in previously asked questions but without success. 我尝试了各种选项,例如
xcode-select --install
, rm -rf test
如先前的问题中给出的那样,但是没有成功。
Please help me in resolving this issue. 请帮助我解决此问题。 I am stuck because of this error.
因为这个错误,我被卡住了。
There is a problem with xcode if you are using MacOS X 10.8. 如果您使用的是MacOS X 10.8,则xcode存在问题。 You can try to solve a problem with this manual: http://robots.thoughtbot.com/the-hitchhikers-guide-to-riding-a-mountain-lion
您可以尝试使用本手册解决问题: http : //robots.thoughtbot.com/the-hitchhikers-guide-to-riding-a-mountain-lion
Also, there can be a problem with superuser. 另外,超级用户可能会有问题。 Try to install json with sudo.
尝试使用sudo安装json。
sudo gem install json -v '1.8.1'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.