Cygwin Rails Command Failure
Running Rails myproj on Cygwin doesn't work at the moment. This is due to a bug in Ruby that has been fixed, but hasn't yet made the Cygwin project.
At the moment the workaround is to run the Rails command in a windows command prompt. This sux, but only a little bit really. Alternatives focus around patching and rebuilding ruby on cygwin. Don't really want to do this.
See
Cygwin Rails and MySQL
Many others have done this, so thanks to those who provided the info used here.
Gem Installation
When setting up gems unset the environment variable RUBYOPT
RUBYOPT=""
Rails Installation
Don't need --include-dependencies switch any more, they're installed by default.
MySQL
In Cygwin you'll want to install the MySQL gem. This needs the MySql libraries/source in order to build, so you need to download the source. Then run
./configure
make install
This failed at first, trying to resolve by
- installing g++ using cygwin setup
Now you have what you need to install the MySql gem. gem install mysql