Can"t get PAR packager to run pp

Can"t get PAR packager to run pp

am 30.01.2008 22:58:29 von tony

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

Re: Can"t get PAR packager to run pp

am 31.01.2008 00:35:58 von Ben Morrow

Quoth "Tony T." :
>
> 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

Re: Can"t get PAR packager to run pp

am 31.01.2008 00:53:36 von jl_post

On Jan 30, 2:58 pm, "Tony T." 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

Re: Can"t get PAR packager to run pp

am 31.01.2008 01:13:25 von Ben Morrow

Quoth "jl_post@hotmail.com" :
> On Jan 30, 2:58 pm, "Tony T." 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

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

Re: Can"t get PAR packager to run pp

am 31.01.2008 03:29:36 von Alan Stewart

On Thu, 31 Jan 2008 00:13:25 +0000, Ben Morrow
wrote:

>
>Quoth "jl_post@hotmail.com" :
>> On Jan 30, 2:58 pm, "Tony T." 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
>
>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

Re: Can"t get PAR packager to run pp

am 31.01.2008 16:35:11 von tony

>
> 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

Re: Can"t get PAR packager to run pp

am 31.01.2008 16:47:18 von tony

> 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_doesn.27t_PAR_include_pp_a ny_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