简体   繁体   English

Ruby:安装JSON时出错

[英]Ruby : Error while installing JSON

I am trying to install and get running Rails Starter kit . 我正在尝试安装并运行Rails Starter kit On running bundle install , I get the following : Your Ruby version is 2.3.0, but your Gemfile specified 2.1.3 在运行bundle install ,我得到以下信息: Your Ruby version is 2.3.0, but your Gemfile specified 2.1.3

So I have changed this line to ruby '2.3.0' and try again the command : see here . 因此,我已将此行更改为ruby '2.3.0'然后重试命令: 请参见此处

It seems like I am unaible to build the gem native extension, and I don't find any workaround. 似乎我无法构建gem本机扩展,并且找不到任何解决方法。

Note 1 : I have tried with both 2.3 and 2.3.1. 注1:我已经尝试使用2.3和2.3.1。 Note 2 : I have RV. 注2:我有房车。

Thanks! 谢谢!

I may be relating to the 'json' native extension compiling. 我可能与“ json”本地扩展编译有关。 If you're on Mac ensure you've Xcode developer kit installed. 如果您使用的是Mac,请确保已安装Xcode开发人员工具包。 On Linux, a workaround is to have libgmp3-dev library installed ( sudo apt-get install libgmp3-dev ) as indicated in this issue . 在Linux上,一种解决方法是按照此问题中的说明 sudo apt-get install libgmp3-dev库( sudo apt-get install libgmp3-dev )。

For Windows users, DevKit is needed. 对于Windows用户,需要DevKit

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM