Thats great niedh, Looks like shoes needs a 32 bit and 64 bit distro for linux.
Cheers, Marc. 2009/3/12 niedh <dianhui....@gmail.com> > Thanks all > I fix my problem after compile shoes from the shoes, > thanks to **Marc.** again. > yesterday i compile from source after Marc's advice,and try ,it's not work. > I found the reason today ,because I was still use the old version shoes > bin(which i download from shoes site ,may not work find on my 64bit ubuntu) > ,not the newer compile one > :) > > Thanks all again > > ActiveRecord has a built in pure ruby sqlite adapter (which is the > > *only* reason I sometimes use ActiveRecord over Sequel). Perhaps > > you're having include issues. Could you give the following a try? > > > > Shoes.setup do > > gem 'activerecord' > > end > > > > Shoes.app do > > begin > > require 'active_record' > > require 'active_record/connection_adapters/sqlite3_adapter' > > require 'user' > > > > ActiveRecord::Base.establish_connection(:adapter => 'sqlite3',:dbfile > > =>'test.db') > > para User.find(1).id > > > > rescue Exception > > alert $! > > end > > end > > > > On Mar 11, 2009, at 3:51 AM, niedh wrote: > > > >> thanks to Paul > >> my test code is : > >> Shoes.setup do > >> gem 'activerecord' > >> require 'active_record' > >> ActiveRecord::Base.establish_connection(:adapter => 'sqlite3',:dbfile => > >> 'test.db') > >> require 'user' > >> end > >> Shoes.app do > >> begin > >> para User.find(1).id > >> rescue StandardError => e > >> alert(e) > >> end > >> end > >> ActiveRecord::Base.establish_connection(:adapter => 'sqlite3',:dbfile => > >> 'test.db') > >> seems work find,but when User.find(1) it says "no driver for sqlite3 > >> found" > >> > >> thanks to Marc Galbraith > >> I 'git' the sources,and 'rake' it,but the problem still there > >> > >> > >> maybe i should try another machin :( > >> > >> thanks anyway :) > >> > >> Marc Galbraith 写道: > >>> Hi, > >>> > >>> Noticed you are using 64-bit version of Ubuntu, did you build shoes > >>> from source on your system? > >>> Once I did that lots of ruby library problems went away. > >>> > >>> Regards, > >>> Marc. > >>> > >>> 2009/3/10 niedh <dianhui....@gmail.com <mailto:dianhui....@gmail.com>> > >>> > >>> I've use > >>> Shoes.setup do > >>> gem 'activerecord' > >>> end > >>> > >>> to install the activerecord gem ,and got succes. > >>> when i use active record the connect the sqlite3, it says "no > >>> driver for > >>> sqlite3 found", > >>> and I tried to > >>> Shoes.setup do > >>> gem 'sqlite3-ruby' > >>> end > >>> > >>> It does not work,I guess it's because shoes has install it > >>> already,since > >>> i can found it in /tmp/selfxxxxxx/ > >>> > >>> I googled and not found a result. > >>> In windows ,it works fine. > >>> what happened to my ubuntu??? > >>> > >>> Ubuntu Version : 64bit 8.04 > >>> ruby verserion : 1.87 use ruby xxxx > >>> 1.86 use apt-get intall , is ruby1.8 xxxx > >>> > >>> some lib : i've already instal the libsqlite3 xxxx > >>> > >>> any help ?? > >>> 3ks > >>> > >> > > > > > > -- Marc Galbraith ============ Email: marc.s.galbra...@gmail.com Mob: +61 (0)41 709 6348