# Problem with installation of Rails 3

**URL:** <https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925>\
**Category:** Rails\
**Created:** [May 20, 2010, 4:11pm UTC](https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925 "2010-05-20T16:11:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivakumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Post date:** [May 20, 2010, 4:11pm UTC](https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925/1 "2010-05-20T16:11:40Z")

</div>

Help me out guys…

While installing rails 3 i got the following message

:~$ sudo gem install rails --pre

Successfully installed rails-3.0.0.beta3  
1 gem installed  
Installing ri documentation for rails-3.0.0.beta3…  
File not found: lib

My gem list

:~$ gem list

\*\*\* LOCAL GEMS \*\*\*

abstract (1.0.0)  
actionmailer (3.0.0.beta3, 2.3.5)  
actionpack (3.0.0.beta3, 2.3.5)  
activemodel (3.0.0.beta3)  
activerecord (3.0.0.beta3, 2.3.5)  
activeresource (3.0.0.beta3, 2.3.5)  
activesupport (3.0.0.beta3, 2.3.5)  
arel (0.3.3, 0.2.pre)  
authlogic (2.1.3)  
builder (2.1.2)  
bundler (0.9.25)  
erubis (2.6.5)  
ffi (0.6.3)  
i18n (0.3.7)  
mail (2.2.1, 2.1.5.3)  
memcache-client (1.8.3, 1.7.8)  
mime-types (1.16)  
pg (0.9.0)  
polyglot (0.3.1)  
postgres (0.7.9.2008.01.28)  
rack (1.1.0, 1.0.1)  
rack-mount (0.6.3, 0.4.7, 0.4.0)  
rack-test (0.5.3)  
rails (3.0.0.beta3)  
rails3b (3.0.1)  
railties (3.0.0.beta3)  
rake (0.8.7)  
ruby-pg (0.7.9.2008.01.28)  
rubygems-update (1.3.7)  
SystemTimer (1.2)  
text-format (1.0.0)  
text-hyphen (1.0.0)  
thor (0.13.6)  
treetop (1.4.5)  
tzinfo (0.3.20)

Please Help me out…

---

<div class="post-metadata">

**Author:** ![sivakumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Post date:** [May 20, 2010, 4:20pm UTC](https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925/2 "2010-05-20T16:20:06Z")

</div>

On May 20, 9:11 am, Siva K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Help me out guys…
> 
> While installing rails 3 i got the following message
> 
> :~$ sudo gem install rails --pre
> 
> Successfully installed rails-3.0.0.beta3  
> 1 gem installed  
> Installing ri documentation for rails-3.0.0.beta3…  
> File not found: lib

Pretty sure that’s just a documentation error. Looks like your Rails  
beta3 gem installed fine.

Jeff

---

<div class="post-metadata">

**Author:** ![sivakumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Post date:** [May 20, 2010, 4:26pm UTC](https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925/3 "2010-05-20T16:26:55Z")

</div>

Jeff C. wrote:

> Pretty sure that’s just a documentation error. Looks like your Rails  
> beta3 gem installed fine.
> 
> Jeff

Thanx Jeff

I had one more problem. I dont want to use sqlite3 instead want to use  
Postgresql…

Do u have any idea of how to do it…

I think I installed all the required gems

I want to modify the database.yml file which I did but even cant get the  
things done!!

Someone or other please help me out in this as well

Siva

---

<div class="post-metadata">

**Author:** ![sivakumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Post date:** [May 20, 2010, 9:45pm UTC](https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925/4 "2010-05-20T21:45:37Z")

</div>

On May 20, 9:26 am, Siva K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I had one more problem. I dont want to use sqlite3 instead want to use  
> Postgresql…
> 
> Do u have any idea of how to do it…
> 
> I think I installed all the required gems
> 
> I want to modify the database.yml file which I did but even cant get the  
> things done!!

If you have already generated the app, you need a section like this in  
your database.yml:

development:  
adapter: postgresql  
host: localhost # or your server name  
database: my\_app\_development  
username: me  
password: password

and similarly change the test and production sections too.

Once you’ve done that, you can use rake db:create to automatically  
create your local postgres database which I think is pretty cool.

In the future, when you create a new Rails app, you can use the -d  
option to specify postgresql, which will generate the database.yml for  
you from the beginnning.

Jeff

[purpleworkshops.com](http://purpleworkshops.com)

---

<div class="post-metadata">

**Author:** ![sivakumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Post date:** [May 20, 2010, 11:13pm UTC](https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925/5 "2010-05-20T23:13:08Z")

</div>

Jeff C. wrote:  
database.yml:

> development:  
> adapter: postgresql  
> host: localhost # or your server name  
> database: my\_app\_development  
> username: me  
> password: password
> 
> and similarly change the test and production sections too.
> 
> Once you’ve done that, you can use rake db:create to automatically  
> create your local postgres database which I think is pretty cool.
> 
> In the future, when you create a new Rails app, you can use the -d  
> option to specify postgresql, which will generate the database.yml for  
> you from the beginnning.
> 
> Jeff
> 
> [purpleworkshops.com](http://purpleworkshops.com)

Once again thank you jeff

I was able to change the database.yml file…but I dint understand what  
to change on test and production sections(I was a new guy for ROR)

I was able to create a new db too.

Thanks jeff again, this info helped me alot…

Could u please tell me what to update on those two files

Best Wishes  
Siva

---

<div class="post-metadata">

**Author:** ![sivakumar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@sivakumar](https://www.ruby-forum.com/u/sivakumar)\
**Post date:** [May 20, 2010, 8:07pm UTC](https://www.ruby-forum.com/t/problem-with-installation-of-rails-3/188925/6 "2010-05-20T20:07:15Z")

</div>

On Thu, May 20, 2010 at 7:26 AM, Siva K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Postgresql…  
> Siva

Siva, you’ll need to following these steps:

a) Install the PostgreSQL database engine  
b) gem install pg  
c) Update the Gemfile

```
 gem "pg"

```

Good luck,

-Conrad

–
