Skip to content

Instantly share code, notes, and snippets.

@geojeff
Created February 7, 2012 17:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save geojeff/1760855 to your computer and use it in GitHub Desktop.
Save geojeff/1760855 to your computer and use it in GitHub Desktop.
If you have ruby-1.9.2, good. I used rvm, and did a recent install with
rvm install ruby-1.9.2
rvm --default use 1.9.2
Then to the SproutCore parts:
gem install sproutcore [The console output indicated SproutCore 1.6]
cd to your dev area, e.g. .../Development/sproutcore
git clone git@github.com:sproutcore/abbot.git [cloned abbot into my dev area]
cd to your project dev area, e.g. .../Development/sproutcore/myapp
mkdir frameworks, if you don't already have one
Clone Sproutcore master in your frameworks directory.
cd to project dir, e.g. myapp [I have a fresh SC master in frameworks]
vi Gemfile [Edited path to abbot in Gemfile. My path to abbot entry is:
gem "sproutcore", :path => "/Users/geojeff/Development/sproutcore/abbot"]
sudo gem install bundler
bundle install --binstubs
This should give you a local abbot in your myapp/bin directory, where you can run sc-init, etc. and to start the server:
./bin/sc-server [here (./bin/sc-server), sc-server says 1.7.1beta; sc-server successfully brings up my app; i have SC master in my frameworks]
If you forget, and run
sc-server
You'll get the 1.6 sc-server that was installed with gem install sproutcore globally.
@unicolet
Copy link

I have separately installed ruby 1.9.3 on a Mac Mini and it works (have tested both sc-server, sc-build and sc-init). It only complains about a deprecation in ruby:

     /Users/umbertonicoletti/.rvm/gems/ruby-1.9.3-p125/gems/json_pure-1.4.6/lib/json/common.rb:2:in `<top (required)>': iconv will be deprecated in the future, use String#encode instead.

@topherfangio
Copy link

I tested sc-server on Mac OS 10.7.3. I had Ruby 1.9.1 installed, so I just followed these steps exactly to install 1.9.2 with a "clean slate" and everything seems to work perfectly for me. No deprecation as well. Must be a 1.9.3 thing.

@unicolet
Copy link

@topherfangio yeah, and it's on a library, not even directly related to sproutcore. A gem update should fix it soon.

I guess it's better to stick with 1.9.2 for new users though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment