gem 'bcrypt-ruby'
报错:
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /home/sergio/.rvm/rubies/ruby-2.0.0-p195/bin/ruby extconf.rb creating Makefilemakecompiling wrapper.cIn file included from wrapper.c:27:0:/home/sergio/.rvm/rubies/ruby-2.0.0-p195/include/ruby-2.0.0/ruby/backward/util.h:2:2: 警告: #warning use "ruby/util.h" instead of bare "util.h" [-Wcpp]wrapper.c: 在函数‘crypt_gensalt_rn’中:wrapper.c:204:3: 错误: ‘EINVAL’未声明(在此函数内第一次使用)wrapper.c:204:3: 附注: 每个未声明的标识符在其出现的函数内只报告一次make: *** [wrapper.o] 错误 1
这都是个啥啊。。。
原文地址:怒了,这回 bcrypt-ruby 又出问题了, 感谢原作者分享。 就会犯错误,就会有无数次让自己跌倒的机会出现,