From owner-freebsd-questions@FreeBSD.ORG Wed Jun 9 11:44:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 803EC16A4CE for ; Wed, 9 Jun 2004 11:44:16 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2554043D1F for ; Wed, 9 Jun 2004 11:44:15 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i59Bi7qL089432 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Jun 2004 12:44:07 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i59Bi6Kq089431; Wed, 9 Jun 2004 12:44:06 +0100 (BST) (envelope-from matthew) Date: Wed, 9 Jun 2004 12:44:06 +0100 From: Matthew Seaman To: Robert Fitzpatrick Message-ID: <20040609114406.GD12520@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Robert Fitzpatrick , FreeBSD References: <1086748276.2295.9.camel@columbus> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="iVCmgExH7+hIHJ1A" Content-Disposition: inline In-Reply-To: <1086748276.2295.9.camel@columbus> User-Agent: Mutt/1.5.6i X-Greylist: Message not sent from an IPv4 address, not delayed by milter-greylist-1.3.8 (smtp.infracaninophile.co.uk [0.0.0.0]); Wed, 09 Jun 2004 12:44:07 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040604, clamav-milter version 0.71c on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: FreeBSD Subject: Re: Building Perl with shared lib libperl X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2004 11:44:16 -0000 --iVCmgExH7+hIHJ1A Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 08, 2004 at 10:31:16PM -0400, Robert Fitzpatrick wrote: > Trying to install a procedural language in PostgreSQL 7.4.2, pl/perl, > but it complains that my 'libperl is not a shared library' and that I > may need to rebuild my Perl. I am using Perl 5.6.1, is there a way to > set this option when using the port /usr/ports/lang/perl5? Not with the land/perl5 port. However, a shared libperl.so is built by default for the lang/perl5.8 port -- recommend you update to that. Since lang/perl5 is nolonger the default version to install in FreeBSD-5.x I'm not entirely sure why the lang/perl5 port is still stuck at perl-5.6.1. That's a pretty ancient version now, and perl.org recommends 5.8.4 as the standard version everyone should run. Note that if you upgrade from perl-5.6.1 to perl-5.8.4 you will need to re-install any perl modules so that perl-5.8.4 can find them, and you will need to re-install various automake ports that invoke perl5.x.y specifically. See /usr/ports/UPDATING for some brief instructions, but the procedure is generally something like this: # find /usr/local/lib/perl5/{5.6.1,site_perl/5.6.1} -type -f -print0 | \ xargs -0 -n 1 pkg_which | sort -u > /tmp/perl-modules # portupgrade -o lang/perl5.8 -f lang/perl5 # use.perl port # vi /tmp/perl-modules=20 (Edit the list of modules for sanity: take out the explicit references to perl-5.6.1 and the '?', and various lines where 'pkg_which' thinks the file belongs to more than one port. You can (but this is not mandatory) also remove ports which are supplied both as standalone and that are bundled by default with perl but remember to pkg_delete anything you aren't going to re-install) # xargs portupgrade -f < /tmp/perl-modules which will churn away for quite some time. Eventually you should end up with /usr/local/lib/perl5/5.6.1 and /usr/local/lib/perl5/site_perl/5.6.1 both being pretty much empty, and with most of their contents transferred to the corresponding 5.8.4 directories. If everything has gone according to plan, the 5.6.1 directories will be redundant and can be deleted. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --iVCmgExH7+hIHJ1A Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAxvgGiD657aJF7eIRArruAKCI5geDw+f0glJH5Sef5GZGakjOqACgtUmr xdsK/TpprgX4dhPMMNATyhM= =HePn -----END PGP SIGNATURE----- --iVCmgExH7+hIHJ1A--