15 May 2011

Setting up Rhodes on Ubuntu 10.04

You guys must be having ubuntu 10.04 and above
installed. This command will help you to install rhomobile packages

type the following commands
$sudo apt-get install openjdk-6-jdk;
$sudo apt-get install ruby;
$sudo apt-get install rails;
$sudo apt-get install rubygems1.8;
$sudo gem install rails -V;
$sudo gem install templater -V;
$sudo gem install rhodes -V;

after these just locate where rhodes-2.*.*  is there ......
it will be in /var/lib/gems/1.8/gems/

now type this command....
$export PATH=$PATH:"/var/lib/gems/1.8/gems/rhodes-2.2.6/bin"

download android sdk and ndk from here:

SDK:   http://developer.android.com/sdk/index.html
NDK:   http://developer.android.com/sdk/ndk/index.html

now extract both in your home folder and type (basically go to tools
 $cd android-sdk-linux_86
$cd tools
$./android      (execute the emulator see if there are any

now type this command:

(on typing this you will have to give the jdk,android sdk and ndk
path only)

 $ JDK path: /usr/lib/jvm/java-6-openjdk/

 $ Android SDK path: /home/[pc-name]/<android_sdk_r07-linux_x86>/

<android_sdk_r07-linux_x86>  is the android-sdk folder name

 $ Android NDK path: /home/[pc-name]/<android_ndk_r5>/

<android_ndk_r5>  is the android ndk folder name

   * the remainder of the questions related to Windows and
Blackberry: (left blank)

now type :

$rhogen app store

(here store is your application name)

now type:

$cd store

and now type:

$rake -T

(gives a list of commands)


$rake run:android

now grab a cup of coffee and wait for three minutes  :D

any problems with installation you can post here....


  1. JDK path (required) (): /usr/lib/jvm/java-6-openjdk/
    Invalid JDK path

  2. Make sure you ran:
    $ sudo apt-get install openjdk-6-jdk
    and that you are not putting any extra spaces before or after the path (I wasn't able to copy and paste it in)

  3. This comment has been removed by the author.

  4. Also remember that you need to install an Android SDK when you run:
    $ ./android
    (in the Android SDK Manager)
    That tripped me up..

    I first tried installing Android SDK version 1.1 but that cause errors when building... now I'm using 2.3.3 with no errors.

    Thanks for this article.