Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to run rake db:migrate in Rails, and every single time I try I get the same error :

[BUG] Segmentation fault
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.3.0]

I have installed: gcc v4.2.1 ruby 1.9.3p194 rails 3.2.13 The most recent version of XCode (updated last night) homebrew 0.9.1 mysql 5.0.96

I have been searching SO and other sites all afternoon, and I've only found answers to my question for Linux/Debian.

Other things to note: The mysql gem (and mysql2) does not install to my machine. When attempting to install I get a this message:

ERROR:  Error installing mysql:
ERROR: Failed to build gem native extension.

/Users/USERNAME/.rvm/rubies/ruby-1.9.3-p194/bin/ruby 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... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
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.

Anyone have any ideas! I'm very new to rails and fairly new to ruby, but this error has been completely hampering my progress. Thanks!

share|improve this question
Surely there is more information preceding that error. – Deefour 39 mins ago
possible duplicate of Rails Annotate Segmentation Fault – matt 39 mins ago
The only information preceding that error, Deefour, is a path list to where my Ruby is installed and the command I gave to Terminal. Also, matt, my problem is unfortunately not covered by the question you linked to. – Errorsum 28 mins ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.