$libdir

Started by Ian Hardingalmost 19 years ago4 messagesgeneral
Jump to latest
#1Ian Harding
harding.ian@gmail.com

I know this is a question that gets asked a zillion times and is
almost always pilot error.

I installed PostgreSQL 8.2.x and the Tsearch2 package on NetBSD which
went fine, but I can't get the tsearch2.sql file to run.

The usual error about "file does not exist" relative to
$libdir/tsearch2 gets generated.

The docs say $libdir gets expanded to the result of

pg_config --pkglibdir

which in my case returns /usr/pkg/lib/postgresql.

In that directory are the libtsearch2.so... files along with lots of
others, with 755 permissions, owned by root.

Those permissions and ownership look OK to me, read and execute by the
whole world.

What else could be wrong?

- Ian

#2Martijn van Oosterhout
kleptog@svana.org
In reply to: Ian Harding (#1)
Re: $libdir

On Mon, Jun 04, 2007 at 08:25:22PM -0700, Ian Harding wrote:

I know this is a question that gets asked a zillion times and is
almost always pilot error.

I don't know much about this but the complaint is this:

The usual error about "file does not exist" relative to
$libdir/tsearch2 gets generated.

And you have:

In that directory are the libtsearch2.so... files along with lots of
others, with 755 permissions, owned by root.

Either the library should be "tsearch.so" not "libtsearch.so", or the
request should be for "$libdir/libtsearch" or something (perhaps a
directory is missing or something and it should be
tsearch/libtsearch.so).

Please provide the *exact* error messages if you want more detailed
help.

Hope this helps,
--
Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/

Show quoted text

From each according to his ability. To each according to his ability to litigate.

#3Ian Harding
harding.ian@gmail.com
In reply to: Martijn van Oosterhout (#2)
Re: $libdir

On 6/5/07, Martijn van Oosterhout <kleptog@svana.org> wrote:

On Mon, Jun 04, 2007 at 08:25:22PM -0700, Ian Harding wrote:

I know this is a question that gets asked a zillion times and is
almost always pilot error.

I don't know much about this but the complaint is this:

The usual error about "file does not exist" relative to
$libdir/tsearch2 gets generated.

And you have:

In that directory are the libtsearch2.so... files along with lots of
others, with 755 permissions, owned by root.

Either the library should be "tsearch.so" not "libtsearch.so", or the
request should be for "$libdir/libtsearch" or something (perhaps a
directory is missing or something and it should be
tsearch/libtsearch.so).

I saw that discrepancy, but assumed there was a prepending of "lib"
somewhere in the search. Turns out that is exactly the problem, and
changing the tsearch2.sql file to reflect

$libdir/libtsearch2

works. I will try to figure out how this happened and let the NetBSD
package maintainer know.

Thanks!

- Ian

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Ian Harding (#3)
Re: $libdir

"Ian Harding" <harding.ian@gmail.com> writes:

I saw that discrepancy, but assumed there was a prepending of "lib"
somewhere in the search. Turns out that is exactly the problem, and
changing the tsearch2.sql file to reflect
$libdir/libtsearch2
works. I will try to figure out how this happened and let the NetBSD
package maintainer know.

Yeah, this is definitely a packaging error, because tsearch2.so is what
the file is supposed to be named.

regards, tom lane