Rails: Not Quite Cross-Platform

One of the really nice things about web development is that for the most part, things are generally cross-platform. I’m starting to wonder if that’s the case with Rails.

I had a project directory that I built on my WinXP box at work, which I zipped up and sent to myself from work so I could work on the app on my Powerbook.

First off, all of the files in the script/ subdirectory referenced #!c:\ruby\bin\ruby which obviously wouldn’t work on OS X. After switching them to #!/usr/bin/env ruby, and typing ./script/server, I get the following:

$ ./script/server
: No such file or directory

Now what am I supposed to do?

BTW: Email me at tonyAtApacheDotOrg if you have a solution :)

Comments are closed.