简体   繁体   中英

Bundler error trying to install stripe gem on Rails 4.2.4

I am new to Rails and trying to install the stripe gem onto my Rails 4.2.4 project to process credit card payments.

In my Gemfile I've added gem 'stripe', '~> 1.36'

However, when I run bundle install , I get the error in my screenshot below pertaining to:

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)

Please see enclosed screenshot of my Gemfile and also my terminal.

I would be grateful for assistance please.

在此处输入图片说明

在此处输入图片说明

It looks like some basic tools may be missing from your system. It's not clear how much you've got working at this point before progressing to the new gem. However assuming you are on a Mac I recommend looking at these instructions . You may also need the command-line tools installed using xcode-select --install .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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