<commit_before># Build Rhodes Application

This page describes how to build Rhodes Application on all of our supported platforms: iPhone, RIM Blackberry, Windows Mobile and Android.

## All Platforms Prerequisites 

### Required Software

You should check to see that the required software in installed on your computer, such as Ruby and RubyGems. See the
[installation instructions](install).

## Setting Up Rhodes Source Code

If you planning to modify or [extend](extensions) Rhodes, you will need the Rhodes source code. It is distributed under MIT license. You don't need it if you are not planning to modify/extend Rhodes.

Rhodes source code is available on github.com. You will need Git to get it. If you used [Instant Rhodes](install#install-on-windows) you probably already have Git installed on your system. Otherwise, load it from [here](http://git-scm.com).

To clone Rhodes to your local computer, execute git clone from the command line:
	
	:::term
	$ git clone git://github.com/rhomobile/rhodes.git
	$ cd rhodes

Checkout the branch you are interested in (if not the master branch):

	:::term
	$ git checkout -f -b <branchname> --track origin/<branchname>

To keep the branch up to date, use the git pull command:

	:::term
	$ git pull

Add the bin folder of this clone to your path. On Linux/Mac it is typically done in the .profile file. On Windows, it is done using the Control Panel.

Configure your environment by running the rhodes-setup script. This will attempt to auto-detect installed SDKs. It will prompt you to verify the SDK paths or enter paths for SDKs that cannot be detected.

	:::term
	$ rhodes-setup

## Building rhodes gem from source

You don't have to do it if you cloned sources, but if you want to build rhodes gem then do the following:

	:::term
  	$ rake gem
  	$ gem install rhodes-[version].gem

## Setting Up build.yml

To build your application from Rhodes source code, set the sdk: property in the build.yml file (this file is in the root folder of your application) to the Rhodes source code root folder. For example:

	:::term
	sdk: /Library/Ruby/Gems/1.8/gems/rhodes-3.0.2<commit_msg>minor change to build.txt: A couple typos fixed<commit_after># Build Rhodes Application

This page describes how to build Rhodes Application on all of our supported platforms: iPhone, RIM Blackberry, Windows Mobile and Android.

## All Platforms Prerequisites 

### Required Software

You should check to see that the required software in installed on your computer, such as Ruby and RubyGems. See the
[installation instructions](install).

## Setting Up Rhodes Source Code

If you planning to modify or [extend](extensions) Rhodes, you will need the Rhodes source code. It is distributed under MIT license. You don't need it if you are not planning to modify/extend Rhodes.

Rhodes source code is available on github.com. You will need Git to get it. If you used [Instant Rhodes](install#install-on-windows) you probably already have Git installed on your system. Otherwise, load it from [here](http://git-scm.com).

To clone Rhodes to your local computer, execute git clone from the command line:
	
	:::term
	$ git clone git://github.com/rhomobile/rhodes.git
	$ cd rhodes

Checkout the branch you are interested in (if not the master branch):

	:::term
	$ git checkout -f -b <branchname> --track origin/<branchname>

To keep your branch up to date, use the git pull command:

	:::term
	$ git pull

Add the bin folder of this clone to your path. On Linux/Mac it is typically done in the .profile file. On Windows, it is done using the Control Panel.

Configure your environment by running the rhodes-setup script. This will attempt to auto-detect installed SDKs. It will prompt you to verify the SDK paths or enter paths for SDKs that cannot be detected.

	:::term
	$ rhodes-setup

## Building rhodes gem from source

You don't have to do it if you cloned sources, but if you want to build rhodes gem then do the following:

	:::term
  	$ rake gem
  	$ gem install rhodes-[version].gem

## Setting Up build.yml

To build your application from Rhodes source code, set the sdk: property in the build.yml file (this file is in the root folder of your application) to the Rhodes source code root folder. For example:

	:::term
	sdk: /Library/Ruby/Gems/1.8/gems/rhodes-3.0.2
{'fraction_non_alphanumeric': 0.06736353077816493, 'fraction_numerical': 0.0023228803716608595, 'mean_word_length': 4.012805587892899, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7168333', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1153, 'n_words': 642}