Abbey Workshop
OSX
XML
All

Entries for 07/2006

SQLite, Ruby and Rails Howto

Posted: 07-06-2006 14:54:02 by MikeW in categories: General Ruby Linux

Because of the great difficulty I have had getting MySQL to work with Rails on Mac OS X, I decided I would use SQLite instead. In addition, with MySQL's new dual license, I would prefer to use something that has no strings attached. SQLite is a simple file based database system that requires no network. In addition, the source and the binaries are distributed in the public domain. This means you can pretty much do whatever you want with the database and distribute and embed it to your heart's content.

While trying to figure out how to use SQLite with Rails, I ran across this website: How to use SQLite in Ruby on Rails. For my money, this is the most concise, to the point, and accurate site on the subject I could find. I know have Rails working with SQLite on OS X, Ubuntu Linux, and Windows XP. Woot!

Comments via Technorati Technorati talk bubble

Installing Ruby on Rails on Ubuntu 6.06 Dapper Drake

Posted: 07-02-2006 23:01:12 by MikeW in categories: General Ruby Ruby on Rails

First I have to say, getting Ruby on Rails to work on Ubunutu Linux has been a pretty hellish experience. Well, getting Ruby on Rails to work on anything has been a pretty hellish experience. But now, I have conquered the beast and can more or less follow along in the Ruby on Rails Agile programming book. Woot!

To prevent some other poor programmer from having the same fun experience I thought I would share what I have learned. The steps below are for installing Ruby, Rails, and SQLite3. I am planning to use SQLite three because of the simplicity and freedom it provides compared to other database products.

Do all the following commands using sudo or as root. I just use sudo bash and execute them consecutively.

Install Ruby

First, Ruby is not installed on Ubuntu by default. So here are the steps to get everything. You need the dev package and rdoc to have everything in place for rails.

Install Ruby Gems

The dev package from above is required to install gems. Otherwise you will be missing some header files. To install gems:

Install sqlite3

Install all the sqlite3 debian packages.

Install sqlite3-ruby

Install the ruby sqlite debian packages.

Install Rails

Now that all the packages are in place, you can install rails using Ruby gems.

gem install rails

That should do the trick. Enjoy.

Comments via Technorati Technorati talk bubble
Google
  Web abbeyworkshop.com   

Copyright © Abbey Workshop 2005

Blog Home

Archives

Current Year: 2006
Months: 01 02 03 05 06 07 08 09 10 11

Blog Links

Friends
Elementary Penguin
Random Dribble
Scotty's Engineering Log
Vegetarian Conspiracy

IP Audio/Video
diggnation
nerdtv
twit.tv

Programming
Artima Ruby Buzz
PHP Developer

XML
Tim Bray
Planet XML
xml.com

Categories

General
XML

Music Only Search
The Black MP3 Album
The MP3 Album Lyrics
Wprld Music Plus
Mp3 Songs Blog
Music Search Store
First Music Search
Mega MP3 Blog
E MP3 BLog
My MP3 Diary
Fast MP3 Finder
My Blog MP3
Mp3 Songs Mart
My MP3 Songs Album
Top Music Group
Mp3 Tune Records
Song Album Guide
Music DataDite
MP3 Buying Guide
Top MP3 Downloads
MP3 Tune Festival
FAST MP3 Downloads
MP3 Mart Online
Upper MP3
Premium MP3 Site
Music Data online
Fine MP3 Audio
Cheap Music Albums
Fine mp3 downloads
World MP3 Music Records
Mp3 Music Data Direct
The Fine Mp3
MP3 Files World
Home Music Store
DatMP3
Fat MP3 Audio
MP3 ZigZag
MP3 Songs Direct
MP3 Tune World
E MP3 Log
Boom MP3 Music
Speedy MP3
Top 20 MP3 music
Deep MP3 World
Deep MP3 Download
Best-20 MP3
Top Twenty MP3
Deep MP3
Big MP3 Guide
Deep MP3 Audio
Mp3 R.O.B.
MP3-Pop Online
Greate-20-MP3
MP3 Appear
3T-MP3