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
-~----------~----~----~----~------~----~------~--~---