简体   繁体   English

得到以下错误安装json(1.8.1)时发生错误,并且Bundler无法继续

[英]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 --installrm -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.

相关问题 安装 json (1.8.1) 时出错,Bundler 无法继续 - An error occurred while installing json (1.8.1) and Bundler cannot continue 安装json(1.8.1)时发生错误,Bundler无法继续 - Rails - An error occurred while installing json (1.8.1), and Bundler cannot continue - Rails 安装 json (1.7.6) 时出错,Bundler 无法继续。 - An error occurred while installing json (1.7.6), and Bundler cannot continue. Rails中的“安装json(1.8.0)时发生错误,并且Bundler无法继续” - “An error occurred while installing json (1.8.0), and Bundler cannot continue” in Rails 安装json(1.8.6)时出错,Bundler无法继续 - An error occurred while installing json (1.8.6), and Bundler cannot continue 安装atomic(1.1.16)时发生错误,Bundler无法继续 - An error occurred while installing atomic (1.1.16) and Bundler cannot continue 安装RedCloth(4.2.7)时发生错误,并且Bundler无法继续 - An error occurred while installing RedCloth (4.2.7), and Bundler cannot continue 安装mysql(2.9.1)时出错,Bundler无法继续 - An error occurred while installing mysql (2.9.1), and Bundler cannot continue 安装mysql(2.9.1)时发生错误,Bundler无法继续 - An error occurred while installing mysql (2.9.1) and Bundler cannot continue n在安装atomic(1.1.14)时发生错误,并且Bundler无法继续 - n error occurred while installing atomic (1.1.14), and Bundler cannot continue
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM