mysql gem error on solaris 10 sparc

root@xxx:/opt/gitorious/config# gem install mysql
Building native extensions. This could take a while...
Successfully installed mysql-2.7
1 gem installed
Installing ri documentation for mysql-2.7...
Installing RDoc documentation for mysql-2.7...

root@xxx:/opt/gitorious/config# rake db:create:all
(in /opt/gitorious)
Character set 'utf8' is not a compiled character set and is not
specified in the '/usr/sfw/share/mysql/charsets/Index' file
ld.so.1: ruby: fatal: relocation error: file
/opt/ruby/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.so: symbol
mysql_sqlstate: referenced symbol not found
Killed