Jedrin
2012-Apr-02 18:42 UTC
Problem: jruby -S bundle install - tries to build native extension of yajl-ruby
I am trying to build a rails app I wrote in JRuby. When I run bundle install it errors out on yajl-ruby trying to build it as a native extension. I think it must have some dependency with a different gem. How can I figure out what is causing it to want to use that gem or how to work around it ? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2012-Apr-02 19:10 UTC
Re: Problem: jruby -S bundle install - tries to build native extension of yajl-ruby
On Mon, Apr 2, 2012 at 11:42 AM, Jedrin <jrubiando-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I am trying to build a rails app I wrote in JRuby. When I run bundle > install it errors out on yajl-ruby trying to build it as a native extension. > I think it must have some dependency with a different gem. How can > I figure out what is causing it to want to use that gemOff the top of my head: Assuming you''re using rvm, create a separate gemset and do your `bundle install` with MRI and then examine the Gemfile.lock that''s been built. And for a graphical good time, use `bundle viz` :-) HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Jedrin
2012-Apr-02 22:53 UTC
Re: Problem: jruby -S bundle install - tries to build native extension of yajl-ruby
> > Assuming you''re using rvm, create a separate gemset and do your > `bundle install` with MRI and then examine the Gemfile.lock that''s > been built. >Thanks, but I am on windows. I found a FAQ that says RVM doesn''t run on windows. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2012-Apr-02 23:06 UTC
Re: Re: Problem: jruby -S bundle install - tries to build native extension of yajl-ruby
On Mon, Apr 2, 2012 at 3:53 PM, Jedrin <jrubiando-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thanks, but I am on windows. I found a FAQ that says RVM doesn''t run > on windows.I believe there''s an equivalent for Windows, or you could use a VM to isolate the experiment from your "regular" installation, but that''s really just about housekeeping, cleanup afterwards, and beside the point :-) However you create it, the Gemfile.lock generated via MRI will identify the dependency. -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
YogiZoli
2012-Apr-03 16:09 UTC
Re: Problem: jruby -S bundle install - tries to build native extension of yajl-ruby
On win you may wanna use Pik as an alternative of RVM, or you can use RVM with cgywin, or alternatively using Virtual Machine. I highly recommend using RVM somehow because you''re gonna have Gem version problems all the time which is really annoying. This article makes things clear: http://yehudakatz.com/2011/05/30/gem-versioning-and-bundler-doing-it-right/ good luck, @YogiZoli On Apr 3, 1:06 am, Hassan Schroeder <hassan.schroe...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Apr 2, 2012 at 3:53 PM, Jedrin <jrubia...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Thanks, but I am on windows. I found a FAQ that says RVM doesn''t run > > on windows. > > I believe there''s an equivalent for Windows, or you could use a VM to > isolate the experiment from your "regular" installation, but that''s really > just about housekeeping, cleanup afterwards, and beside the point :-) > > However you create it, the Gemfile.lock generated via MRI will identify > the dependency. > > -- > Hassan Schroeder ------------------------ hassan.schroe...-Re5JQEeQqe80Tx58lXaADg@public.gmane.org://about.me/hassanschroeder > twitter: @hassan-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Luis Lavena
2012-Apr-04 23:11 UTC
Re: Problem: jruby -S bundle install - tries to build native extension of yajl-ruby
On Monday, April 2, 2012 3:42:38 PM UTC-3, Jedrin wrote:> > > I am trying to build a rails app I wrote in JRuby. > When I run bundle install it errors out on > yajl-ruby trying to build it as a native extension. I think it must > have some dependency > with a different gem. How can I figure out what is causing it to want > to use that gem or how to > work around it ? >For JRuby to be able to compile the extension you need a compiler. Get a compiler that can compile C extensions for JRuby (hint: RubyInstaller''s DevKit is known to be compatible). Once you install it try to install the gem again. -- Luis Lavena -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/MgK3mhkC9jYJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.