On 23 Lip, 23:00, Conrad Taylor <[email protected]> wrote:
> Please reread my statement above about what's going on. In short,
> your build fails because it cannot locate the pg library.
Problem is that looking into mkmf.log I don't see any problem with pg
library. Nothing like -lpg in cc statement... Instead of pg, pq is
used. Looking into extconf.rb script (used by "gem install ruby-pg") I
also see that pq is used there. Not pg...
> 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.
It looks like this at the first sight. But mkmf.log says more details
about this error:
/usr/lib/libpq.so: undefined reference to `krb5_cc_get_principal
So libpq was found, but it refer to krb5, which cannot be found.
I know that krb5 cannot be found and I'm trying to add -lkrb5 somehow
in a legal way (without modifying gem installation scripts) - for
example by adding some option to command "gem install".
> 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?
That may be a problem. I installed Postgres from Ubuntu repository,
where Kerberos is enabled by default.
So: my own Postgres compilation witout Kerberos should solve the
problem (although
it wont be the best solution).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---