Using Eclipse as a Ruby IDE via Aptana - WordPress.com

28 downloads 50 Views 471KB Size Report
Using Eclipse as a Ruby IDE via Aptana. 1. Download and install Eclipse. Instructions can be found here. 2. Install the Ruby interpreter and libraries. a.
Using Eclipse as a Ruby IDE via Aptana 1. Download and install Eclipse. Instructions can be found here. 2. Install the Ruby interpreter and libraries. a. For Windows, download and run the installer found here. b. For Linux (Debian), type: $ sudo apt-get install ruby1.9.1 c. For Mac users, Ruby is already installed if you have Tiger or above. 3. Install the Aptana plugin for Eclipse a. Open Eclipse and from the Help menu, select Install New Software…

b. In the Work with: text box of the Install window, type the URL http://d1iwq2e2xrohf.cloudfront.net/tools/studio/plugin/install/studio3/3.2 .2.201208200959/ for the update site, and click Add… or hit Enter.

c. Name the repository and press OK.

d. Click the checkbox next to „Aptana Studio 3‟ and press Next.

e. Press Next on the next window.

f. Accept the license agreement, press Finish and restart Eclipse.

g. To start a new Ruby project, select File -> New -> Project and select Ruby Project. Press Next.

h. Choose Default Project and press Next.

i. Give the project a name and press Finish.

j. Add a new file to the project and name it with an .rb extension

k. For the quintessential “Hello World!” program, type: puts “Hello World” in the editor and press Enter. The output should look like the screenshot below:

l. You‟re done!

References: http://www.ibm.com/developerworks/opensource/library/os-rubyeclipse/ http://d1iwq2e2xrohf.cloudfront.net/tools/studio/plugin/install/studio3/3.2.2.201208200959/inde x.html