On Dec 8, 2:10 am, Aman Gupta <[EMAIL PROTECTED]> wrote:
> You have two options here. First you can install the win32 version of
> the sequel gem, which does not depend on parsetree/rubyinline:
>
> http://rubyforge.org/frs/download.php/28866/sequel-0.4.2-x86-mswin32-...

Note that you cannot use block filters with the win32 sequel gem,
since ParseTree is not available.

>
> Or, you could install the win32 versions of ParseTree/RubyInline which
> contain precompiled binaries and do not require a C compiler:
>
> http://web.mit.edu/~agp/www/parsetree-win32/
>
>   Aman Gupta
>
> On Dec 8, 1:59 am, paulf <[EMAIL PROTECTED]> wrote:
>
> > I have gone back to ruby platform in my Netbeans/Windows Vista setup
> > and tried to run script
>
> > -----------------
> > require 'rubygems'
> > require 'sequel'
>
> > puts "Done"
> > -----------------
>
> > But it fails because of RubyInline.
>
> > ../gems/RubyInline-3.6.5/lib/inline.rb:397.. etc.
>
> > Probably because it cannot find a C compiler, which seems to be a
> > severe restriction (if this is the case)
>
> > Can sequel be used without requiring parsetree etc. or how can it be
> > used in my type of environment.
>
> > Paul Fraser
>
> > On Dec 6, 10:42 pm, xraid <[EMAIL PROTECTED]> wrote:
>
> > > can you try with db = Sequel.sqlite to se if it is pg related
>
> > > On Dec 6, 10:36 am, paulf <[EMAIL PROTECTED]> wrote:
>
> > > > Before I get to the JDBC stuff, I need to get through the early stages
> > > > of getting sequel to run in JRuby.
>
> > > > # main.rb    as per your overview example.
>
> > > > require 'rubygems'
> > > > require 'sequel'
>
> > > > url = "postgres://postgres:[EMAIL PROTECTED]:5432/paulPlay"
> > > > db = Sequel(url)
>
> > > > db.create_table :items do
> > > >   column :name, :text
> > > >   column :price, :float
> > > > end
>
> > > > items = db[:items]
>
> > > > items << {:name => 'abc', :price => rand*100}
> > > > items << {:name => 'def', :price => rand*100}
> > > > items << {:name => 'ghi', :price => rand*100}
>
> > > > puts "Item count: #{items.count}"
> > > > items.reverse_order(:price).print
> > > > puts "The average price is : #{items.avg(:price)}"
>
> > > > error output :-
>
> > > > C:/Program Files/NetBeans 6.0/ruby1/jruby-1.0.2/lib/ruby/gems/1.8/gems/
> > > > sequel-0.4.1.3/
> > > >   lib/sequel/adapters/postgres.rb:208:in `execute': undefined method
> > > > `async_exec' for #<PGconn:0x1117a20>
> > > > (NoMethodError)
>
> > > > Any clue as to problem. I am quite new to this world having left
> > > > behind many years in the delphi world, so I may initially need some
> > > > hand holding :-)
>
> > > > Paul Fraser
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to