12.13.07
Getting Merb working on Cygwin requires a Rakefile patch
When getting merb working on Windows I provided a patch to the merb folks that resolved a Rakefile compat problem (sudo was being used even when on Windows - where it does not exist).
I’m trying various configurations on Windows and found that in cygwin the platform name does not include “win32″ so the filter no longer worked (and cygwin does not include sudo).
I filed a ticket http://merb.devjavu.com/ticket/361 and attached the patch. It’s very simple:
$ cat cygwin.diffIndex: Rakefile =================================================================== --- Rakefile (revision 1087) +++ Rakefile (working copy) @@ -18,7 +18,7 @@ CLEAN.include ['**/.*.sw?', '*.gem', '.config'] -windows = (PLATFORM =~ /win32/) +windows = (PLATFORM =~ /win32|cygwin/) SUDO = windows ? “” : “sudo”
And then it all goes well …
Robert@HORVICKLAPTOP ~/merbsrc $ rake install (in /home/Robert/merbsrc) rake package (in /home/Robert/merbsrc) Successfully built RubyGem Name: merb Version: 0.4.2 File: merb-0.4.2.gem gem install pkg/merb-0.4.2 --no-rdoc --no-ri Successfully installed merb-0.4.2 1 gem installed
Luis Lavena said,
December 13, 2007 at 4:29 pm
Robert, I guess you need cygwin badly, right?
I compared cygwin performance to the slow VC6 implementation of ruby and is worse.
Robert Horvick said,
December 13, 2007 at 4:50 pm
I don’t need it badly - I’m just trying out various options on Windows and it was time to test cygwin.
But I think it’s fair to say that for the depth of work I’m doing with Ruby the performance I get on Cygwin will far out pace what I need.