From owner-freebsd-questions Wed Apr 14 5:23:37 1999 Delivered-To: freebsd-questions@freebsd.org Received: from lion.plab.ku.dk (lion.plab.ku.dk [130.225.105.49]) by hub.freebsd.org (Postfix) with ESMTP id F3F9314EB1 for ; Wed, 14 Apr 1999 05:23:34 -0700 (PDT) (envelope-from tobez@lion.plab.ku.dk) Received: (from tobez@localhost) by lion.plab.ku.dk (8.9.3/8.9.1) id OAA17917; Wed, 14 Apr 1999 14:20:25 +0200 (CEST) To: andy Cc: Anton Berezin , freebsd-questions@FreeBSD.ORG Subject: Re: freebsd + interbase + ibperl module References: From: Anton Berezin Date: 14 Apr 1999 14:20:25 +0200 In-Reply-To: andy's message of Wed, 14 Apr 1999 00:32:44 +0300 (EEST) Message-ID: <86d81775rq.fsf@lion.plab.ku.dk> Lines: 50 X-Mailer: Gnus v5.3/Emacs 19.34 - on FreeBSD 4.0-current Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG andy writes: > I've got interbase4 binary distro containing aout libraries which > are to be used by one of the perl interbase modules. > > Being on elf system this module is compiled as elf, which can't use > aout interbase libraries. (?) > > How do I solve this problem? > > Do I need to compile aout perl to be able to use aout interbase libraries? > Well, in case i've got aout perl, how would I compile any module as aout to > be compatible with aout perl? > > These elf & aout got me down. > Please help me out. I would do it like this: o compile and test aout perl. o install it into some location; I think that /usr/local/bin is quite alright; don't let aout perl substitute standard /usr/bin/perl executable, though. o install your libraries. The best location for them is at /usr/local/lib/aout. o start a shell with environment tuned to launch aout perl. In this example, put /usr/local/bin before /usr/bin in your path (just for this session). o also, do OBJFORMAT=aout; export OBJFORMAT in the shell. o if your libraries (interbase, whatever) are shared, make sure to ldconfig -aout -R to update aout-.so cache (do it as root) o now you should be able to compile all necessary perl XS modules which use (interbase, whatever) libraries. Do it. That's seem to be all. After performing all those steps you should be able to run /usr/local/bin/perl and use XS modules you need. Please note that all this, except compiling aout perl, is untested. Hope this helps. -- ep0: 3c509 in test mode. Erase pencil mark! -- man 4 ep DIAGNOSTICS section To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message