On Sun, 17 Jun 2001, Mahdi A. Sbeih wrote:
>Hi Jonathan,
>
>Thanks for all these information, I have some questions on this:
>
>1- Is there a way to alter @INC, so the customer can put the Perl
> directories in the place that he wants?,
> DBD_INFORMIX_RELOCATABLE_INFORMIXDIR, since the INFORMIXDIR doesn't
> need to be the same for the customers,
Probably, but I don't know the details. The file Notes/nonroot.install
has what may be relevant guidance, but I'm not sure of that.
>2- When setting the env variable DBD_INFORMIX_RELOCATABLE_INFORMIXDIR
> before compiling, where will the script find the Informix Libraries
> needed? do I need to set LD_LIBRARY_PATH on Solaris and SHLIB_PATH
> on HP_UX.
Correct - you have to set LD_LIBRARY_PATH or SHLIB_PATH. And programs
run by root won't pay any attention to these settings, so they will
fail! If that is unacceptable, you will need to run 'ldd' or the
equivalent to find out which libraries are used, and then create
symlinks in /usr/lib pointing to the Informix libraries -- in which
case, you don't need to set LD_LIBRARY_PATH or SHLIB_PATH for anyone.
However, you cannot so easily have two versions of Informix installed on
the same machine.
>Thanks in advance,
>Mahdi.
>
>-----Original Message-----
>From: Jonathan Leffler [mailto:[EMAIL PROTECTED]]
>Sent: Friday, June 15, 2001 6:04 AM
>To: Mahdi A. Sbeih
>Cc: [EMAIL PROTECTED]; DBD Informix Maintenance Team
>Subject: Re: building DBI and DBD::Informix and move it to other machine
>
>
>"Mahdi A. Sbeih" wrote:
>
>> I made a Perl DBI script on Solaris 2.7, I want to send this script to a
>> customer who has also Solaris 2.7,
>> do the customer need to install and build DBI and DBD::Informix on that
>> machine? Or I can just send him the
>> compiled files that were built on my machine? If I can send him the
>compiled
>> version, what are exactly these
>> files and where he has to put them?
>
>You probably can supply the customer with your locally compiler Perl + DBI +
>DBD::Informix, but there are caveats. The simplest way to get it to work is
>to
>bundle everything in the Perl directories into a tar file and distribute
>that.
>Separating just what's in DBI and DBD::Informix will be harder, though I
>dare
>say it is not impossible. If the Perl distribution on the customer's
>machine is
>not installed in the same location as on your machine, it will be easier to
>build on the customer's machine than to transfer - IMO. Also, if the
>location
>of $INFORMIXDIR is not the same on the customer's machine as on your
>machine,
>then life with DBD::Informix is harder unless you built DBD::Informix with
>the
>DBD_INFORMIX_RELOCATABLE_INFORMIXDIR (yep, it's long because I don't
>recommend
>using it) is set. Unless it is set, the absolute pathnames of the Informix
>libraries are built into the binary (shared object). This works best for
>things
>like web servers -- it saves running into problems with root-owned processes
>and
>(some) unset environment variables. But it doesn't transfer between
>machines
>all that well, necessarily.
>
>You do need at least Informix Connect on the customer's machine. This is
>readily available for the purely nominal fee of $0.00 (other currencies
>accepted
>too).
>
>
>> If he needs to build and install the DBI module and DBD::Informix himself,
>> can we as a company include the
>> DBI module and DBD::Informix tar files on our software CD, or there are
>some
>> regulations?
>
>Source code can be supplied fairly freely -- check the DBI licence to make
>sure. DBD::Informix source code can be distributed unchanged without
>problem.
>
>
>> Are the DBI and DBD::Informix tar files the same for Solaris and HP-UX?
>
>The source code is the same. The results of the build are not - a comment
>that
>applies equally to any Perl module where the module uses the C compiler.
>
>--
>Jonathan Leffler ([EMAIL PROTECTED], [EMAIL PROTECTED])
>Guardian of DBD::Informix 1.00.PC1 -- see http://www.cpan.org/
>#include <disclaimer.h>
>
>
--
Yours,
Jonathan Leffler ([EMAIL PROTECTED]) #include <disclaimer.h>
Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN
"I don't suffer from insanity; I enjoy every minute of it!"