Skip to content

Rails, MySQL and Debian

The latest database.yml (the db config file for rails) says to “Get the fast C bindings” for mysql by typing :

> gem install mysql

What they don’t tell you is that on debian, there is a good chance this will fail with a truckload of errors. I googled a bit and came up with a missing package on my machine. The following should get the mysql bindings installed properly.

> apt-get install libmysqlclient10-dev
> gem install mysql