The pg gem won't install in 1.9 mode (didn't test with other gems using c 
extensions)
-------------------------------------------------------------------------------------

                 Key: JRUBY-5475
                 URL: http://jira.codehaus.org/browse/JRUBY-5475
             Project: JRuby
          Issue Type: Bug
          Components: C Extensions
    Affects Versions: JRuby 1.6RC2
         Environment: Debian Unstable, x86_64
            Reporter: Rodrigo Rosenfeld Rosas
            Assignee: Thomas E Enebo


Doing "bin/jruby -S gem install pg", after "export JRUBY_OPTS='--1.9'", I get:

> export JRUBY_OPTS="-1.9"
> bin/jruby -S gem install pg

Fetching: pg-0.10.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.

/home/rodrigo/src/externos/jruby/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.
/home/rodrigo/src/externos/jruby/lib/ruby/1.9/mkmf.rb:31 warning: already 
initialized constant RUBY_PLATFORM
/home/rodrigo/src/externos/jruby/lib/ruby/1.9/mkmf.rb:1216:in `dir_config': 
undefined method `+' for nil:NilClass (NoMethodError)
from org/jruby/RubyArray.java:2469:in `collect19'
from /home/rodrigo/src/externos/jruby/lib/ruby/1.9/mkmf.rb:1216:in `dir_config'
from /home/rodrigo/src/externos/jruby/lib/ruby/1.9/mkmf.rb:1785:in `init_mkmf'
from /home/rodrigo/src/externos/jruby/lib/ruby/1.9/mkmf.rb:1810:in `(root)'
from org/jruby/RubyKernel.java:1047:in `require19'
from /home/rodrigo/src/externos/jruby/lib/ruby/1.9/mkmf.rb:29:in `require'
from extconf.rb:2:in `(root)'

Gem files will remain installed in 
/home/rodrigo/src/externos/jruby/lib/ruby/gems/1.8/gems/pg-0.10.1 for 
inspection.
Results logged to 
/home/rodrigo/src/externos/jruby/lib/ruby/gems/1.8/gems/pg-0.10.1/ext/gem_make.out

It works great with the "--1.9" option.

Regards, Rodrigo.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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