2016-02-21 74 views
0

我是Rails的新手,并试图在我的Rails 4.2.4项目上安装条纹宝石来处理信用卡付款。Bundler错误尝试在Rails上安装条纹宝石4.2.4

在我的Gemfile我已经添加了gem 'stripe', '~> 1.36'

然而,当我运行bundle install,我得到的错误在我的截图来对下面:

Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.Check the mkmf.log file for more details. You may need configuration options. 

The compiler failed to generate an executable file. (RuntimeError) 

请参阅我的Gemfile的封闭的屏幕截图,也我的终端。

我将不胜感激,请协助。

enter image description here

enter image description here

+0

你为什么要编辑这个? –

回答

1

它看起来像一些基本的工具,可以从系统中丢失。目前还不清楚在进入新宝石之前,您在这一点上有多少工作。不过,假设您在Mac上,我建议您查看these instructions。您可能还需要使用xcode-select --install安装的命令行工具。

+0

嘿,约翰,我已经安装了Xcode –

+0

我已经得到了这一切 –

+0

约翰功劳给你先生,当我打开我的Xcode许可证需要续约。我这样做,它的工作,非常感谢你。 –