- Add devel -> make + ruby + gcc + subversion modules from cygwin installation
- Download gems tgz install package from Ruby Gems download home
- tar xzvf rubygems-1.0.x.tgz
- cd rubygems-1.0.x
- unset RUBYOPT (before install gems, clear RUBYOPT=rubygems)
- ruby setup.rb
- gem install rails --include-dependencies
- Download mysql source tar.gz file from MySQL download page
- tar xzvf mysql-5.0.45.tar.gz
- cd mysql-5.0.45
- ./configure
- make install ( or to do it faster, just make install under sub directories libmysql and include.
- gem install mysql
- Change the database server from localhost to 127.0.0.1 in the database.yml of your rails app
- Install ImageMagick, libmagick-devel, XFree86-lib-compat, xorg-x11-devel, libbz2-devel module from cygwin installation file
- gem install RMagick
- ruby script/server. voila!
References:
Labnotes: Setting up Ruby + Gems on Cygwin
Softpedia: Install Rails on Windows with cygwin
2 comments:
Thanks for the post.
By the way gem install RMagick didn't work for me, but gem install rmagick work.
wow this worked. you da man
Post a Comment