some time ago I tried install ROR on windows XP. This process using instantrails went wrong twice. I used the recipe in a new book by Patric Lenz. Are there any windows XP users here who can say anything about this here? Any comments are needed and very welcome.
I am unsure about the new book vs the old book. However after much fiddling around…I have been able to setup ROR on windows XP using mysql and mongrel.
I did just get a rake db:migrate error though so I am going to start over and try a clean install. I will post the exact steps shortly and versions I am using.
Install MySQL from the mysql website: MySQL 5.1 Community Server 5.1 MSI Installer Install the GUI Tools Bundle for 5.0 too
Next download and install Ruby-186-27 Make sure to check the box for Enable Ruby Gems when you launch the installer.
Using the cmd (console) go to the C:\Ruby directory
gem install rails gem install mysql gem install mongrel
Create a working directory (I call mine projects)
mkdir Projects cd Projects rails demo cd demo cd config
Using notepad or any text editor edit database.yml change the default stuff to the following to make it work with mysql:
# SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: mysql host: localhost port: 3306 username: root password: root database: demo pool: 5 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: mysql host: localhost port: 3306 username: root password: root database: demo_test pool: 5 production: adapter: mysql host: localhost port: 3306 username: root password: root database: demo_production pool: 5
Make a mysql database called “demo” using the gui tool MySQL Administrator (part of the GUI tools bundle downloaded from mysql website)
From the cmd (c:\Ruby\Projects\demo)
Open a browser to localhost:3000 click on “about your applications environment”
If all is well it will return relevant information about your ruby on rails install.
I’m on win xp. I get the localhost:3000 page with no issue.
I try the say/hello controller/action and get this:
C:/Ruby/lib/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:471: [BUG] Segmentation fault