On Jul 23, 10:00 pm, Conrad Taylor <[email protected]> wrote: > On Thu, Jul 23, 2009 at 7:28 AM, Mariusz Wojtysiak > <[email protected]>wrote: > > 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.
I'm not so sure about that. What this means is that the test program that tried to test linking against libpq failed to compile. Most obviously this would be because libpq can't be found but doesn't look like it in this case. Like I said before i would play around with the LDFLAGS environment variable and see if you could use that to make it link against the kerberos library. The libpgsql-ruby library is basically the ruby postgres bindings (at least one of them - there have been a number of them over time, all with rather similar names), but installed via your package manager rather than as a gem. Assuming this library is the set of bindings that you do want you don't need the gem - you'd just end up with the same code installed twice, once as a gem and once not (although the timestamp in the version number for it makes it look quite old). Fred > > > 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 -~----------~----~----~----~------~----~------~--~---

