| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Marios Vodas <mvodas(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: $libdir under linux |
| Date: | 2010-10-10 22:56:28 |
| Message-ID: | 23645.1286751388@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Marios Vodas <mvodas(at)gmail(dot)com> writes:
> I want to create this function:
> CREATE OR REPLACE FUNCTION myfunction(cstring)
> RETURNS cstring AS
> '$libdir/mylib','myfunction'
> LANGUAGE 'C' IMMUTABLE STRICT;
> In windows this is working fine and $libdir is substituted by the actual
> path. In linux it is not substituted!
I rather doubt that, considering that it works fine for everybody else.
> This is the error I get:
> ERROR: could not access file "$libdir/mylib": No such file or directory
So is mylib.so actually there in the library directory? (Try
"pg_config --pkglibdir" to confirm which directory that is.)
If so, try ldd on it --- maybe the problem is with some library
it references, not mylib.so itself.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joshua Tolley | 2010-10-11 00:27:53 | Re: Slow count(*) again... |
| Previous Message | Jon Nelson | 2010-10-10 22:50:22 | Re: Slow count(*) again... |