rails installation error

I have installed Ruby 1.8.7 and rails 3.0.3 on ubuntu 10.04.
i am following the steps given in the book ‘Agile web development with rails’ and i am new to the world of ruby on rails.

just after entire installation i have created a rails application called ‘demo’

however when i enter the command …ruby script/server i get the following error:
Could not find gem ‘sqlite3-ruby (>= 0, runtime)’ in any of the gem sources listed in your Gemfile.
Try running bundle install.

I have already installed mysql database.

Thanks,
Chinmaya Joshi

Hi,

By default Rails will work well with embeded sqlite3 database.

so simple run

bundle install

it will solve your problem.

In case you want to work with mysql. You need to add “gem mysql” in the Gemfile. And then run “bundle install”

Also you may need to change the database config file.

Thanks!

Butu

yes dis did solve the problem …BUT
When i type…: ruby script/server…i get the error that directory cant be found
However when i i type…: rails server…it gets me to the localhost server…http://localhost:3000…displaying congratulations! you are riding ruby on rails
Now which one is right?
As the book says…ruby script/server

Please don't top post, it makes it difficult to follow the thread.
Insert your reply into the previous post at appropriate points.
Thanks.

yes dis did solve the problem .....BUT
When i type..: ruby script/server.........i get the error that directory
cant be found
However when i i type........: rails server..........it gets me to the
localhost server..........http://localhost:3000....displaying
congratulations! you are riding ruby on rails
Now which one is right?
As the book says........ruby script/server

That is because you are using a Rails 2.3 book with Rails 3. You want
edition 4 of the book, or use the tutorial at railstutorial.org.

Colin

Thank you Colin.
Do you have any link where i will get the 4th edition of the book for download?

Thank you Colin.

A repeat:
Please don't top post, it makes it difficult to follow the thread.
Insert your reply into the previous post at appropriate points.
Thanks.

Do you have any link where i will get the 4th edition of the book for
download?

Google led me to
http://pragprog.com/titles/rails4/agile-web-development-with-rails in
about ten seconds.

Colin