小编use*_*226的帖子

安装crypt时发生错误(3.1.7)

嗨大家好,运行sudo bundle install时出现错误信息:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
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
clang: error: unknown argument: '-multiply_definedsuppress' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
make: *** [bcrypt_ext.bundle] Error 1

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/bcrypt-3.1.7 for inspection.
Results …
Run Code Online (Sandbox Code Playgroud)

ruby gem bundle bcrypt bundler

5
推荐指数
1
解决办法
1646
查看次数

标签 统计

bcrypt ×1

bundle ×1

bundler ×1

gem ×1

ruby ×1