windows下Ruby 安装eventmachine报错解决方法
系统环境:Windows XP
Ruby 版本:1.9.1-p0
?
在windows上安装 eventmachine 总是报错:
?
Building native extensions.? This could take a while...
ERROR:? Error installing eventmachine:
??????? ERROR: Failed to build gem native extension.
或者另外一种:
ERROR:? Error installing ruby-debug:
??? ??????? The 'linecache' native gem requires installed build tools.
??? ?
??? Please update your PATH to include build tools or download the DevKit
??? from 'http://rubyinstaller.org/downloads' and follow the instructions
??? at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
?
?
?
后来经过了漫长的Google,找到了2个solution:
?
?
?
一. 用更低版本的eventmachine
?
这个提示一直不断,下面还有一大难错误,都是C的编译错误后来网上找了两个方法
1:gem gem install eventmachine?提示安装成功.