Cygwin :: bcrypt-ruby - 错误:无法构建gem原生扩展

时间:2012-10-18 17:44:21

标签: ruby-on-rails installation gem cygwin bcrypt-ruby

当我尝试安装bcrypt-ruby gem时,我收到以下错误

我在Windows 7 32上有Cygwin

$ gem install bcrypt-ruby
Building native extensions.  This could take a while...
ERROR:  Error installing bcrypt-ruby:
    ERROR: Failed to build gem native extension.

    /home/Bartek/.rvm/rubies/ruby-1.9.3-p194/bin/ruby.exe extconf.rb
creating Makefile

make
compiling bcrypt_ext.c
compiling crypt.c
compiling crypt_blowfish.c
compiling crypt_gensalt.c
compiling wrapper.c
In file included from wrapper.c:27:0:
/home/Bartek/.rvm/rubies/ruby-1.9.3-p194/include/ruby-1.9.1/ruby/backward/util.h:2:2:     warnin                                  g: #warning use "ruby/util.h" instead of bare         "util.h"
linking shared-object bcrypt_ext.so
bcrypt_ext.o:bcrypt_ext.c:(.text+0x29): undefined reference to `_ruby_bcrypt'
collect2: ld returned 1 exit status
Makefile:207: recipe for target `bcrypt_ext.so' failed
make: *** [bcrypt_ext.so] Error 1


Gem files will remain installed in /home/Bartek/.rvm/gems/ruby-1.9.3-        p194@ckdatabase/gems/bc                                  rypt-ruby-3.0.1 for inspection.
Results logged to /home/Bartek/.rvm/gems/ruby-1.9.3-p194@ckdatabase/gems/bcrypt-ruby-    3.0.1/e                                  xt/mri/gem_make.out

任何人都知道如何处理它? 我已经尝试了一切。

1 个答案:

答案 0 :(得分:0)

从评论中复制答案,以便从“未答复”过滤器中删除此问题:

  

如果我们让rvm use system一切正常

〜每Bartek S

回答