Every Flavour Beans

“The time has come…to talk of many [technologies].” –Lewis Carroll(’The Walrus and the Carpenter’)
Development Tools. Web Frameworks. GNU/Linux. Nokia N800. Video Encoding.

August 27, 2006

Develop Ruby Applications Using Komodo IDE

Filed under: GNU/Linux, Ruby/Rails — tabrez @ 5:34 pm

Komodo is another excellent IDE for developing Ruby, Perl, Python, PHP and Tcl applications. Unlike it is with developing Ruby applications in Eclipse, no additional plugins need to be installed for Komodo; the Ruby support is inbuilt in this IDE. The IDE also has built-in support for integrating with source control software(in professional edition only) like CVS, Subversion and Perforce. All these software only need to be installed and in path for Komodo to start using it.

Downloading and Installing Komodo IDE

Download the Komodo IDE from the following page:

Buy Komodo Personal or Professional Edition
Try Komodo Personal or Professional Edition

After getting the software downloaded, the installation is as easy as running a couple of commands, as it comes with its own installation script. I recommend installing the IDE in the user’s home directory, but if multiple users access the computer, and want to use Komodo, then it can be installed in the system path too.
Run the following commands to install Komodo in the home directory:

sh# tar -xvzf Komodo-Personal-3.5.2-227956-linux-libcpp5-ix86.tar.gz
sh# mv Komodo-Personal-3.5.2-227956-linux-libcpp5-ix86 komodo3.5
sh# cd komodo3.5
sh# ./install.sh

(substitute the name of the downloaded file in the above command.)

Answer the questions asked by the installer(like where to install Komodo) or accept the default values. To add Komodo application to the path, add the following line to the user/system profile file(eg: ‘.bash_profile’):

export PATH=/home/user/komodo3.5:$PATH

Before Komodo can be used, a license has to be properly setup. You might have recieved a license file through email while purchasing the product; you can request a license for the trial version otherwise, if you want to evaluate the product. Once you get hold of a license, its time to install it. I have a license for Komodo Personal Edition and this is how I have installed it:

sh# chmod +x License-KomodoPersonal-Linux
sh# ./License-KomodoPersonal-Linux

The file name of your license may be different depending upon the version of Komodo you are using.

After the installation is complete, a shortcut link for the Komodo IDE can be seen on the desktop. Click the icon to start the IDE(or run ‘komodo’ on the command line):
Komodo Desktop Icon

Create Ruby Applications Using Komodo IDE

Komodo IDE starts with the following welcome screen. From here you can create a new project, open the existing projects or browse through the various tutorials.
Komodo Main Window

To browse through the Ruby tutorial and reference, click the “Ruby Tutorial” link in the main window. The tutorial will be opened in a new browser window.
Komodo Tutorial Window

Editing Ruby programs in Komodo in full screen mode looks like this(Syntax is colorised, indentation is done etc. Usual stuff expected of an IDE).
Komodo Fullscreen Editor

To create a new Ruby project in Komodo, select File->New Project, enter a name for the project and click the “Save” button. Now create a new Ruby file by selecting File->New File and selecting “Ruby” from “Templates”.
Create New Ruby File in Komodo

Type the program in the editor and save the file.
Sample Ruby File in Komodo

To evaluate simple Ruby expressions, Ruby interactive shell can be used from within Komodo. Select “Start New Ruby Shell” from the drop down box in the toolbar(or Tools->Interactive Shell menu) to start an interactive shell. Evaluate the Ruby expressions in the newly opened ‘Ruby Shell’ tab at the bottom of the window.
Ruby Interactive Shell in Komodo

The Ruby interactive shell can be made the default shell in Komodo and be bound to F12 hot key from the Preferences(Edit->Preferences) dialog box.
Ruby Interactive Shell in Komodo

End Notes

Komodo IDE provides a very rich program development environment for many popular scripting languages like Ruby, PHP, Perl, Python and Tcl. The personal(non-commercial) edition has most of the features of the professional edition and costs only tenth of its price. You may also get lucky and be able to find a discount coupon on the Internet to buy the personal edition of Komodo free of cost. Moreover, one license of Komodo(whether personal or professional) allows the software to be run on multiple platforms like Windows and GNU/Linux. If you want to use one IDE to develop programs on multiple platforms and using multiple scripting languages, without the hassle of installing additional plugins to get such a support, then Komodo is definitely worth a try.


If you want to receive future posts by email, enter your email address here:

Related Posts:

  • Develop Ruby Applications Using SciTE Editor
  • Develop Ruby Applications Using Eclipse IDE
  • Programming in Ruby Using SciTE - Windows Issues and Other Tips
  • Develop Ruby Applications Using JEdit Editor
  • Setting Up Rails Development Environment on Windows Vista/XP
  • Setting Up Rails Development Environment using Aptana Studio
  • “Hello, World” Web Application in Ruby on Rails using Aptana Studio

  • Readers who viewed this page, also viewed:


    No Comments »

    No comments yet.

    RSS feed for comments on this post. TrackBack URI

    Leave a comment

    Subscribe without commenting


    Copyright (c) 2006, 2007 Tabrez Iqbal.
    Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. Verbatim copying and distribution of this entire article is permitted in any medium without royalty provided this notice is preserved. A copy of the license is included in the section entitled "GNU Free Documentation License".


    Powered by WordPress
    This website is hosted by Dreamhost