Show quoted text>>>>> On Wed, 15 Nov 2006 14:36:11 -0500, "Alberto Simões via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
Show quoted text > I didn't test yet that CPAN version. I think that your solution can
> solve my problem, but I give you more details here, so you can see if
> there is any easier solution.
Show quoted text > I am using a cluster and they do not install the Perl module I want
> worldwide. Thus, I have an installation script (installs some C
> libraries and a lot of Perl modules). Thus, if someone else wants to try
> my software I just give them my script and it will install everything.
Show quoted text > Thus, I have a lot of lines like these:
Show quoted text > install "XML::LibXML";
> install "XML::DT";
> install "XML::TMX";
> install "File::Spec";
> install "DBI";
Show quoted text > $CPAN::Config->{'makepl_arg'} = q[PREFIX=/usr SQLITE_LOCATION="$HOME/usr"];
What? This does of course not work, you probably meant
cpan[4]> ! $CPAN::Config->{'makepl_arg'} = qq[PREFIX=$ENV{HOME}/usr SQLITE_LOCATION="$ENV{HOME}/usr"]
cpan[4]> o conf makepl_arg
makepl_arg [PREFIX=/home/k/usr SQLITE_LOCATION="/home/k/usr"]
Show quoted text > install "DBD::SQLite";
Yes, this seems like a cute alternative. I never used it myself
because I'm unhappy when I have to reset the makepl_arg after the
command with a new value.
Show quoted text > Of course I can add a yaml file with the details in the tarball, but if
> I had some:
Show quoted text > install "DBD::SQLite", q[SQLITE_LOCATION="$HOME/url"]
Show quoted text > would be more readable.
> Another option would be to add a different function name.
I see what you mean, but if the above works for you, you're probably
satisfied?
--
andreas