Daniel McBrearty
2006-Mar-05 04:43 UTC
[RAILS] 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060305/cb5e39a9/attachment.html
Guess you need to install libmysqlclient for your distribution. You didn''t say what distro do you use. Daniel McBrearty wrote:> 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.)-- Yaroslav Markin yaroslav at markin dot net