Salman Ansari
Salman Ansari

Reputation: 21

Error with mysql2 gem loading Rails env on OSX: "Symbol not found: _rb_prohibit_interrupt"

Whenever i try to load the rails env (raking, loading console, etc.), I get this: rake aborted! dlopen(/Users/daretorant/.rvm/gems/ruby-1.9.3-p194@amp/bundler/gems/mysql2-f4d004ac5194/lib/mysql2/mysql2.bundle, 9): Symbol not found: _rb_prohibit_interrupt Referenced from: /Users/daretorant/.rvm/gems/ruby-1.9.3-p194@amp/bundler/gems/mysql2-f4d004ac5194/lib/mysql2/mysql2.bundle Expected in: flat namespace in /Users/daretorant/.rvm/gems/ruby-1.9.3-p194@amp/bundler/gems/mysql2-f4d004ac5194/lib/mysql2/mysql2.bundle - /Users/daretorant/.rvm/gems/ruby-1.9.3-p194@amp/bundler/gems/mysql2-f4d004ac5194/lib/mysql2/mysql2.bundle /Users/daretorant/.rvm/gems/ruby-1.9.3-p194@amp/bundler/gems/mysql2-f4d004ac5194/lib/mysql2.rb:9:in require' /Users/daretorant/.rvm/gems/ruby-1.9.3-p194@amp/bundler/gems/mysql2-f4d004ac5194/lib/mysql2.rb:9:in'

.........

Things I've tried:

Help?

Upvotes: 2

Views: 348

Answers (1)

Paweł Gościcki
Paweł Gościcki

Reputation: 9624

I have just run into this issue. What had helped me was installing the 64bit version of the mysql2 gem, like this:

$ env ARCHFLAGS="-arch x86_64" gem install mysql2

Upvotes: 0

Related Questions