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
folder)....
$cd android-sdk-linux_86
$cd tools
$./android (execute the emulator see if there are any
errors.....)
now type this command:
$rhodes-setup
(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)
type:
$rake run:android
now grab a cup of coffee and wait for three minutes :D
any problems with installation you can post here....
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/
download android sdk and ndk from here:
SDK: http://developer.android.com/
NDK: http://developer.android.com/
now extract both in your home folder and type (basically go to tools
folder)....
$cd android-sdk-linux_86
$cd tools
$./android (execute the emulator see if there are any
errors.....)
now type this command:
$rhodes-setup
(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_
<android_sdk_r07-linux_x86> is the android-sdk folder name
$ Android NDK path: /home/[pc-name]/<android_ndk_
<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)
type:
$rake run:android
now grab a cup of coffee and wait for three minutes :D
any problems with installation you can post here....
JDK path (required) (): /usr/lib/jvm/java-6-openjdk/
ReplyDeleteInvalid JDK path
Make sure you ran:
ReplyDelete$ 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)
This comment has been removed by the author.
ReplyDeleteAlso remember that you need to install an Android SDK when you run:
ReplyDelete$ ./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.
Thanks
ReplyDeletefor the update
Delete