[Rails] Re: db connection problem: Mac X, MySQL 5, Rails 1

Rob rob at rhmdesign.com
Sat Jan 28 14:46:52 GMT 2006


Rick, et al. I stumbled across this thread when looking for info on this 
error:

/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/vendor/mysql.rb:1079: 
[BUG] Bus Error

My server (WEBrick) would hang on anything other than localhost:3000, 
but the description of your problem may be what's happening. I began the 
process you've outlined, but then get an error:

can't find header files for ruby.

when attempting to run:

ruby extconf.rb --with-mysql-config


Any thoughts as to what might be happening?


I've set up my rails config following the <a 
href="http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger">hivelogic 
tutorial</a>, and had mysql access issues for a while initially.


Rick Williams wrote:
> Hold it!  I did find this.  You need XCode installed to do this:
> 
> 
> Download and unpack this:
> 
> http://tmtm.org/downloads/mysql/ruby/mysql-ruby-2.7.tar.gz
> 
> cd to the unpacked directory and do this:
> 
> sudo gcc_select 4.0
> 
> export PATH=/usr/local/mysql/bin:$PATH
> 
> ruby extconf.rb --with-mysql-config
> 
> make
> 
> sudo make install


-- 
Posted via http://www.ruby-forum.com/.


More information about the Rails mailing list