HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
General
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

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.