cannot install mysql gem mysql on jruby 1.6.2 with --1.9 compatibility option
-----------------------------------------------------------------------------

                 Key: JRUBY-5869
                 URL: http://jira.codehaus.org/browse/JRUBY-5869
             Project: JRuby
          Issue Type: Bug
          Components: C Extensions
    Affects Versions: JRuby 1.6.2
         Environment: OS X, and Ubuntu 11.04
            Reporter: Celestino Gomes
            Assignee: Thomas E Enebo
            Priority: Blocker


celestino@gomes:~ (jruby-1.6.2@tmp) 
$ mysql --version
mysql  Ver 14.14 Distrib 5.1.53, for apple-darwin10.5.0 (i386) using readline 
6.1

celestino@gomes:~ (jruby-1.6.2@tmp) 
$ export JRUBY_OPTS='--1.9'                                                     
        

celestino@gomes:~ (jruby-1.6.2@tmp) 
$ jruby -v
jruby 1.6.2 (ruby-1.9.2-p136) (2011-05-23 e2ea975) (Java HotSpot(TM) 64-Bit 
Server VM 1.6.0_24) [darwin-x86_64-java]

celestino@gomes:~ (jruby-1.6.2@tmp) 
$ gem install mysql
Installing gem mysql-2.8.1
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/COPYING
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/COPYING.ja
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/History.txt
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/Manifest.txt
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/README.txt
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/Rakefile
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/ext/mysql_api/extconf.rb
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/ext/mysql_api/mysql.c
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/extra/README.html
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/extra/README_ja.html
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/extra/tommy.css
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/lib/mysql.rb
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/tasks/gem.rake
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/tasks/native.rake
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/tasks/vendor_mysql.rake
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/test/test_mysql.rb
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
        ERROR: Failed to build gem native extension.

        /Users/celestino/.rvm/rubies/jruby-1.6.2/bin/jruby extconf.rb
WARNING: JRuby does not support native extensions or the `mkmf' library very 
well.
Check http://kenai.com/projects/jruby/pages/Home for alternatives.
NoMethodError: undefined method `+' for nil:NilClass
  dir_config at 
/Users/celestino/.rvm/rubies/jruby-1.6.2/lib/ruby/site_ruby/shared/mkmf.rb:1218
     collect at org/jruby/RubyArray.java:2344
  dir_config at 
/Users/celestino/.rvm/rubies/jruby-1.6.2/lib/ruby/site_ruby/shared/mkmf.rb:1218
   init_mkmf at 
/Users/celestino/.rvm/rubies/jruby-1.6.2/lib/ruby/site_ruby/shared/mkmf.rb:1787
      (root) at 
/Users/celestino/.rvm/rubies/jruby-1.6.2/lib/ruby/site_ruby/shared/mkmf.rb:1812
     require at org/jruby/RubyKernel.java:1047
     require at 
/Users/celestino/.rvm/rubies/jruby-1.6.2/lib/ruby/site_ruby/shared/mkmf.rb:29
      (root) at extconf.rb:10


Gem files will remain installed in 
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1 for inspection.
Results logged to 
/Users/celestino/.rvm/gems/jruby-1.6.2@tmp/gems/mysql-2.8.1/ext/mysql_api/gem_make.out


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to