Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8655629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:04:40+00:00 2026-06-12T15:04:40+00:00

I installed mysql 5.1.61 from official site. It has been compiled and installed but

  • 0

I installed mysql 5.1.61 from official site. It has been compiled and installed but now when i try to run simple rake db:migrate it show such error

Connecting to {:password=>nil, :encoding=>"utf8", :database=>"mnemosyne_spec", :host=>"localhost", :username=>"root", :adapter=>"mysql2"}
rake aborted!
LoadError: dlsym(0x7faaf9048bf0, Init_mysql2): symbol not found - /Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle

Tasks: TOP => db:migrate

Full trace:

** Invoke db:migrate (first_time)
** Execute db:migrate
Connecting to {:password=>nil, :encoding=>"utf8", :database=>"mnemosyne_spec", :host=>"localhost", :username=>"root", :adapter=>"mysql2"}
rake aborted!
LoadError: dlsym(0x7fafa1d30510, Init_mysql2): symbol not found - /Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/mysql2-0.3.11/lib/mysql2.rb:9
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/adapters/mysql2.rb:1:in `require'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/adapters/mysql2.rb:1
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/core.rb:379:in `k_require'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/core.rb:379:in `tsk_require'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/core.rb:100:in `check_requiring_thread'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/core.rb:97:in `synchronize'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/core.rb:97:in `check_requiring_thread'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/core.rb:379:in `tsk_require'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/database/connecting.rb:25:in `adapter_class'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/database/connecting.rb:67:in `connect'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/gems/sequel-3.39.0/lib/sequel/core.rb:147:in `connect'
/Users/serg/rails_projects_terminal/brandspotter/mnemosyne/lib/mnemosyne.rb:52:in `db_connect!'
/Users/serg/rails_projects_terminal/brandspotter/mnemosyne/lib/mnemosyne.rb:32:in `configure'
/Users/serg/rails_projects_terminal/brandspotter/mnemosyne/lib/mnemosyne.rb:25:in `initialize!'
/Users/serg/rails_projects_terminal/brandspotter/mnemosyne/lib/mnemosyne/database_tasks.rb:21:in `initialize'
/Users/serg/rails_projects_terminal/brandspotter/mnemosyne/lib/mnemosyne/database_tasks.rb:83:in `initialize'
/Users/serg/rails_projects_terminal/brandspotter/mnemosyne/Rakefile:63:in `new'
/Users/serg/rails_projects_terminal/brandspotter/mnemosyne/Rakefile:63
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/Users/serg/.rvm/rubies/ruby-1.8.7-p370/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/gems/rake-0.9.2.2/bin/rake:33
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/bin/rake:19:in `load'
/Users/serg/.rvm/gems/ruby-1.8.7-p370@global/bin/rake:19
/Users/serg/.rvm/gems/ruby-1.8.7-p370@mnemosyne/bin/ruby_noexec_wrapper:14
Tasks: TOP => db:migrate

I tried to reinstall ruby and gems and it changed nothing. What can i do to solve that?

My info:

Mac OS X 10.8.2 Mountain Lion
Xcode 4.5.1
osx-gcc-installer
Mysql  Ver 14.14 Distrib 5.1.61, for apple-darwin10.3.0 (i386) using readline 5.1
RVM 1.16.10

P.S. I didn’t have such problem with mysql installation from homebrew.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:04:41+00:00Added an answer on June 12, 2026 at 3:04 pm

    I founded the solution!

    Problem was in MySQL installation. It was x86 which is not correct for Mac OS X 10.7 +.

    1) So, first of all we should remove old version of MySQL:

    $ sudo rm /usr/local/mysql
    $ sudo rm -rf /usr/local/mysql*
    $ sudo rm -rf /Library/StartupItems/MySQLCOM
    $ sudo rm -rf /Library/PreferencePanes/My*
    $ sudo rm -rf /Library/Receipts/mysql*
    $ sudo rm -rf /Library/Receipts/MySQL*
    $ sudo rm -rf /var/db/receipts/com.mysql.*
    

    1.1) After that run

    $ nano /etc/hostconfig
    

    And remove line with

    MYSQLCOM=-YES-
    

    2) Just to make sure that everything will be alright you can remove at least mysql gem:

    $ gem uninstall mysql2
    

    Or you can remove all gems in your gemset via rvm:

    $ rvm gemset empty your-gemset-name
    

    3) Then install x64 MySQL version.

    4) And install all missing gems via bundler:

    $ bundle
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

two computers installed mysql 5.5.25a which downloaded from the mysql official site. one is
I have downloaded mysql-connector-python-1.0.7-py2.7.msi from MySQL site and try to install but it gives
I installed mysql server on linux box IP = 192.168.1.100 but when i try
i installed apache and mysql 5.5 on windows 7 64 bit. it worked but
How to remove my corrupted mysql from wamp and connect separatly installed mysql to
Hy! I have a debian server with a installed mysql server. Now my problem
When I try to connect to a MySQL Database from my .NET application i
I've compiled & installed a mysql-5.1.59 on a x86_64 linux server. First I set
I just installed MySQL 5 on my server and imported a database from another
I've just installed MySQL Community server (5.5.8) on Mac OS X 10.6.6. I've been

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.