Error installing gem "mysql" in Ruby 1.9.1

  • Thread starter Iñaki Baz Castillo
  • Start date
I

Iñaki Baz Castillo

Hi, trying to install gem "mysql" in Ruby 1.9.1 I get an error:

error: =E2=80=98struct RString=E2=80=99 has no member named =E2=80=98ptr=
=E2=80=99

This is due to RString changes from Ruby 1.8 (now in 1.9.1 RSTRING_PTR(arg)=
=20
must be used instead of RSTRING(arg)->ptr).

What can I do to get mysql working in Ruby 1.9.1? where can I get an update=
d=20
MySQL driver?

Thanks a lot.

=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>
 
I

Iñaki Baz Castillo

El S=C3=A1bado 04 Abril 2009, I=C3=B1aki Baz Castillo escribi=C3=B3:
Hi, trying to install gem "mysql" in Ruby 1.9.1 I get an error:

error: =E2=80=98struct RString=E2=80=99 has no member named =E2=80=98pt= r=E2=80=99

This is due to RString changes from Ruby 1.8 (now in 1.9.1 RSTRING_PTR(ar= g)
must be used instead of RSTRING(arg)->ptr).

What can I do to get mysql working in Ruby 1.9.1? where can I get an
updated MySQL driver?

I've got it from here:
http://github.com/radar/mysql/tree/master

and also good doc about this issue here:
http://frozenplague.net/2009/01/ruby-191-rubygems-rails/

=2D-=20
I=C3=B1aki Baz Castillo <[email protected]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,165
Latest member
JavierBrak
Top