My question is, according to MySQL/Ruby I need
to add a path to the end of extconf.rb, such as
ruby extconf.rb --with-mysql-dir=/usr/local/mysql
I have ruby installed at c:\ruby
And mysql installed at c:\program files\mysql
What will be the path?
Totally lost here,
http://www.tmtm.org/en/mysql/ruby/
The above link points to a ruby extension for mysql that is written in
C. It has to be compiled. Compiling it on windows is a real
pain. The “ruby extconf.rb …” command is used to start compiling the
extension.
The above link points to a ruby extension for mysql that is written in
C. It has to be compiled. Compiling it on windows is a real
pain. The “ruby extconf.rb …” command is used to start compiling the
extension.
I’m not sure who’s but this is but you have to make sure that the
msql\bin entry in your path environment variable is set and if it’s the
last entry it must have a semi colon at the end otherwise somethings not
finding it.
Ok, I’m having the same problem getting mysql to work with ruby. I
tried your approach. When I entered gem install mysql I get a few
options. I chose the second option “mysql 2.7 (ruby)” and got the
following error:
Failed to gem native extension
As expected, both test options failed. When I tried require ‘rubygems’
in irb it returned false. I also saw the message concerning the
rubyapache download but am not sure what apache is. Any thoughts?
That code failed, I searched and found I have to run extconf.rb
hi i also had issues with ruby/mysql, if ruby and mysql are working
independantly but don’t talk to each other, you might want to check this
out:http://www.ruby-forum.com/topic/8061#3353
i personally never installed any C code modules and i never ran
extconf.rb - this may be what you are looking for, however i’m still
hoping to find out why this solved my problems(if there are any people
out there who might know’maybe it’s cos i never ran etconf.rb, i’m not
willing to find out though’)
good luck
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.