Getting a jump on Merb 0.9

Update 2: Ok, within hours of my last update, it looks like 0.9 is out. You can sudo gem install merb and ignore this post... move along... nothing to see here...

Update: Actually there's no need to install from source to get 0.9, you can simply install the development gems:

sudo gem install merb --source http://merbivore.org

Thanks to the Meet Merb Peepcode PDF for enlightening me.

If you still want to install from source, keep reading...

As of this writing, Merb 0.9 is not out yet, but I wanted to play with it anyway.

Fair warning, I am completely new to Merb and this may not be the best way to go about this, but it's working for me so far.

  1. Dependencies:

    sudo gem install merb -y # yeah...
    sudo gem install erubis -y
    sudo gem install json_pure -y
    sudo gem install json -y
    sudo gem install rspec -y
    sudo gem install rack -y
    sudo gem install rubigen -y
    sudo gem install hpricot -y
    sudo gem install haml -y
    
  2. Get git!

    I'm on OS X, and I use macports, so I did:

    sudo port install git-core
    
  3. Clone, build, and install merb-core, merb-more, and merb-plugins:

    git clone git://github.com/wycats/merb-core.git
    cd merb-core
    rake gem
    sudo gem install pkg/merb-core-0.9.0.gem
    cd ..
    
    
    git clone git://github.com/wycats/merb-more.git
    cd merb-more
    rake gem
    sudo gem install pkg/merb-more-0.9.0.gem 
    rake build_gems
    rake install_gems
    cd ..
    
    
    git clone git://github.com/wycats/merb-plugins.git
    cd merb-plugins/merb_rspec
    rake gem
    sudo gem install pkg/merb_rspec-0.9.0.gem 
    cd ../merb_datamapper # or whatever orm you choose...
    rake gem
    sudo gem install datamapper -y # if you don't have it already...
    sudo gem install pkg/merb_datamapper-0.9.gem
    
  4. Generate your app

    cd ~/Sites
    merb-gen my_site
    

Now have fun! To run the site cd into my_site and run merb then pull up localhost:4000

Tags: merb  Meta: 1 comment, permalink