读书人

eclipse中ruby的环境筹建

发布时间: 2012-08-27 21:21:57 作者: rapoo

eclipse中ruby的环境搭建

所需环境:

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会 多个

eclipse中ruby的环境筹建

点击新建 Ruby Class

eclipse中ruby的环境筹建

最后右键执行Ruby Application

控制台会输出

Hello,World

读书人网 >Ruby Rails

热点推荐