To sum this up, gem install mysql crashes when looking for version.h.
This is happening after a fresh install of Ruby, Ruby Gems, and the
Mysql gem. Shouldn't a fresh install of ruby create version.h and
place it in the correct directory?
john: uname -a
FreeBSD sporkit.com 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7
04:32:43 UTC 2006
To sum this up, gem install mysql crashes when looking for version.h.
This is happening after a fresh install of Ruby, Ruby Gems, and the
Mysql gem. Shouldn't a fresh install of ruby create version.h and
place it in the correct directory?
I think version.h disappeared in ruby 1.9. Looks like it's trying to
build a version of the mysql gem that isn't compatible with ruby 1.9
(the other errors indicate that too) - i think ruby 1.9.1 needs 2.8.1
(http://rubyforge.org/frs/?group_id=4550)
Ok, I've followed the instructions and compiled, installed, and tested
successfully. However mysql is not showing up with the "gem list"
command.
Did you install rubygems yourself? It was my recollection that ruby
1.9 shipped with rubygems built in. Might you have crushed that by
installing it yourself ?
/usr/local/lib/ruby/gems/1.8/gems/rubygems-update-1.3.1/bin/gem list
/usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.1/bin/gem list
produce the same output. neither mention mysql. after running make
install on the mysql tar, that should have added it to the gems list
automatically? Is there another step I'm missing? Here's me
attempting to the latest version of mysql from the remote repository.
john: /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.1/bin/
gem list -r | grep mysql
activerecord-jdbcmysql-adapter (0.9.1)
dbd-mysql (0.4.2)
do_mysql (0.9.11)
jdbc-mysql (5.0.4)
motto-mysql (0.1.0)
mysql (2.7.3, 2.7)
mysql_replication_adapter (0.4.0)
mysql_retry_lost_connection (0.0.1)
john: /usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.1/bin/
gem install mysql -v "2.7.3"
ERROR: could not find gem mysql locally or in a repository
I'm totally out of ideas. Is there a way I could clean all this up
and try again fresh? Thanks for the help thus far Fred.
/usr/local/lib/ruby/gems/1.8/gems/rubygems-update-1.3.1/bin/gem list
/usr/local/lib/ruby/gems/1.9.1/gems/rubygems-update-1.3.1/bin/gem list
produce the same output. neither mention mysql. after running make
install on the mysql tar, that should have added it to the gems list
automatically? Is there another step I'm missing? Here's me
attempting to the latest version of mysql from the remote repository.
make install on the mysql tar might have installed it not as a gem
(but there might be rake files in there for building it as a gem)
There is no rake file in the source directory. I think I'm about
ready to just give up on this problem. Maybe, upgrade my freebsd
system like i've been needing to for years and start using the ports
collection...
I think version.h disappeared in ruby 1.9. Looks like it's trying to
build a version of the mysql gem that isn't compatible with ruby 1.9
(the other errors indicate that too) - i think ruby 1.9.1 needs 2.8.1
(http://rubyforge.org/frs/?group_id=4550)
That's not building yet either, at least not for me:
I am having the exact same issue.
Any solutions yet?
you need to install mysql client headers first, and then [since it's
ruby 1.9] you'll need a newer version than what the gem provides
either download 2.8.1 or a different gem
http://isitruby19.com/mysql
GL.
-r