For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > January 2008 > Can't get PAR packager to run pp









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can't get PAR packager to run pp
Tony T.

2008-01-30, 7:18 pm

Hi:

To create executables, in the past, I've simply used the ppm to install PAR.
This placed pp.bat in the \Perl\site\bin directory.
Easy.

Now, the same steps don't work. I've used both the ppm gui and the command
line.
Everything seems to install just fine, but no pp is anywhere on my system.

Can someone tell me how to set this up?

Thanks,

Tony


Ben Morrow

2008-01-30, 7:18 pm


Quoth "Tony T." <tony@abc.edu>:
>
> To create executables, in the past, I've simply used the ppm to install PAR.
> This placed pp.bat in the \Perl\site\bin directory.
> Easy.
>
> Now, the same steps don't work. I've used both the ppm gui and the command
> line.
> Everything seems to install just fine, but no pp is anywhere on my system.
>
> Can someone tell me how to set this up?


pp itself has moved into the PAR-Packer distribution. IIRC ActiveState
provide a ppm of this too.

Ben

jl_post@hotmail.com

2008-01-30, 7:18 pm

On Jan 30, 2:58 pm, "Tony T." <t...@abc.edu> wrote:
>
> To create executables, in the past, I've simply used the ppm to install PAR.
> This placed pp.bat in the \Perl\site\bin directory.
> Easy.
>
> Now, the same steps don't work. I've used both the ppm gui and the command
> line.
> Everything seems to install just fine, but no pp is anywhere on my system.



A similar problem happened recently to a co-worker of mine. For
some reason, he just didn't have the "pp" executable anywhere in his
%PATH%.

He eventually fixed the problem by going to the Perl Package
Manager and adding a new repository. Then he was able to successfully
install PAR with the command:

ppm install PAR

As to which repository he added, I am not sure. Perhaps someone
here can give a good repository to add, or maybe Googling around a bit
can help.

If you get it to work by adding a new repository, let me know what
you added.

Thanks.

-- Jean-Luc
Ben Morrow

2008-01-30, 7:18 pm


Quoth "jl_post@hotmail.com" <jl_post@hotmail.com>:
> On Jan 30, 2:58 pm, "Tony T." <t...@abc.edu> wrote:
>
>
> A similar problem happened recently to a co-worker of mine. For
> some reason, he just didn't have the "pp" executable anywhere in his
> %PATH%.
>
> He eventually fixed the problem by going to the Perl Package
> Manager and adding a new repository. Then he was able to successfully
> install PAR with the command:
>
> ppm install PAR


ACK! Bad plan. This will probably give you an older version of PAR. It
would be much better to install the current versions of PAR and
PAR-Packer from the AS repo.

Ben

Alan Stewart

2008-01-30, 10:19 pm

On Thu, 31 Jan 2008 00:13:25 +0000, Ben Morrow <ben@morrow.me.uk>
wrote:

>
>Quoth "jl_post@hotmail.com" <jl_post@hotmail.com>:
>
>ACK! Bad plan. This will probably give you an older version of PAR. It
>would be much better to install the current versions of PAR and
>PAR-Packer from the AS repo.
>
>Ben


Actually, Activestate has frequently been behind the curve on PAR
releases. I recommend getting PAR from bribes, instructions at:

http://www.bribes.org/perl/ppmdir.html

It's up to date with CPAN for PAR.

Alan
Tony T.

2008-01-31, 7:21 pm


>
> http://www.bribes.org/perl/ppmdir.html
>
> It's up to date with CPAN for PAR.
>
> Alan


Thanks for all the suggestions.

I'm still having problems, but at least it's a different problem which
is always refreshing!

I added the bribes repository, as above, and installed PAR .977.
There was still no pp.bat anywhere on my system.

Then I did the install as described here:
http://www.expertsrt.com/tutorials/Matt/perlPAR.html
by downloading each file and running nmake on each one.
Now when I type pp, I get:
Can't find par loader at C:/Perl/site/lib/PAR/Packer.pm line 101.
(There's now a pp.bat in c:\Perl\bin)

I'm using Perl 5.10.0, with PAR .977 on Windows XP.1
Same results if I use Perl 5.8

On my old system, running Perl 5.8 and PAR .90, pp.bat lives in
\perl\site\bin, so it appears that the entire structure of PAR has changed.

Has anyone gotten this to work?

Thanks for all your help,

Tony



Tony T.

2008-01-31, 7:21 pm


> On my old system, running Perl 5.8 and PAR .90, pp.bat lives in
> \perl\site\bin, so it appears that the entire structure of PAR has changed.
>
> Has anyone gotten this to work?
>
> Thanks for all your help,
>
> Tony
>
>
>


I found the problem!
As described here:
http://par.wikia.com/wiki/FAQ#Why_d..._pp_any_more.3F

-----------
Why doesn't PAR include pp any more?

With version 0.970, the monolithic PAR distribution was split into a
core PAR distribution which is pure-Perl and a PAR-Packer distribution
which contains all the development tools and anything that might need a
C compiler.

This change enables users to install the light-weight PAR module and use
it to access .par files without requiring a C compiler for tools which
they might never need.
-----------

So all you have to do is install PAR Packer, and all is well.

Thanks for all your help,

Tony
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com