On Thu, Jul 23, 2009 at 7:28 AM, Mariusz Wojtysiak <[email protected]>wrote:
> > On 23 Lip, 14:13, Conrad Taylor <[email protected]> wrote: > > It appears that you cannot reference libpq which is the C application > > programmer's interface to PostgreSQL. In the above, you have libpq5 > > installed on your system but the Ruby gem, ruby-pg, is looking for libpg. > > I don't add libpq during installing ruby-pg. It is added automatically > by installation string (extconf.rb). > I think it has sense, because ruby-pg use native library written in C > in order to access PostgreSQL. But first this native library has to be > compiled using libpq... > Please reread my statement above about what's going on. In short, your build fails because it cannot locate the pg library. > > I also installed on my Ubuntu libpgsql-ruby package, which contains > pg.so in /usr/lib/ruby/1.8/i486-linux. > But I have no idea how to force "gem install ruby-pg" to use pg.so > instead of libpq (if it's correct direction). > You misunderstood what I was trying to explain to you. The reference to the pq library needs to be corrected for what ruby-pg expects. For example, have_library: checking for main() in -lpq... -------------------- no The above error message says that it could not find libpq on your system in the configure step on the build. > Maybe pg.so is this native library, which cannot be linked during > installation ruby-pg? > I yes, then how can I force "gem install ruby-pg" to use this already > installed pg.so, instead of compiling it? > Again, you have libpq5 installed and the Ruby gem, ruby-pg, is looking libpg. For example, libpg is not equal to libpq. > > > Finally, I don't know enough about the ruby-pg gem in regards to > configuring > > the Kerberos. > > In fact I don't use kerberos in my project! But libpq depends on > libkrb :-(, so I have linking errors. libpq doesn't depend on libkrb unless you build Postgres with the Kerberos feature enabled. Did you enable Postgres with Kerberos when you installed it? -Conrad > > > -- > Mariusz > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---

