Hi,
I am trying to get Rails installed on Solaris 9 (SPARC) and am having trouble
with getting mysql to connect. I''ve seen a few posts on a similar
problem for Rails on Windows, but couldn''t find an answer. I first had
several problems getting ''gem install mysql'' to work, but
eventually it installed without errors and it found the mysql_query, mysql.h,
etc.:
ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
I then created a scaffold for table ''tasks'' but I get an
''uninitialized constant Mysql'' error in both WEBrick and
Apache 2.0.53. The first couple lines of the framework trace are:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/dependencies.rb:186:in
`const_missing''
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record/connection_adapters/mysql_adapter.rb:37:in
`mysql_connection''
For reference, I''m using MySQL 4.1.10a and Ruby 1.8.2 (2004-12-25)
[sparc-solaris2.9]. Ruby was installed from source (I previously had 1.8.1 from
Blastwave, but Rails didn''t like it).
Any help is greatly appreciated!
Thanks,
Bryan