Fedora Setup Tips

Here are two quick pointers that I would like to circulate to the team regarding setting up Rails on Fedora (I know there are other people on the team that use Fedora like me)

1. You have to install rdoc: Rails will not work without rdoc installed. It will appear that Rails has successfully installed and is running however you will not be able to get any of your Rails code to work. Use yum to install rdoc:

yum install rdoc

2. You have to specify where the MySQL socket is: By default, Rails looks for the MySQL socket in /tmp/mysql.sock. However, this is not located here on Fedora. It is located at:

/var/lib/mysql/mysql.sock

You must specify this location in you config/database.yml using a socket label. Here is an example:

development:
  adapter: mysql
  database: cookbook
  host: localhost
  socket: /var/lib/mysql/mysql.sock
  username: root
  password:

Tips from Jamie:

If you are having trouble with routing errors doing the tutorial on your own computer, try using localhost:3000/my_test/ rather then localhost:3000/My_Test/.

I found a few other people in forums online with this problem, but didn't find why. Worked for me. *shrugs*