I just tried to install Merb 1.0 on my mac using jruby 1.1.5 (latest) but see the same error related to native extension.
Any workaround that I can use to get past this?
thanks,
-vivek.
gem install merb --backtrace --debug Exception `LoadError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - #<LoadError:0x4db085> Exception `Gem::LoadError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:636 - #<Gem::LoadError:0x8f110d> Exception `Gem::LoadError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - #<Gem::LoadError:0x8f110d> JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL Exception `LoadError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - #<LoadError:0xcb191> Exception `Gem::LoadError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:636 - #<Gem::LoadError:0x5dae4f> Exception `Gem::LoadError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:636 - #<Gem::LoadError:0x8fc07d> Building native extensions. This could take a while... /tools/jruby-1.1.5/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native extensions. Check wiki.jruby.org for alternatives. (NotImplementedError) from /tools/jruby-1.1.5/lib/ruby/1.8/mkmf.rb:21:in `require' from extconf.rb:21 Exception `Gem::InstallError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb:51 - #<Gem::InstallError:0xf75a71> Exception `Gem::Installer::ExtensionBuildError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/installer.rb:502 - #<Gem::Installer::ExtensionBuildError:0xaf655e> ERROR: Error installing merb: ERROR: Failed to build gem native extension.
Gem files will remain installed in /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6 for inspection. Results logged to /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/ext/gem_make.out Exception `Gem::LoadError' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:636 - #<Gem::LoadError:0x838ae3> Exception `Gem::SystemExitException' at /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/commands/install_command .rb:144 - #<Gem::SystemExitException:0x19e78b>
A better looking stack trace, it is really with do_sqlite3-0.9.6. Would jdbcsqlite3 gem won't serve the purpose?
-vivek.
gem install merb -V JRuby limited openssl loaded. gem install jruby-openssl for full support. http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL GET 304 Not Modified: http://gems.rubyforge.org/latest_specs.4.8.gz GET 304 Not Modified: http://gems.rubyforge.org/specs.4.8.gz Installing gem do_sqlite3-0.9.6 /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/History.txt /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/LICENSE /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/Manifest.txt /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/README.txt /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/Rakefile /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/TODO /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/ext/do_sqlite3_e xt.c /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/ext/extconf.rb /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/lib/do_sqlite3.r b /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/lib/do_sqlite3/t ransaction.rb /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/lib/do_sqlite3/v ersion.rb /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/spec/integration /do_sqlite3_spec.rb /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/spec/integration /logging_spec.rb /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/spec/integration /quoting_spec.rb /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/spec/spec.opts /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/spec/spec_helper .rb /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/spec/unit/transa ction_spec.rb Building native extensions. This could take a while... /tools/jruby-1.1.5/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native extensions. Check wiki.jruby.org for alternatives. (NotImplementedError) from /tools/jruby-1.1.5/lib/ruby/1.8/mkmf.rb:21:in `require' from extconf.rb:21 ERROR: Error installing merb: ERROR: Failed to build gem native extension.
Gem files will remain installed in /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6 for inspection. Results logged to /tools/jruby-1.1.5/lib/ruby/gems/1.8/gems/do_sqlite3-0.9.6/ext/gem_make.out
On Sat, Nov 8, 2008 at 6:43 AM, Vivek Pandey <vivek.pan...@gmail.com> wrote: > I just tried to install Merb 1.0 on my mac using jruby 1.1.5 (latest) but > see the same error related to native extension.
> Any workaround that I can use to get past this?
> thanks,
> -vivek.
> gem install merb --backtrace --debug > Exception `LoadError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - > #<LoadError:0x4db085> > Exception `Gem::LoadError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:636 - > #<Gem::LoadError:0x8f110d> > Exception `Gem::LoadError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - > #<Gem::LoadError:0x8f110d> > JRuby limited openssl loaded. gem install jruby-openssl for full support. > http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL > Exception `LoadError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:38 - > #<LoadError:0xcb191> > Exception `Gem::LoadError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:636 - > #<Gem::LoadError:0x5dae4f> > Exception `Gem::LoadError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems.rb:636 - > #<Gem::LoadError:0x8fc07d> > Building native extensions. This could take a while... > /tools/jruby-1.1.5/lib/ruby/1.8/mkmf.rb:7: JRuby does not support native > extensions. Check wiki.jruby.org for alternatives. (NotImplementedError) > from /tools/jruby-1.1.5/lib/ruby/1.8/mkmf.rb:21:in `require' > from extconf.rb:21 > Exception `Gem::InstallError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb:51 - > #<Gem::InstallError:0xf75a71> > Exception `Gem::Installer::ExtensionBuildError' at > /tools/jruby-1.1.5/lib/ruby/site_ruby/1.8/rubygems/installer.rb:502 - > #<Gem::Installer::ExtensionBuildError:0xaf655e> > ERROR: Error installing merb: > ERROR: Failed to build gem native extension.
On Sat, Nov 8, 2008 at 11:43 AM, Vivek Pandey <vivek.pan...@gmail.com> wrote: > I just tried to install Merb 1.0 on my mac using jruby 1.1.5 (latest) but > see the same error related to native extension.
> Any workaround that I can use to get past this?
"merb" gem add as dependency datamapper components, which includes do_sqlite3. At this time do_sqlite3 has no Java implementation.
I think the datamapper dependency of merb should be removed and leave merb alone. After all, some users will like to use ActiveRecord instead.
-- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams
On Sat, Nov 8, 2008 at 11:56 AM, Per Melin <per.me...@gmail.com> wrote:
>>> Any workaround that I can use to get past this?
>> "merb" gem add as dependency datamapper components, which includes >> do_sqlite3. At this time do_sqlite3 has no Java implementation.
> The merb gem is just merb-core, merb-more and datamapper. So by > installing merb-core and merb-more directly you get around the > problem.
An datamapper defines do_sqlite3 as dependency, which end with this situation.
So again -- merb add datamapper as dependency, isn't the right statement?
-- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams
On Sat, Nov 8, 2008 at 10:03 AM, Luis Lavena <luislav...@gmail.com> wrote:
> On Sat, Nov 8, 2008 at 11:56 AM, Per Melin <per.me...@gmail.com> wrote:
> >>> Any workaround that I can use to get past this?
> >> "merb" gem add as dependency datamapper components, which includes > >> do_sqlite3. At this time do_sqlite3 has no Java implementation.
> > The merb gem is just merb-core, merb-more and datamapper. So by > > installing merb-core and merb-more directly you get around the > > problem.
> An datamapper defines do_sqlite3 as dependency, which end with this > situation.
> So again -- merb add datamapper as dependency, isn't the right statement?
> -- > Luis Lavena > AREA 17 > - > Human beings, who are almost unique in having the ability to learn from > the experience of others, are also remarkable for their apparent > disinclination to do so. > Douglas Adams
> Note that Glashfish works great with Merb, I personally gave it a try with > wycats last night and it's pretty cool!
At least once you've googled the solution (i.e. run as root) to the glassfish gem blowing up with "the domain directory is not writable" when started, which is a bug that goes back to April.
Something else: Has anyone done any benchmarks? A simple hello world app is very slow on my machine; about 1/5 of the req/s compared to MRI + Thin. But I'm testing on 32-bit OS X which may not be the best environment for Java.
I did gem install glassfish and ran the glassfish binary in my app root. Everything "just worked". Glassfish is in fact quite slow for a Hello World. However, it is capable of dealing with very high concurrency (I was able to throw as many concurrent requests as ab was able to handle), while thin dies at around 100ish. Additionally, jruby's threading model should be much better for real (i.e. non-hello-world) situations.
Finally, I was told by the JRuby guys that this release of grizzly (Ruby-Glassfish) has basically no performance tuning yet, so you should expect improvements in the future.
On Sat, Nov 8, 2008 at 10:22 AM, Per Melin <per.me...@gmail.com> wrote:
> > Note that Glashfish works great with Merb, I personally gave it a try > with > > wycats last night and it's pretty cool!
> At least once you've googled the solution (i.e. run as root) to the > glassfish gem blowing up with "the domain directory is not writable" > when started, which is a bug that goes back to April.
> Something else: > Has anyone done any benchmarks? A simple hello world app is very slow > on my machine; about 1/5 of the req/s compared to MRI + Thin. But I'm > testing on 32-bit OS X which may not be the best environment for Java.
> I did gem install glassfish and ran the glassfish binary in my app root. > Everything "just worked".
It will "just work" if you have write permission to the directory where the glassfish gem resides, which for many real world deployments are not so.
> Glassfish is in fact quite slow for a Hello World. However, it is capable of > dealing with very high concurrency (I was able to throw as many concurrent > requests as ab was able to handle), while thin dies at around 100ish. > Additionally, jruby's threading model should be much better for real (i.e. > non-hello-world) situations.
And these are the reasons why we probably will end up deploying our Merb projects on JRuby. But there will be many tests and benchmarks before we take that decision.
We are fully aware of this bug and the fact that we mad eprogress but could not get dependency on domain directory. We definitely want to fix it as soon as we can, stay tuned...
On Sat, Nov 8, 2008 at 7:22 AM, Per Melin <per.me...@gmail.com> wrote:
> > Note that Glashfish works great with Merb, I personally gave it a try > with > > wycats last night and it's pretty cool!
> At least once you've googled the solution (i.e. run as root) to the > glassfish gem blowing up with "the domain directory is not writable" > when started, which is a bug that goes back to April.
> Something else: > Has anyone done any benchmarks? A simple hello world app is very slow > on my machine; about 1/5 of the req/s compared to MRI + Thin. But I'm > testing on 32-bit OS X which may not be the best environment for Java.
On Sat, Nov 8, 2008 at 8:22 AM, Per Melin <per.me...@gmail.com> wrote:
> > I did gem install glassfish and ran the glassfish binary in my app root. > > Everything "just worked".
> It will "just work" if you have write permission to the directory > where the glassfish gem resides, which for many real world deployments > are not so.
> > Glassfish is in fact quite slow for a Hello World. However, it is capable > of > > dealing with very high concurrency (I was able to throw as many > concurrent > > requests as ab was able to handle), while thin dies at around 100ish. > > Additionally, jruby's threading model should be much better for real > (i.e. > > non-hello-world) situations.
> And these are the reasons why we probably will end up deploying our > Merb projects on JRuby. But there will be many tests and benchmarks > before we take that decision.
You can't generate a normal merb app with jRuby because of datamaper. You have to do merb-gen core app-name
Tonight wycats and I had a talk with the jRuby guys about getting a dm driver working with jRuby. In the meantime, or if you are not interesting in DM, activerecord works just fine.
Matt
Sent from my iPhone
On Nov 9, 2008, at 0:33, Mark Watson <mark.wat...@gmail.com> wrote:
> I think that this is a bug with the current version(s) of JRuby's > Templater implementation.
> Have you tried generating the project using Matz's Ruby, then running > Merb with JRuby?
> Also, you will probably want to use ActiveRecord until DataMapper is > 'JRuby ready'.
> On Nov 8, 7:47 pm, "Vivek Pandey" <vivek.pan...@gmail.com> wrote: >> I think I am making progress. Do I need any more merb gems? I >> installed >> merb-core and merb-more independently and they installed just fine:
> On Nov 9, 2008, at 0:33, Mark Watson <mark.wat...@gmail.com> wrote:
> > I think that this is a bug with the current version(s) of JRuby's > > Templater implementation.
> > Have you tried generating the project using Matz's Ruby, then running > > Merb with JRuby?
> > Also, you will probably want to use ActiveRecord until DataMapper is > > 'JRuby ready'.
> > On Nov 8, 7:47 pm, "Vivek Pandey" <vivek.pan...@gmail.com> wrote: > >> I think I am making progress. Do I need any more merb gems? I > >> installed > >> merb-core and merb-more independently and they installed just fine:
> >> On Sat, Nov 8, 2008 at 6:56 AM, Per Melin <per.me...@gmail.com> > >> wrote:
> >>>>> Any workaround that I can use to get past this?
> >>>> "merb" gem add as dependency datamapper components, which includes > >>>> do_sqlite3. At this time do_sqlite3 has no Java implementation.
> >>> The merb gem is just merb-core, merb-more and datamapper. So by > >>> installing merb-core and merb-more directly you get around the > >>> problem.
JRuby 1.1.4 has RubyGems 1.2.0 and Merb 1.0 needs RubyGems 1.3.0.
dudleyf on #jruby mentioned that there is a native dependency
introduce after 0.9.13 so I tried installing only "merb-core" as
"jruby -S gem install merb-core -v 0.9.13". I also had to install
"hoe". The installation went fine but creating an app as "merb-gen app
hello" or "merb-gen core hello" shows the help instructions.
What am I missing ?
On Nov 9, 7:27 am, "Vivek Pandey" <vivek.pan...@gmail.com> wrote:
> On Sun, Nov 9, 2008 at 12:52 AM, Matt Aimonetti <mattaimone...@gmail.com>wrote:
> > You can't generate a normal merb app with jRuby because of datamaper.
> > You have to do merb-gen core app-name
> Yeah, I tried it after seeing wycats tweet but the same error. I will try
> with jruby 1.1.4 and see how it goes.
> > Tonight wycats and I had a talk with the jRuby guys about getting a dm
> > driver working with jRuby.
> Thats great!
> > In the meantime, or if you are not
> > interesting in DM, activerecord works just fine.
> Yeah, I am at the first step, let me create the app then will enable
> activerecord thru init.rb (is this the right way to do it?) and see how it
> goes.
> thanks,
> -vivek.
> > Matt
> > Sent from my iPhone
> > On Nov 9, 2008, at 0:33, Mark Watson <mark.wat...@gmail.com> wrote:
> > > I think that this is a bug with the current version(s) of JRuby's
> > > Templater implementation.
> > > Have you tried generating the project using Matz's Ruby, then running
> > > Merb with JRuby?
> > > Also, you will probably want to use ActiveRecord until DataMapper is
> > > 'JRuby ready'.
> > > On Nov 8, 7:47 pm, "Vivek Pandey" <vivek.pan...@gmail.com> wrote:
> > >> I think I am making progress. Do I need any more merb gems? I
> > >> installed
> > >> merb-core and merb-more independently and they installed just fine:
> > >> On Sat, Nov 8, 2008 at 6:56 AM, Per Melin <per.me...@gmail.com>
> > >> wrote:
> > >>>>> Any workaround that I can use to get past this?
> > >>>> "merb" gem add as dependency datamapper components, which includes
> > >>>> do_sqlite3. At this time do_sqlite3 has no Java implementation.
> > >>> The merb gem is just merb-core, merb-more and datamapper. So by
> > >>> installing merb-core and merb-more directly you get around the
> > >>> problem.