Created
February 28, 2012 02:07
-
-
Save workmanw/1928558 to your computer and use it in GitHub Desktop.
Installing SproutCore from source (OS X and Linux)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing RVM: | |
1. Installing RVM is as easy as: | |
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) | |
2. Add the following to your '.bash_profile': | |
# RUBY / RVM / SproutCore stuff | |
export RUBY_VERSION=ruby-1.9.2-head | |
export GEM_PATH=$HOME/.rvm/gems/ruby-1.9.2-head | |
source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. | |
# It's best to open a new shell at this point so that your new variables are applied. | |
3. Instruct RVM to use Ruby 1.9.2: | |
$ rvm install ruby-1.9.2-head | |
$ rvm use ruby-1.9.2-head | |
Installing SproutCore: | |
1. Get the “abbot” source: | |
$ git https://github.com/seapine/abbot.git | |
2. Create a “sproutcore” directory within the abbot frameworks: | |
$ mkdir -p abbot/lib/frameworks/sproutcore | |
3. Clone the master branch of sproutcore into the above created directory: | |
$ cd abbot/lib/frameworks && git clone https://github.com/sproutcore/sproutcore.git && cd ../../ | |
4. Build the sproutcore gemspec: | |
$ rvm 1.9.2-head do gem build sproutcore.gemspec | |
5. Install the newly built sproutcore gem: | |
$ rvm 1.9.2-head do gem install sproutcore-1.*.gem | |
6. SproutCore should now be installed. Lastly you'll want to add it's bin directory to your path: | |
$ PATH=$PATH:$HOME/.rvm/gems/ruby-1.9.2-head/bin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment