Search Postgresql Archives

Re: Unable to createlang

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tom Harkaway wrote:
> The command I am using is:
> 
>     createlang -U postgres plperl hf-hvpa
> 
> The message I get back is:
> 
>     createlang: language installation failed: ERROR:  could not load
library
> "/opt/postgres/lib/postgresql/plperl.so": libperl.so: cannot open
shared object file: No such file or
> directory

Try "ldd /opt/postgres/lib/postgresql/plperl.so" and you'll see what it
means.

PL/Perl needs Perl, and in your case it cannot find the Perl shared
library
in the library search path.

You have several options:
- Rebuild PostgreSQL without --disable-rpath.
- Add the directory that contains libperl.so to /etc/ld.so.conf and
  run "ldconfig" as root user.  Then start the PostgreSQL server.
- Set the environment variable LD_LIBRARY_PATH to contain the
  directory that contains libperl.so and export it in the environment
  of the PostgreSQL server.  Then start the server.

The third method is the worst.

Another thing:
Never do anything as root user unless you have to. Really.

Yours,
Laurenz Albe

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux