Introduction
This assumes that you have gotten through GettingStarted and GettingStartedWithRails for your operating system, and that you have created the databases for this project. If you haven't, please make sure you're following the steps in order!
At this point, you have all the code for this project in your sandbox, all the basic Ruby and Rails software installed on your system, and a database server running with some nice empty databases created. We now need to install a few extra plugins being used specifically for this project, and set up those databases so they are ready to store the data for this project.
Details
- Change directories using the cd command until you are INSIDE the otwdb directory where you downloaded the code. (IE, your sandbox.)
- We will now install a bunch of Ruby Gems. Type the following commands. (NOTE: if you are offered a choice of versions, if you are on Windows, you want the latest version labeled mswin32-i386 or mswin32; otherwise pick the latest version labeled ruby.)
- gem install ferret --include-dependencies
- gem install ZenTest --include-dependencies
- gem install fastthread --include-dependencies --no-ri --no-rdoc
- gem install capistrano --include-dependencies
- For Windows users: if fastthread won't install, do the following:
- download the fastthread-1.0.1-i386-mswin32.gem and save it to a convenient folder on your system.
- open a command-line prompt and use cd to change into that folder.
- type: gem install fastthread-1.0.1-i386-mswin32.gem
- don't forget to cd back to the otwdb directory when done.
- Now we have to set up the globalize plugin and our initial databases. Type the following commands. (NOTE: if you didn't change directories to be inside the otwdb directory, this will fail, fail, fail.)
- rake globalize:setup
- rake db:migrate
When You're Done
When all this is done, you are now ready to move on to GettingStartedWithRadRails.
linux, remember to (su or) sudo gem install...etc.
If you're running into the: No such file or directory - /tmp/mysqld.sock problem, edit database.yml to include the line socket: /path/to/mysql.sock (mine was /var/lib/mysql/mysql.sock) Also, if you run a (really) barebones install, you'll need to make sure you have make and gcc before you install the gems. (sudo yum install make gcc)
Stating the obvious here, but in case anyone is as absentminded as I am, just a reminder to sudo gem install on OS X as well.