Gem :: Ext :: BuildError:错误:无法构建gem原生扩展 - 分段错误:11

时间:2014-11-21 13:17:36

标签: ruby gem bundler

我正在使用

  ruby 1.9.3p547 (2014-05-14 revision 45962)
  Rails 4.1.6

当我尝试升级bcrypt时

gem install bcrypt -v '3.1.9

gem install bcrypt

我收到错误

make
compiling bcrypt_ext.c
make: *** [bcrypt_ext.o] Segmentation fault: 11

make failed, exit code 2

有什么想法可以解决这个问题吗?

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

/Users/igor/.rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb 
creating Makefile

make  clean

make
compiling bcrypt_ext.c
make: *** [bcrypt_ext.o] Segmentation fault: 11

make failed, exit code 2

Gem files will remain installed in /Users/igor/.rvm/gems/ruby-1.9.3-p547/gems/bcrypt-3.1.9 for inspection.
Results logged to /Users/igor/.rvm/gems/ruby-1.9.3-p547/extensions/x86_64-darwin-13/1.9.1/bcrypt-3.1.9/gem_make.out
An error occurred while installing bcrypt (3.1.9), and Bundler cannot continue.
Make sure that `gem install bcrypt -v '3.1.9'` succeeds before bundling.

0 个答案:

没有答案