# Problem creating Hello World app in Ruby on Rails

**URL:** <https://www.ruby-forum.com/t/problem-creating-hello-world-app-in-ruby-on-rails/152025>\
**Category:** Rails\
**Created:** [October 29, 2008, 7:43am UTC](https://www.ruby-forum.com/t/problem-creating-hello-world-app-in-ruby-on-rails/152025 "2008-10-29T07:43:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [October 29, 2008, 7:43am UTC](https://www.ruby-forum.com/t/problem-creating-hello-world-app-in-ruby-on-rails/152025/1 "2008-10-29T07:43:43Z")

</div>

Hi All,

I just installed Ruby on Rails on my MacBook Pro and tried to create the  
Hello World app that is documented in the Agile Development with Rails  
book. I followed all the instructions for creating the Hello World app  
but get the following error when I try to load  
[http://localhost:3000/say/hello](http://localhost:3000/say/hello)

MissingSourceFile in SayController#index

no such file to load – sqlite3

Can anyone please let me know what I need to do to fix this issue?  
Thanks!

P.S., I have the following things installed on my MacBook Pro:

1. Ruby 1.8.6
2. Rails 2.1.2
3. MySQL 5.0.67

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [October 29, 2008, 7:59am UTC](https://www.ruby-forum.com/t/problem-creating-hello-world-app-in-ruby-on-rails/152025/2 "2008-10-29T07:59:21Z")

</div>

David Park wrote:

> no such file to load – sqlite3

If you want to use mysql, then set up your rails project like this:  
% rails --database=mysql   
If you leave out the database option, rails will assume you want  
sqlite3.  
(I think mysql used to be the default some time ago).

You can alter the database and connection settings in config/  
database.yaml.

–  
Daniel B.

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [October 29, 2008, 2:54pm UTC](https://www.ruby-forum.com/t/problem-creating-hello-world-app-in-ruby-on-rails/152025/3 "2008-10-29T14:54:06Z")

</div>

its looking sqlite3 database which is not installed on your mac.

get the binary for mac from here [SQLite Download Page](http://www.sqlite.org/download.html)

install it and then run  
sudo gem install sqlite3-ruby

and you should be ok to go.

Otherwise if you want to use mysql then change your database.yml file  
in the config directory like so (and remove all config options for  
sqlite3)

development:  
adapter: mysql  
database: db\_name  
username: root  
password:  
host: localhost  
encoding: utf8

do this for test and production as well

---

<div class="post-metadata">

**Author:** ![dpitman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a9adbd/32.png) [@dpitman](https://www.ruby-forum.com/u/dpitman)\
**Post date:** [October 30, 2008, 4:15am UTC](https://www.ruby-forum.com/t/problem-creating-hello-world-app-in-ruby-on-rails/152025/4 "2008-10-30T04:15:58Z")

</div>

Thanks for your help!
