Skip to content

Instantly share code, notes, and snippets.

Created March 10, 2014 01:55
Show Gist options
  • Save anonymous/9458193 to your computer and use it in GitHub Desktop.
Save anonymous/9458193 to your computer and use it in GitHub Desktop.
require 'mysql2'
@client = Mysql2::Client.new( :host => "127.0.0.1", :database => "bp",:username => "root", :password => "" )
# Result --->
$ ruby testmysql.rb
dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info
Referenced from: /Library/Ruby/Gems/2.0.0/gems/mysql2-0.3.15/lib/mysql2/mysql2.bundle
Expected in: flat namespace
dyld: Symbol not found: _mysql_get_client_info
Referenced from: /Library/Ruby/Gems/2.0.0/gems/mysql2-0.3.15/lib/mysql2/mysql2.bundle
Expected in: flat namespace
Trace/BPT trap: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment