473,378 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

plperl/createlang issue

I'm trying to load plperl to experiment with it in 7.3.4 with perl v5.8.0.
I've basically tried the following:

configure --with-perl, then
initdb, then
start postmaster, then
createlang plplerl template1

No matter what I try, I keep getting this error:

$ createlang plperl template1
ERROR: Load of file /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
failed: libperl.so: cannot open shared object file: No such file or
directory
createlang: language installation failed

But it sure looks like its there to me:

$ ls -l /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
-rwxr-xr-x 1 pg pg 35770 Nov 11 19:39
/opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so*

I *think* my perl is threaded based on perl -v:

$ perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi
....

Any clues for the clueless?

TIA.

Ed
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #1
4 3775


--On Tuesday, November 11, 2003 19:22:50 -0700 "Ed L."
<pg***@bluepolka.net> wrote:
I'm trying to load plperl to experiment with it in 7.3.4 with perl
v5.8.0. I've basically tried the following:

configure --with-perl, then
initdb, then
start postmaster, then
createlang plplerl template1

No matter what I try, I keep getting this error:

$ createlang plperl template1
ERROR: Load of file /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
failed: libperl.so: cannot open shared object file: No such file or
directory
createlang: language installation failed

But it sure looks like its there to me:

$ ls -l /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
-rwxr-xr-x 1 pg pg 35770 Nov 11 19:39
/opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so*

I *think* my perl is threaded based on perl -v: The issue is there is no libperl.so (from the perl build).

Check your PERL build.

$ perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi
...

Any clues for the clueless?

TIA.

Ed
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 E-Mail: le*@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/sZplrRNGhTxJvdYRAgmYAJ9uPd3he7bibZYeDpKyP7bK+8D2Zw CgmMoY
ewFUuonLr+agPLeQt2cbMaE=
=2ELu
-----END PGP SIGNATURE-----

Nov 12 '05 #2
"Ed L." <pg***@bluepolka.net> writes:
No matter what I try, I keep getting this error:
$ createlang plperl template1
ERROR: Load of file /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
failed: libperl.so: cannot open shared object file: No such file or
directory


The error message probably does not mean what it appears to say.
The odds are that the "no such file" applies not to plperl.so itself,
but to some shared library that it depends on directly or indirectly
--- in other words, libperl.so or something that libperl depends on.
Unix dynamic loaders are *notoriously* bad about delivering useful
error messages in this sort of situation :-(

You probably need to fool with your ldconfig configuration to make
sure all of the needed libraries are in ldconfig's search path.
ldd is a useful tool for seeing how library references are being
resolved.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #3
On Tue, Nov 11, 2003 at 07:22:50PM -0700, Ed L. wrote:
$ createlang plperl template1
ERROR: Load of file /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
failed: libperl.so: cannot open shared object file: No such file or
directory
createlang: language installation failed This is perl, v5.8.0 built for i386-linux-thread-multi


Try ldd /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so

If it points out any "not found" libraries, there's something you need
to play with (probably /etc/ld.so.conf).

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Al principio era UNIX, y UNIX habló y dijo: "Hello world\n".
No dijo "Hello New Jersey\n", ni "Hello USA\n".

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 12 '05 #4
On Tue, 2003-11-11 at 21:22, Ed L. wrote:
$ createlang plperl template1
ERROR: Load of file /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
failed: libperl.so: cannot open shared object file: No such file or
directory
createlang: language installation failed
I had the exact problem recently, and I found the solution.

1) First, locate your libperl.so file. On my PPC box it was:

[chris@mafalda chris]$ locate libperl.so
/usr/lib/perl5/5.8.0/ppc-linux-thread-multi/CORE/libperl.so
2) Add that directory to /etc/ld.so.conf

3) run ldconfig (as root)

Then your creatlang statement should work.

Hope that helps.

Cheers,

Chris
But it sure looks like its there to me:

$ ls -l /opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so
-rwxr-xr-x 1 pg pg 35770 Nov 11 19:39
/opt/pgsql/installs/postgresql-7.3.4/lib/plperl.so*

I *think* my perl is threaded based on perl -v:

$ perl -v

This is perl, v5.8.0 built for i386-linux-thread-multi
...

Any clues for the clueless?

TIA.

Ed
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend


---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: cliff | last post by:
Hello, I'm using version 7.3.3 on RedHat 8. I have my pg_hba.conf configured to require passwords for the superuser account postgres and I'm able to log in fine from the command line using...
0
by: Joshua D. Drake | last post by:
Hello, There is now an updated version of plPerl with trigger support available at the Command Prompt community page. It can be viewed with documentation here:...
1
by: Patrick Hatcher | last post by:
Trying to create a plperl function to strip non-friendly mainframe characters from a string. However, when I try to add the Trademark symbol (â„¢) as a replace criteria, PG spits back an error:...
2
by: Christopher Murtagh | last post by:
Greetings, I'm trying to build 7.3.4 and I've come across two problems, one during the configure and the other afterward. Problem 1) Trying to build with openssl support gives this: ...
6
by: Gianni Mariani | last post by:
Before I go deep into this - does anyone have the quick fix for this ? Some facts - the 7.3.4 version of plperl.c has the same errors in the 7.4 tree. The 7.4 version of plperl.c (with some...
6
by: Lee Harr | last post by:
I have a database where I remove the schema public. When I try to use the createlang script, it fails like this ... >createdb foo CREATE DATABASE >psql foo -c "select version()" version...
10
by: Robert Fitzpatrick | last post by:
I have plperl installed my PostgreSQL 7.4.2 server, but from what I understand in chapter 39.3 of the docs, you cannot access the databases without DBD::PgSPI. According to the readme for that...
3
by: Eric E | last post by:
Hi, I have an installation of Postgres 7.4.2 on SuSE 9.1. This version of SuSE comes with a binary for plperl and several other postgres procedural languages. All the others, including plpgsql...
0
by: rski | last post by:
I've installed postgres v. 8.2.4 with plperl support (--with-perl option with configure). But when I try to create plperl languge (createlang plperl) i've got an error createlang: language...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.