deploy

“ERROR: Failed to build gem native extension” while installing DeployGate

Posted on Updated on

Being a fan of Github helped boost my interest in DeployGate purely because of using the Mac terminal to upload files is (while geeky) fun. All you do is login with a Github account (or Twitter or just sign up the old fashion way), then install the package into your library.

On the top of the page, click Developer Tools > Developer Center and you get to a page like this below:

スクリーンショット 2015-06-17 11.32.46

then click “Read How-Tos” ( https://deploygate.com/docs/cli )

The problem
I had a problem installing mine because of missing Ruby header file libraries like below

スクリーンショット 2015-06-17 11.37.40

Strange …

Solution / steps taken
After taking a few minutes to Google around I came across this webpage (Japanese):
http://qiita.com/yuku_t/items/30015dba2b6497b80074

Looks like we have to install XCode again and agree to their license. So go ahead and hit the command below in your terminal.

xcode-select --install

Now I try to install dgate again but no luck.
スクリーンショット 2015-06-17 11.41.03

After googling again ( http://ameblo.jp/siroikinoko/entry-11059282205.html ) it turns out I need to update my Ruby library:

sudo gem install rubygems-update

This time I finally got somewhere after hitting the same command to install dgate:

スクリーンショット 2015-06-17 11.43.43

Sweet!

Advertisements