# Gem update problem with mysql

**URL:** <https://www.ruby-forum.com/t/gem-update-problem-with-mysql/96282>\
**Category:** Ruby\
**Created:** [June 27, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/gem-update-problem-with-mysql/96282 "2006-06-27T22:22:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snacktime](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@snacktime](https://www.ruby-forum.com/u/snacktime)\
**Post date:** [June 27, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/gem-update-problem-with-mysql/96282/1 "2006-06-27T22:22:55Z")

</div>

Every time I run gem update, it prompts me to install mysql. Even  
after doing an uninstall and install again, I get the same thing every  
time. This is with the latest version of ruby and gems.

gem update --debug  
Exception `Errno::ENOENT’ at  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/config\_file.rb:12 - No such  
file or directory - /root/.gemrc  
Upgrading installed gems…  
Attempting remote upgrade of mysql  
Attempting remote installation of ‘mysql’  
Select which gem to install for your platform (i386-freebsd6)

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

> 2  
> Exception `LoadError' at /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21 - no such file to load -- Win32API Exception`LoadError’ at  
> /usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:29 - no  
> such file to load – Win32API  
> Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243

- File exists - /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Exception `Errno::EEXIST’ at /usr/local/lib/ruby/1.8/fileutils.rb:243
- File exists - .  
Building native extensions. This could take a while…  
ruby extconf.rb update --debug  
checking for mysql\_query() in -lmysqlclient… yes  
checking for mysql\_ssl\_set()… yes  
checking for mysql.h… no  
checking for mysql/mysql.h… yes  
creating Makefile

make  
cc -fPIC -O -pipe -march=pentiumpro -fPIC -I.  
-I/usr/local/lib/ruby/1.8/i386-freebsd6  
-I/usr/local/lib/ruby/1.8/i386-freebsd6 -I. -DHAVE\_MYSQL\_SSL\_SET  
-DHAVE\_MYSQL\_MYSQL\_H -I/usr/local/include -c mysql.c  
cc -shared -Wl,-soname,mysql.so -L’/usr/local/lib’  
-Wl,-R’/usr/local/lib’ -L’/usr/local/lib’ -Wl,-R’/usr/local/lib’  
-L’/usr/local/lib/mysql’ -Wl,-R’/usr/local/lib/mysql’ -o mysql.so  
mysql.o -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -L. -lruby18  
-lmysqlclient -lcrypt -lm -pthread -lc

make install  
/usr/bin/install -c -o root -g wheel -m 0755 mysql.so  
/usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib  
Successfully installed mysql-2.7  
Gems: [mysql] updated  
removing /tmp/open-uri45500.0…done
