我试图在Windows Vista上安装bcrypt-ruby。在Windows上安装bcrypt-ruby gem
到目前为止,我已经能够从安装Visual Studio 2008 Express的MS知识库文章和cl.exe中安装nmake.exe。
不过,我现在遇到这个错误:
cl -nologo -Wall -I. -IC:/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I
C:/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I. -MD -Zi -O2b2xg- -G6 -c -Tcb crypt.c
cl : Command line warning D9035 : option 'Og-' has been deprecated and will be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-G6' bcrypt.c
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(381) : warning C4255: '_get_printf_count_output' : no function prototype given: converting '()' to '(void)'
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdlib.h(215) : warning C4255: '_get_purecall_handler' : no function prototype given: converting '()' to '(void)'
c:\instantrails\ruby\lib\ruby\gems\1.8\gems\bcrypt-ruby-2.1.2\ext\mri\blf.h(37): fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2' Stop.
我已经执行VCVARS32.BAT这大概将设置环境。我怀疑警告和错误是由于安装新版本的Visual Studio所致。
有没有人做过这个成功?我没有Visual Studio 6.0的副本。
我的解决方案是切换到Mac =)在一天左右,如果这是'最好的'解决方案(我不会测试它),我会选择你的答案。这听起来像是一个很好的解决方案。 – Jaryl 2010-03-11 12:49:46
我可以确认该宝石编译和安装DevKit安装正确:http://pastie.org/866429 少一个比切换到Mac的激烈解决方案。 ;) – 2010-03-12 12:28:26
但是你必须安装Visual C++ 6.0,对吧?如果没有VC 6.0,我无法实现这个目标!我在哪里得到这个12岁的编译器......? – 2010-07-06 14:41:23