# Installation problem with mysql gem

**URL:** <https://www.ruby-forum.com/t/installation-problem-with-mysql-gem/145076>\
**Category:** Rails\
**Created:** [August 5, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/installation-problem-with-mysql-gem/145076 "2008-08-05T19:37:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jalotta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e47774/32.png) [@jalotta](https://www.ruby-forum.com/u/jalotta)\
**Post date:** [August 5, 2008, 7:37pm UTC](https://www.ruby-forum.com/t/installation-problem-with-mysql-gem/145076/1 "2008-08-05T19:37:45Z")

</div>

Hi,

Can someone help with my install of mysql gem? This is the error I  
have been getting. When I did the gem install of mysql there was no  
error. If you want to see the entire log of the install I will send  
it.

Thank you so much,

Joe

[Hosea:~/ruby] jja% cat bday.rb  
#!/usr/bin/env ruby

require ‘mysql’  
require ‘date’

m = Mysql.new(“localhost”, “root”, “”, “Development”)

print “Birthday Report — #{Date.today}\n”  
print “------------------------------------------\n”  
print " Name Birthdate Age DaysTil\n"  
print “------------------------------------------\n”

r = m.query(“select name, dob, (TO\_DAYS(CURRENT\_DATE) - TO\_DAYS(dob))/  
365.25 as age,  
(DAYOFYEAR(dob) - DAYOFYEAR(CURRENT\_DATE)) as daystil  
from birthdays  
order by daystil”)

r.each\_hash do |i|  
printf( “%-10.10s %10.10s %5.2f %5.0f\n”,  
i[‘name’],  
i[‘dob’],  
i[‘age’],  
i[‘daystil’] )  
end

[Hosea:~/ruby] jja% bday.rb  
dyld: NSLinkModule() error  
dyld: Symbol not found: \_mysql\_stmt\_store\_result  
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/  
mysql.bundle  
Expected in: flat namespace

Trace/BPT trap
