Install Sproutcore on Ubuntu

That was a struggggle .. however the steps are pretty easy.

Okie , first you need Ruby and Rubygems  you can get it from the synaptic “ruby” and “rubygems1.8”   . Or by being more geeky and get it from the terminal, by writing this command.

sudo apt-get install ruby rubygems ruby1.8-dev build-essential

Now you are ready to install sproutcore. Run the following command

sudo gem install sproutcore

it will take time , installing some prerequisites it needs. There is another way using github, but i don’t actually recommend it , its Pure manual.

The next step is to start your first project. Go to a directory you will have your first project ( cd <path-to-directory> ) , then do the following command :

sc-init hello_world

it should run perfectly , usually it does not for some reason ( as i tried it in two different OS ) ! it says that there is no command sc-init. It says that because it cannot see it , since the PATH is already configured to /usr/bin , And i think in virtual machines things get installed somewhere else. Anyways , to get it running you need to search for sc-init file in your machine. Normally you will find two files , one with sproutcore in its path, the other’s path would look abit like this  /var/lib/gems/1.9.1/bin  (1.9.1) could differ from your RubyGems  version e.g. (  /var/lib/gems/1.9/bin ) . ( Upgrade to version 1.9 or 1.9.1 first ) could work without it.

Next step is to Configure PATH as follows   PATH=$PATH:/var/lib/gems/1.8/bin .Then type export PATH .

Then rerun sc-init command. And now you have SproutCore working , if you have any error , post a comment and I will see what i can do 🙂

Special Thanks to Alex Iskander for his great help.


9 thoughts on “Install Sproutcore on Ubuntu

  1. i got this error

    Building native extensions. This could take a while…
    ERROR: Error installing sproutcore:
    ERROR: Failed to build gem native extension.

    /usr/bin/ruby1.9.1 extconf.rb
    extconf.rb:1:in `require’: no such file to load — mkmf (LoadError)
    from extconf.rb:1:in `’

    Gem files will remain installed in /var/lib/gems/1.9.1/gems/eventmachine-0.12.10 for inspection.
    Results logged to /var/lib/gems/1.9.1/gems/eventmachine-0.12.10/ext/gem_make.out


Got something to say!!!

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s