Hello,
First, I have a new email address. I used to write in as "[EMAIL PROTECTED]". I am now "[EMAIL PROTECTED]".
I installed Slackware 10.1 and installed PAR on it. I have done the same in the past with a number of machines, including a Linux Mandrake machine, which I still have. I am having problems on Slackware that I believe would not show up unless the perl installation had it's libraries at
/usr/lib/perl5/5.8.6/i486-linux
/usr/lib/perl5/5.8.6
/usr/lib/perl5/site_perl/5.8.6/i486-linux
/usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl
which is where Slackware has them. This is as opposed to Mandrake, and I suspect all other Red Hat based machines, which have their perl libraries at
/usr/local/lib/perl5/5.8.6/i686-linux
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
I state this because, after some triage, I found that the parl binary has it's @INC at
/usr/local/lib/perl5/5.8.6
/usr/local/lib/perl5/site_perl/5.8.6/i686-linux
/usr/local/lib/perl5/site_perl/5.8.6
/usr/local/lib/perl5/site_perl
which is of course the same as Mandrake's.
Here is how I can duplicate the problem. Create a file called test_perl_lib.pl like this:
#!/usr/bin/perl -w
use strict;
my $item;
print "The INC array holds:\n";
foreach $item (@INC) {
print "\t$item\n";
}
#--------------- end of test_perl_lib.pl
Naturally, running it yeilds a print out of the @INC array. Now if I attempt to
pp -o test_it test_perl_lib.pl
on Mandrake everything works just fine. However, on Slackware, I get
[EMAIL PROTECTED]:/home/webdownload# pp -o show_inc test_perl_lib.pl
Can't locate Cwd.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.6/i686-linux /usr/local/lib/perl5/5.8.6 /usr/local/lib/perl5/site_perl/5.8.6/i686-linux /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl .) at /usr/local/lib/perl5/5.8.6/File/Spec/Unix.pm line 458.
BEGIN failed--compilation aborted at -e line 835.
[EMAIL PROTECTED]:/home/webdownload#
Doing grep on the Makefile shows that Makefile is correctly picking up real Slackware perl and it's libraries. After doing further grepping, I have found that only the binary file PAR-0.87/script/parl matches for "/usr/local/lib/perl5"
The explaination of parl is: * Freestanding version of par.pl, with a built-in Perl interpreter! * Ideal for deployment on machines without an existing Perl installation * Runs PAR files as well as Perl programs
I am guessing that pp is errently invoking parl instead of the machine's installed interpreter. Thanks
