Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Createlang for plperl postgres : exec format error

Balki
Occasional Contributor

Createlang for plperl postgres : exec format error

Hi,

Can I get some clue why I get this error while trying to create plperl for postgres?

$ /opt/iexpress/postgresql/bin/createlang --echo --dbname=vsm --username=postgres plperl
SELECT oid FROM pg_catalog.pg_language WHERE lanname = 'plperl';
CREATE LANGUAGE "plperl";
createlang: language installation failed: ERROR: could not load library "/opt/iexpress/postgresql/lib/plperl.sl": Exec format error

The details for plperl.sl
$ ldd /opt/iexpress/postgresql/lib/plperl.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libsec.2 => /usr/lib/libsec.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libnm.sl => /usr/lib/libnm.sl
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libxti.2 => /usr/lib/libxti.2
/usr/lib/libcl.2 => /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE/libperl.sl => /opt/perl_32/lib/5.8.3/PA-RISC1.1-thread-multi/CORE/libperl.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
/usr/lib/libsec.2 => /usr/lib/libsec.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libnm.sl => /usr/lib/libnm.sl
/usr/lib/libnsl.1 => /usr/lib/libnsl.1
/usr/lib/libcl.2 => /usr/lib/libcl.2

Thanks in advance.
1 REPLY
Dennis Handly
Acclaimed Contributor

Re: Createlang for plperl postgres : exec format error

>Can I get some clue why I get this error while trying to create plperl for postgres?

Unfortunately not. This message is useless without the another message with details.

There is another thread with the exact same issue and we still haven't solved it.
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1284442

Can you run "tusc -fpae -o tusc.out" on your above command.