Using pg on snow leopard

I have a macbook running snow leopard. I recently installed postgresql
9.0 on it. I also installed pg with the following command:

sudo env ARCHFLAGS=’-arch x86_64’ gem install pg

The result was fine:

Building native extensions. This could take a while…
Successfully installed pg-0.9.0
1 gem installed
Installing ri documentation for pg-0.9.0…
Installing RDoc documentation for pg-0.9.0…

I launched rails and when I tried to access http://localhost:3000/ I
got the following error:

LoadError (no such file to load – pg):

do you added in config/environment.rb?

config.gem ‘pg’

2010/10/13 kenvogt [email protected]

Installing ri documentation for pg-0.9.0…
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to

[email protected][email protected]

.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


att: Luciano S.
http://www.lucianosousa.net
http://www.lucianosousa.nethttp://twitter.com/lucianosousa
*Ruby on Rails Developer
*Linux User #456387
*Contato: (21) 7639-5049

See Erol F. answer today to my same question yesterday…

On Oct 13, 2010, at 2:59 PM, kenvogt wrote:

Installing ri documentation for pg-0.9.0…
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


Scott R.
[email protected]
http://www.elevated-dev.com/
(303) 722-0567 voice

On Oct 14, 8:31am, Scott R. [email protected] wrote:

See Erol F. answer today to my same question yesterday…

Ah, our messages must have “crossed in the mail”. My apologies for the
duplicate message. For those searching for it, Scott’s message is
entitled:

LoadError (no such file to load – pg), OS X, Rails 3, Ruby 1.9.2,
Postgres Options

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs