Gem update mysql issue


#1

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?


#2

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


#3

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.