Re: Sqlite3 on ubuntu

2009-03-11 Thread Kyle King
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

Re: Sqlite3 on ubuntu

2009-03-11 Thread niedh
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

Re: Sqlite3 on ubuntu

2009-03-10 Thread Paul McConnon
Hi there I have activerecord working in shoes with sqlite Shoes.setup do gem 'activerecord' end require 'active_record' ActiveRecord::Base.establish_connection(:adapter = 'sqlite3',:dbfile = 'dbname.db') require 'model_name' That's all I had to do, sqlite gem was

Re: Sqlite3 on ubuntu

2009-03-10 Thread 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 I've use Shoes.setup do gem 'activerecord' end to install the activerecord gem

Re: Sqlite3 on ubuntu

2009-03-10 Thread niedh
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

Sqlite3 on ubuntu

2009-03-09 Thread niedh
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

Re: Sqlite3 on ubuntu

2009-03-09 Thread Mark Vander Voord
On Ubuntu I believe you need to also install libsqlite3-dev in order to properly install sqlite3-ruby, like so: sudo apt-get install libsqlite3-dev sudo gem install sqlite3-ruby Mark On Mon, Mar 9, 2009 at 9:58 PM, niedh dianhui@gmail.com wrote: I've use Shoes.setup do gem

Re: Sqlite3 on ubuntu

2009-03-09 Thread niedh
thanks to Mark Vander Voord I had already install the libsqlite3-dev and sqlite3-ruby when i use sqlite3 without shoes ,it works fine my ruby is not the apt-get version, I compiled from the source,is this the problem? Mark Vander Voord 写道: On Ubuntu I believe you need to also install

Re: Sqlite3 on ubuntu

2009-03-09 Thread Cecil Coupe
On Tue, 2009-03-10 at 12:23 +0800, niedh wrote: thanks to Mark Vander Voord I had already install the libsqlite3-dev and sqlite3-ruby when i use sqlite3 without shoes ,it works fine my ruby is not the apt-get version, I compiled from the source,is this the problem? Shoes ruby and gems are