My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
InstallPlugins  
*MOVED TO WIKI Install Ruby/Rails plugins needed for this project. See GettingStartedWithRails first.
Updated Apr 13, 2008 by medea...@gmail.com

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.

Comment by shadowfa...@gmail.com, Feb 8, 2008

linux, remember to (su or) sudo gem install...etc.

Comment by shadowfa...@gmail.com, Feb 8, 2008

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)

Comment by suzh...@gmail.com, Feb 9, 2008

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.

Powered by Google Project Hosting