Install redmine on sun sparc solaris 10

We need to install redmine 2.0.3

The version are (SO,ruby,gem,rake,mysql):

uname -a

SunOS CF-INTEGRA 5.10 Generic_137137-09 sun4u sparc SUNW,UltraAX-i2

pwd

/export/home/webstart/redmine-2.0.3

ruby -v

ruby 1.8.7 (2011-02-18 patchlevel 334) [sparc-solaris2.9]

gem -v

1.8.21

rake -V

rake, version 0.8.7

bundle -v

Bundler version 1.1.5

head /usr/local/mysql/README

MySQL Server 5.1

In the step 2. “Installation procedure”: bundle install --without
development test postgresql sqlite rmagick
Display this error…

Using json (1.7.4)
Installing mysql (2.8.1) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.

/opt/csw/bin/ruby18 extconf.rb
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lm… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lz… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lsocket… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lnsl… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lmygcc… no
checking for mysql_query() in -lmysqlclient… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Any sugestion?