2
當我嘗試我安裝bcrypt-ruby的寶石,我得到以下錯誤的Cygwin :: bcrypt - 紅寶石 - 錯誤:無法建立寶石原生擴展
我的Cygwin在Windows 7 32
$ 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- [email protected]/gems/bc rypt-ruby-3.0.1 for inspection.
Results logged to /home/Bartek/.rvm/gems/[email protected]/gems/bcrypt-ruby- 3.0.1/e xt/mri/gem_make.out
任何人都有一個想法如何處理它? 我試過了一切。
如果我們做出解答'RVM使用system'一切工作正常 –
您可能想嘗試使用最新的Ruby版本,但是[Cygwin Ports](http://cygwinports.org/)存儲庫中提供了FWIW,一個預構建的軟件包。 – Yaakov
@BartekS - 如果您想將解決方案作爲自己的答案進行回顧,我會刪除我的答案。 (請參閱http://meta.stackexchange.com/questions/90263/unanswered-question-answered-in-comments,瞭解爲什麼這會有所幫助。)謝謝! – DreadPirateShawn