From: Josh Cheek Date: 2011-05-23T23:42:37+09:00 Subject: Re: mysql gem failure On Mon, May 23, 2011 at 9:37 AM, Josh Cheek wrote: > On Fri, May 20, 2011 at 4:40 AM, Dave Lilley wrote: >> 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 >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > > 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?