X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 0B011D1B54B for ; Fri, 14 Nov 2003 18:45:45 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 43585-03 for ; Fri, 14 Nov 2003 14:45:14 -0400 (AST) Received: from hq.dinamis.com (CPE00d0b74f1d78-CM400026117625.cpe.net.cable.rogers.com [24.102.61.185]) by svr1.postgresql.org (Postfix) with SMTP id 4817FD1B568 for ; Fri, 14 Nov 2003 14:45:12 -0400 (AST) Received: (qmail 4793 invoked from network); 14 Nov 2003 18:24:48 -0000 Received: from unknown (HELO pluto-2k.dinamis.com) (192.168.1.33) by neptune.hq.dinamis.com (192.168.1.1) with ESMTP; 14 Nov 2003 18:24:48 -0000 Message-Id: <5.2.0.9.0.20031114130936.02994a90@localhost> X-Sender: postgres%dinamis.com@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Fri, 14 Nov 2003 13:41:12 -0500 To: pgsql-admin@postgresql.org From: CLIFFORD ILKAY Subject: Solution to createlang plpgsql Failing on Mandrake 9.1 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/285 X-Sequence-Number: 11272 Hi, I am running PostgreSQL 7.3.2 on Mandrake 9.1. When I attempted to install the PL/PGSQL language for the first time, I got the following error: ERROR: stat failed on file '$libdir/plpgsql': No such file or directory createlang: language installation failed I had the following packages installed: [root@pluto root]# rpm -qa|grep postgres postgresql-7.3.2-5mdk postgresql-jdbc-7.3.2-5mdk postgresql-server-7.3.2-5mdk I Googled the error and searched the PG list archives and found that others had similar problems but none of the solutions that were offered helped but there was one clue, that plpgsql.so was missing. I looked for that file on rpmfind.net only to find that it was packaged in the posgtresql-server rpm. The postgresql-server Mandrake rpm that I already had installed did not contain that file so it appeared to be a Mandrake specific packaging issue. With the help of a kind soul on the #mandrake IRC channel, I managed to find the package that contains the shared library. It is postgresql-pl. I had not originally installed that package because I had mistakenly thought it had something to do with Perl and since I did not need Perl support for PG, I thought I had no use for it. Evidently, this package, which *does* have something to do with Perl, also contains the shared libraries for PL/Python, PL/TCL, and last but not least, PL/PGSQL. It is rather poor packaging or poor naming but the upshot of it is that once I installed this rpm, createlang worked as expected and I was able to create functions. I have also added this to the createlang and CREATE LANGUAGE annotated documentation pages to help those who may be experiencing the same problem discover the solution quickly. Regards, Clifford Ilkay Dinamis Corporation 3266 Yonge Street, Suite 1419 Toronto, Ontario Canada M4N 3P6 Tel: 416-410-3326