现在的位置: 首页 > 综合 > 正文

eclipse中ruby的环境搭建

2013年03月21日 ⁄ 综合 ⁄ 共 605字 ⁄ 字号 评论关闭

所需环境:

Eclipse Platform

Version: 3.3.0

rubyinstaller-1.9.3-p194.exe  下载地址:

org.rubypeople.rdt-0.9.1.200711131528NGT.zip 下载地址:

先安装rubyinstaller-1.9.3-p194.exe 

安装完后,可以在我的电脑-右键 --高级--环境变量 中设置path  指向ruby的bin目录

然后在dos下面cmd---ruby -v

Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>ruby -v
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]

C:\Documents and Settings\Administrator>ruby -e 'print"HelloWorld"'
HelloWorld
C:\Documents and Settings\Administrator>

这样就表示安装成功:

然后解压org.rubypeople.rdt-0.9.1.200711131528NGT.zip 放入eclipse目录中。

启动eclipse会 多个

 

 

点击新建 Ruby Class

 

 

最后右键执行Ruby Application

控制台会输出

Hello,World

抱歉!评论已关闭.