Can anyone help me, I'm struggling with an RVM install with mysql.<div><br></div><div>I'm on Mac OSX 10.6 64bit and have installed rvm fine with 1.8.7 and rails 2.3.8 and then installed mysql server which is also 64bit.</div>
<div><br></div><div>I then tried to install the mysql gem using:</div><div><br></div><div><div>env ARCHFLAGS="-arch x86_64" rvm gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</div></div>
<div><br></div><div>but then once I run rake db:setup or db:migrate I get the following error: </div><div><br></div><div><div>** Invoke db:setup (first_time)</div><div>** Invoke db:create (first_time)</div><div>** Invoke db:load_config (first_time)</div>
<div>** Invoke rails_env (first_time)</div><div>** Execute rails_env</div><div>** Execute db:load_config</div><div>** Execute db:create</div><div>Couldn't create database for {"reconnect"=>false, "encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql", "database"=>"tabascopizza_development", "pool"=>5, "password"=>nil}, charset: utf8, collation: utf8_unicode_ci (if you set the charset manually, make sure you have a matching collation)</div>
<div>** Invoke db:schema:load (first_time)</div><div>** Invoke environment (first_time)</div><div>** Execute environment</div><div>** Execute db:schema:load</div><div>-- create_table("enters", {:force=>true})</div>
<div>rake aborted!</div><div>uninitialized constant MysqlCompat::MysqlRes</div><div><br></div><div>I've tried googling and most of them go on about making sure mysql and ruby are 64bit which they are because I check with 'which ruby' & 'which mysql'</div>
<div><br></div><div>Does anyone have any ideas on why it is failing?</div><div><br></div><div>Thanks</div><div><br></div>-- <br>Kind Regards<br>Adrian Stainforth<br><br>Front-end Developer<br><br>
</div>