11.17.07

Merb on Windows: It works!!!

Posted in Programming, Ruby, merb at 12:09 am by Robert Horvick

UPDATE: Installing Merb on Windows is now a lot easier!  Check it out here

This post outlines the exact steps I took to get merb working on Windows (to be specific - Vista Home Premium)

  1. Install InstantRails (I have no reason to believe this won’t work with the one-click installer).
  2. Start InstantRails and open a Ruby Console window (the steps following take place in that window)
  3. Execute “gem install hoe”  (RubyInline depends on hoe)
  4. Download http://web.mit.edu/~agp/www/parsetree-win32/ParseTree-2.0.2-mswin32.gem
  5. Download http://web.mit.edu/~agp/www/parsetree-win32/RubyInline-3.6.4.gem
  6. Execute “gem install RubyInline-3.6.4.gem”
  7. Execute “gem install ParseTree-2.0.2.mswin32.gem”
  8. Execute “gem install ruby2ruby”
  9. Execute “gem install json”  (choose json 1.1.1 (mswin32))
  10. Execute “gem install merb -y”
  11. Execute “merb myapp”
  12. Execute “cd myapp”
  13. Execute “set INLINEDIR=c:/temp”  (the slash direction matters!)
  14. Execute “merb”
  15. Browse to http://localhost:4000 and …

Merb Splash Screen

So a big thanks to Ezra for providing the pointers I needed.

Hopefully these steps will prove useful for others.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

13 Comments »

  1. Merb on Windows: GCC compiler is required to use Merb. | Ghost On Third said,

    November 17, 2007 at 12:13 am

    [...] [Update: Merb is now working on Windows]  [...]

  2. Merb on Windows: environment variables INLINEDIR or HOME required | Ghost On Third said,

    November 17, 2007 at 12:14 am

    [...] [Update: Merb is now working on Windows]   [...]

  3. Installing Merb on Windows required Rakefile tweaks for sudo and chmod | Ghost On Third said,

    November 17, 2007 at 12:15 am

    [...] is now working on Windows and the errors described in this post have been fixed in the latest svn [...]

  4. Aman Gupta said,

    November 30, 2007 at 9:33 pm

    Luis Lavena (of ruby one-click) has built new win32 versions of the RubyInline and ParseTree gems which will soon be available via rubyforge, so you won’t have to download my gems or set INLINEDIR.

    Also, merb will run without ParseTree/RubyInline/ruby2ruby just fine- you won’t get the parameterized actions feature but everything else will work. If you see ParseTree errors when starting merb, simply gem uninstall ParseTree and ruby2ruby

  5. Aman Gupta said,

    December 2, 2007 at 6:31 pm

    New versions of gems are available on http://web.mit.edu/~agp/www/parsetree-win32/ and http://mmediasys.com/ruby

  6. Robert Bazinet said,

    January 2, 2008 at 4:22 pm

    Hey Robert,

    Interesting post. I followed along on Windows but I am not getting the same results as you are. I get a Bad Request page telling me No routes match the request.

    The page appears to be from Merb as it has a bunch of info on it.

    The only deviation I saw when installing was some of the gems are a bit newer. Do you know if there are any strict requirements for gem versions for Merb?

    Thanks.

  7. Anonymous said,

    January 3, 2008 at 2:14 pm

    I, too, am getting the same error as Robert Bazinet.

    Also, I cannot install DataMapper 0.2.5. The same for the latest version of merb_datamapper. Both of these gems spit out an error about ‘nmake’ not being a recognized command.

  8. Anonymous said,

    January 4, 2008 at 12:13 am

    Problem fixed — apparently, Merb does NOT provide a default index.html page in the /public directory after installation. Once you create that file, then it works just fine.

    I still have the problem with being unable to install DataMapper though on this windows box.

  9. nrhm said,

    March 28, 2008 at 3:46 am

    I’v tried to install merb on windows from svn revision 1346.
    And stuck on step 11. Executing “merb myapp” started merb server instead of creating myapp folder. As it figured out ‘merb-gen myapp’ must be used for that.

    FYI:Links on step 4 and 5 are not valid anymore.

  10. David Thompson said,

    March 30, 2008 at 3:09 pm

    When I tried to install the json gem (also happened when trying to install datamapper) I get an error that ‘nmake’ cannot be found.

  11. Installing Merb on Windows is a lot easier! | Ghost On Third said,

    May 31, 2008 at 7:32 pm

    [...] been a while since I’ve triedthe Merb-on-Windows-from-scratch so I started from and found that it has gottens a lot easier since [...]

  12. Sagun said,

    July 8, 2008 at 6:24 am

    links

    http://web.mit.edu/~agp/www/parsetree-win32/ParseTree-2.0.2-mswin32.gem
    http://web.mit.edu/~agp/www/parsetree-win32/RubyInline-3.6.4.gem

    don’t work. can you update this article.

  13. Robert Horvick said,

    July 8, 2008 at 7:35 am

    @Sagun - those links are no longer needed. See the first line of the post where I link to updated instructions.

Leave a Comment