failed to build gem native extension

View: New views
6 Messages — Rating Filter:   Alert me  

failed to build gem native extension

by taboca () :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am trying to install ruby gems in Netbeans but I keep getting this error

I am using NB 6.1 RC2 and Ruby 1.8.6.

JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Building native extensions.  This could take a while...
ERROR:  Error installing bcrypt-ruby:
        ERROR: Failed to build gem native extension.

C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/bin/jruby.bat.exe extconf.rb install bcrypt-ruby --no-rdoc --no-ri --version > 0


Gem files will remain installed in C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/bcrypt-ruby-2.0.2 for inspection.
Results logged to C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/bcrypt-ruby-2.0.2/ext/gem_make.out

I tried with Ruby and JRuby and both give the same error.

Can anyone help me solve this problem?

Thank you,
T

Re: failed to build gem native extension

by Brian Leonard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello:

I just filed an issue against this:

http://www.netbeans.org/issues/show_bug.cgi?id=133766

/Brian

On Apr 22, 2008, at 8:25 PM, taboca wrote:

>
> Hello,
>
> I am trying to install ruby gems in Netbeans but I keep getting this  
> error
>
> I am using NB 6.1 RC2 and Ruby 1.8.6.
>
> JRuby limited openssl loaded. gem install jruby-openssl for full  
> support.
> http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
> Building native extensions.  This could take a while...
> ERROR:  Error installing bcrypt-ruby:
> ERROR: Failed to build gem native extension.
>
> C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/bin/jruby.bat.exe
> extconf.rb install bcrypt-ruby --no-rdoc --no-ri --version > 0
>
>
> Gem files will remain installed in C:/Program Files/NetBeans 6.1
> RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/bcrypt-ruby-2.0.2 for  
> inspection.
> Results logged to C:/Program Files/NetBeans 6.1
> RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/bcrypt-ruby-2.0.2/ext/
> gem_make.out
>
> I tried with Ruby and JRuby and both give the same error.
>
> Regards,
> T
> --
> View this message in context: http://www.nabble.com/failed-to-build-gem-native-extension-tp16827995p16827995.html
> Sent from the NetBeans Ruby - Users mailing list archive at  
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>



---
Brian Leonard
Technology Evangelist
408-404-6884
http://weblogs.java.net/blog/bleonard



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: failed to build gem native extension

by Martin Krauskopf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

taboca wrote:

> Hello,
>
> I am trying to install ruby gems in Netbeans but I keep getting this error
>
> I am using NB 6.1 RC2 and Ruby 1.8.6.
>
> JRuby limited openssl loaded. gem install jruby-openssl for full support.
> http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
> Building native extensions.  This could take a while...
> ERROR:  Error installing bcrypt-ruby:
> ERROR: Failed to build gem native extension.
>
> C:/Program Files/NetBeans 6.1 RC2/ruby2/jruby-1.1/bin/jruby.bat.exe
> extconf.rb install bcrypt-ruby --no-rdoc --no-ri --version > 0
>
>
> Gem files will remain installed in C:/Program Files/NetBeans 6.1
> RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/bcrypt-ruby-2.0.2 for inspection.
> Results logged to C:/Program Files/NetBeans 6.1
> RC2/ruby2/jruby-1.1/lib/ruby/gems/1.8/gems/bcrypt-ruby-2.0.2/ext/gem_make.out
>
> I tried with Ruby and JRuby and both give the same error.

You can't build native C extension by JRuby. So that fails. The fact
that RubyGems list native C extension for JRuby is probably something to
be enhanced in RubyGems itself.

You can't also easily build native C extension under Windows. E.g.
ruby-debug-base is offered/precompiled for mswin separately. So it's up
to gem maintainer if the pre-compiled version for mswin is offered or
not. In case of bcrypt-ruby there is not precompiled version, so you
have to compile it yourself to used under Windows, I guess.

Regards,
        m.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: failed to build gem native extension

by Piergiuliano Bossi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Apr 24, 2008 at 6:06 AM, Martin Krauskopf <Martin.Krauskopf@...> wrote:

You can't also easily build native C extension under Windows. E.g. ruby-debug-base is offered/precompiled for mswin separately. So it's up to gem maintainer if the pre-compiled version for mswin is offered or not. In case of bcrypt-ruby there is not precompiled version, so you have to compile it yourself to used under Windows, I guess.

Unless of course you go for the ruby interpreter under cygwin, where native extensions typically compile and work fine (well, to be honest sometimes you have to tune your cygwin environment).

Cheers,
Giuliano


Re: failed to build gem native extension

by Martin Krauskopf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Piergiuliano Bossi wrote:

> On Thu, Apr 24, 2008 at 6:06 AM, Martin Krauskopf
> <Martin.Krauskopf@... <mailto:Martin.Krauskopf@...>> wrote:
>
>
>     You can't also easily build native C extension under Windows. E.g.
>     ruby-debug-base is offered/precompiled for mswin separately. So it's
>     up to gem maintainer if the pre-compiled version for mswin is
>     offered or not. In case of bcrypt-ruby there is not precompiled
>     version, so you have to compile it yourself to used under Windows, I
>     guess.
>
>
> Unless of course you go for the ruby interpreter under cygwin, where
> native extensions typically compile and work fine (well, to be honest
> sometimes you have to tune your cygwin environment).

Yes, but then you hit the problem you've hit:

http://www.netbeans.org/nonav/issues/show_bug.cgi?id=132567

I know about it. But currently overhauled by something else. Will try it
to the 6.5 (or whatever it will be).

        m.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: failed to build gem native extension

by Piergiuliano Bossi-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Apr 24, 2008 at 10:01 AM, Martin Krauskopf <Martin.Krauskopf@...> wrote:


Unless of course you go for the ruby interpreter under cygwin, where native extensions typically compile and work fine (well, to be honest sometimes you have to tune your cygwin environment).

Yes, but then you hit the problem you've hit:

http://www.netbeans.org/nonav/issues/show_bug.cgi?id=132567

Yes, you're right.
I just wanted to clarify that it's possible to have a decent support for native extensions under windows (which is what brought me to cygwin).

I know about it. But currently overhauled by something else. Will try it to the 6.5 (or whatever it will be).

Thanks. In the meantime I may probably switch to Ubuntu.
 
Cheers,
Giuliano
LightInTheBox - Buy quality products at wholesale price