# Gem update mysql issue

**URL:** <https://www.ruby-forum.com/t/gem-update-mysql-issue/59794>\
**Category:** Ruby\
**Created:** [May 6, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/gem-update-mysql-issue/59794 "2006-05-06T18:53:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweatje](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Post date:** [May 6, 2006, 6:53pm UTC](https://www.ruby-forum.com/t/gem-update-mysql-issue/59794/1 "2006-05-06T18:53:36Z")

</div>

I’m trying to do a gem update on my OSX box, and, although it’s always  
worked fine, lately every time I attempt to do an update , I get faced  
with the following:

sudo gem update

Upgrading installed gems…  
Attempting remote upgrade of mysql  
Attempting remote installation of ‘mysql’  
Select which gem to install for your platform (powerpc-darwin8.0)

1. mysql 2.7.2006.04.21 (mswin32)
2. mysql 2.7 (ruby)
3. mysql 2.6 (ruby)
4. mysql 2.5.1 (ruby)
5. Cancel installation

> 

I choose 2, which is the same gem already installed on my machine, and I  
get this:

Building native extensions. This could take a while…  
ruby extconf.rb update  
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

make  
make: Nothing to be done for `all’.

make install  
install -c -p -m 0755 mysql.bundle  
/usr/lib/ruby/gems/1.8/gems/mysql-2.7/lib  
Successfully installed mysql-2.7  
Gems: [mysql] updated

The next time I try to do an update, I get it again! It won’t seem to  
go away! Any ideas?

---

<div class="post-metadata">

**Author:** ![sweatje](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Post date:** [May 6, 2006, 9:25pm UTC](https://www.ruby-forum.com/t/gem-update-mysql-issue/59794/2 "2006-05-06T21:25:29Z")

</div>

Are you doing ‘sudo gem update mysql – --with-mysql-dir=/usr/local/  
mysql’ ?

---

<div class="post-metadata">

**Author:** ![sweatje](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Post date:** [May 7, 2006, 1:33am UTC](https://www.ruby-forum.com/t/gem-update-mysql-issue/59794/3 "2006-05-07T01:33:22Z")

</div>

No, I’m simply doing a ‘sudo gem update’ to update all installed gems.  
If I attempt a full ‘sudo gem update mysql –  
–with-mysql-dir=/usr/local/mysql’, I get the same result. The point is  
that I already have 2.7 installed and I don’t need to install it,  
butit’s like gem won’t drop it off the list once it is installed.
