【发布时间】:2016-10-02 20:17:18
【问题描述】:
我在 ruby 版本 2.1.10,OSX El Capitan 遇到这个问题,错误描述如下:
使用原生扩展安装 bcrypt-ruby 3.1.2
Gem::Ext::BuildError: ERROR: 未能构建 gem 原生扩展。
checking for ruby/util.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling bcrypt_ext.c
compiling crypt.c
compiling crypt_blowfish.c
compiling crypt_gensalt.c
compiling wrapper.c
linking shared-object bcrypt_ext.bundle
ld: warning: directory not found for option '- L/Users/travis/.sm/pkg/active/lib'
make "DESTDIR=" install
make: /usr/local/bin/gmkdir: No such file or directory
make: *** [.RUBYARCHDIR.time] Error 1
make install failed, exit code 2
【问题讨论】:
标签: ruby-on-rails ruby macos