Encoding: utf8 in database.yml causes error

Hi

Using ruby 1.8, rails 1.0, mysql 4.1.11

in database.yml:

adapter: mysql
encoding: utf8
database: myproject_development
username: user
password: password
socket: /var/run/mysqld/mysqld.sock

but when I start the error I get:

Can’t initialize character set utf8 (path:
/usr/share/libmysqlclient/charsets/)

Can anyone tell me what file it’s looking for, and how I tell it where
to find it? (The path it’s trying doesn’t even exist.)

cheers

Daniel


Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

Guess you need to install libmysqlclient for your distribution. You
didn’t say what distro do you use.