请教关于ferret的问题

我的系统是windows XP,用的rails 1.2 版本,想安装ferret,我输入gem install ferret 命令,但是安装出错,提示信息如下:
e:\emporium>gem install ferret
Building native extensions.  This could take a while...
ERROR:  Error installing ferret:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb install ferret
creating Makefile

nmake
'nmake' 不是内部或外部命令,也不是可运行的程序
或批处理文件。


Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ferret-0.11.6
for inspection.
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/ferret-0.11.6/ext/gem_make.out

e:\emporium>


请各位朋友帮忙,ferret在windows xp下应如何安装,谢谢了!

突然想起上面的方法有问题……这样做的前提是:你的Ruby是VC2008编译的……

不过一般Ruby安装包不是在VC2008下面编译的……

不用编译的最简单方法:在

http://rubyforge.org/frs/?group_id=1028

上面找名字-mswin32的gem,下载后在本地目录中安装

gem install ferret-0.11.6-mswin32.gem

你要有c++编译器

可以装个VC2008express(免费版本),从M$官网就能在线安装,下载量大约90M

然后开始菜单->程序里找到

Visual Studio 2008 Command Prompt

这个快捷方式让你可以打开命令行并且加载编译环境

然后gem install ferret 就行了