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 ?
On Mon, Apr 2, 2012 at 11:42 AM, Jedrin [email protected] 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
Off 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 S. ------------------------ [email protected]
twitter: @hassan
Assuming you’re using rvm, create a separate gemset and do your
bundle installwith 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.
On Mon, Apr 2, 2012 at 3:53 PM, Jedrin [email protected] 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 S. ------------------------ [email protected]
twitter: @hassan
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 L.
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:
good luck,
@YogiZoli
On Apr 3, 1:06am, Hassan S. [email protected]