mysql gem failure

D

Dave Lilley

This is cross posted from ironruby where I've not had any replies.

Installed sequel gem okay but mysql throws up this error when i try to
install.

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>igem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

"C:/Program Files/IronRuby 1.1/bin/ir.exe" extconf.rb
extconf.rb:99: syntax error, unexpected end of file, expecting `end'



Gem files will remain installed in C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1
9.1/gems/mysql-2.8.1 for inspection.
Results logged to C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1.9.1/gems/mysql-2
8.1/ext/mysql_api/gem_make.out

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>

I would prefer to use the ruby gems as I'm using ironruby to generate
the GUI front end for data entry.

any help ?

TiA
 
E

Eric Christopherson

This is cross posted from ironruby where I've not had any replies.

Installed sequel gem okay but mysql throws up this error when i try to
install.

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>igem install mysql
Building native extensions. =A0This could take a while...
ERROR: =A0Error installing mysql:
=A0 =A0 =A0 =A0ERROR: Failed to build gem native extension.

"C:/Program Files/IronRuby 1.1/bin/ir.exe" extconf.rb
extconf.rb:99: syntax error, unexpected end of file, expecting `end'



Gem files will remain installed in C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1
.9.1/gems/mysql-2.8.1 for inspection.
Results logged to C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1.9.1/gems/mysql-2
.8.1/ext/mysql_api/gem_make.out

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>

I would prefer to use the ruby gems as I'm using ironruby to generate
the GUI front end for data entry.

any help ?

I don't think IronRuby supports native extensions, which the mysql gem
uses. You might have to use a .NET library (I've never used such a
thing, so I don't know what to look for, but it'd probably be like
JDBC for Java).
 
J

Josh Cheek

This is cross posted from ironruby where I've not had any replies.

Installed sequel gem okay but mysql throws up this error when i try to
install.

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>igem install mysql
Building native extensions. =A0This could take a while...
ERROR: =A0Error installing mysql:
=A0 =A0 =A0 =A0ERROR: Failed to build gem native extension.

"C:/Program Files/IronRuby 1.1/bin/ir.exe" extconf.rb
extconf.rb:99: syntax error, unexpected end of file, expecting `end'



Gem files will remain installed in C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1
.9.1/gems/mysql-2.8.1 for inspection.
Results logged to C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1.9.1/gems/mysql-2
.8.1/ext/mysql_api/gem_make.out

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>

I would prefer to use the ruby gems as I'm using ironruby to generate
the GUI front end for data entry.

any help ?

TiA


It says there is a syntax error, that you have the incorrect number of
ends in the file extconf.rb

Have you checked to make sure that you have an "end" for every "do",
"def", "class", and "if" (and anything else that requires one)?
 
J

Josh Cheek

It says there is a syntax error, that you have the incorrect number of
ends in the file extconf.rb

Have you checked to make sure that you have an "end" for every "do",
"def", "class", and "if" (and anything else that requires one)?


Actually, looking again, if this is pulling from rubygems, then I
think the correct gem to install is mysql2
(http://rubygems.org/gems/mysql2) the mysql gem hasn't been updated in
two years. If you try installing mysql2, do you get the same error?
 
L

Luis Lavena

This is cross posted from ironruby where I've not had any replies.

Installed sequel gem okay but mysql throws up this error when i try to
install.

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>igem install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.

"C:/Program Files/IronRuby 1.1/bin/ir.exe" extconf.rb
extconf.rb:99: syntax error, unexpected end of file, expecting `end'

Gem files will remain installed in C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1
9.1/gems/mysql-2.8.1 for inspection.
Results logged to C:/Program Files/IronRuby
1.1/Lib/ruby/gems/1.9.1/gems/mysql-2
8.1/ext/mysql_api/gem_make.out

C:\Documents and Settings\Owner\My Documents\ruby_test\rub
y_test>

I would prefer to use the ruby gems as I'm using ironruby to generate
the GUI front end for data entry.

any help ?

mysql or mysql2 gems will not work under IronRuby.

These gems use C code (as Ruby extensions) to communicate with MySQL.

IronRuby can't compile extensions like this.

Check on IronRuby list for alternate adapters that use C# or managed
code and can be used instead.
 

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,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top