
*Easier* installer for Sqlite3 on DO.rb & on Windows
Reported by Darcy Laycock | November 8th, 2007 @ 08:07 AM
This is just a quick one for windows developers - just download and run this script; it takes care of installing it on windows (with One Click Ruby Installer Version) thanks to tar2rubyscript.
Still working on MySql and PostgreSql support :(
Comments and changes to this ticket
-
jinsoo November 18th, 2007 @ 07:33 PM
- no changes were found...
-
-
mike December 6th, 2007 @ 02:49 PM
I also was unable to use this patch, because it references "$PATH" on line 8 of init.rb, which is an undefined global.
I was able to get the driver to work using the following steps:
- Extract the files contained within dorb_sqlite3.rb to the current directory by running:
ruby dorb_sqlite3.rb --tar2rubyscript-justextract This puts the files in .\dorb_sqlite3. # Copying .\dorb_sqlite3\files\sqlite3_c.so to your ruby msvcrt dir. Mine is C:\ruby\lib\ruby\site_ruby\1.8\i386-msvcrt\ # To test I ran the following from an irb:
require 'rubygems'; require 'data_mapper'
DataMapper::Database.setup({
:adapter => 'sqlite3',
:database => 'test'
})
class Post < DataMapper::Base
property :title, :string
property :body, :text
property :created_at, :datetime
end
-
Darcy Laycock December 9th, 2007 @ 09:45 AM
Apologies about that - the original PC I wrote and tested it on used $PATH instead of $LOAD_PATH;
You can either use Mike's method for the moment or I'll upload a newer version soon.
-
Sam Smoot December 28th, 2007 @ 09:58 PM
- State changed from new to open
Same as the PG ticket... be happy to release a Windows gem for do_sqlite3 if you can do the legwork... ;-)
-
Nick Plante February 15th, 2008 @ 04:57 PM
- Milestone cleared.
-
Sam Smoot April 28th, 2008 @ 12:12 PM
- State changed from open to resolved
No longer applies. DO 0.9.0 builds on Windows now.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Attachments
Tags
Referenced by
-
43 DataObjects.rb on Windows - Windows SQLite3 Binary I believe this is resolved, see SuttoL's further notes i...