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): -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
do you added in config/environment.rb? config.gem ''pg'' 2010/10/13 kenvogt <kenneth.vogt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 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): > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- att: Luciano Sousa http://www.lucianosousa.net <http://www.lucianosousa.net>http://twitter.com/lucianosousa *Ruby on Rails Developer *Linux User #456387 *Contato: (21) 7639-5049 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
See Erol Fornoles answer today to my same question yesterday... On Oct 13, 2010, at 2:59 PM, kenvogt wrote:> 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): > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Scott Ribe scott_ribe-ZCQMRMivIIdUL8GK/JU1Wg@public.gmane.org http://www.elevated-dev.com/ (303) 722-0567 voice -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Oct 14, 8:31 am, Scott Ribe <scott_r...-oLpdKesOropn0q4rP9l2pw@public.gmane.org> wrote:> See Erol Fornoles 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> > On Oct 13, 2010, at 2:59 PM, kenvogt wrote: > > > > > > > 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 accesshttp://localhost:3000/I > > got the following error: > > > LoadError (no such file to load -- pg): > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > Scott Ribe > scott_r...-ZCQMRMivIIdUL8GK/JU1WhHnuRYL88vP@public.gmane.org://www.elevated-dev.com/ > (303) 722-0567 voice-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.