Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > perl + script files from only one directory

Reply
Thread Tools

perl + script files from only one directory

 
 
magne.nilsen@gmail.com
Guest
Posts: n/a
 
      03-28-2007
Does anyone know if it is possible to configure perl (win) in such a
way that all necessary binary and script files can be run from a
single directory? I have an EXE+DLL+support files packer that can
totally wrap all its files and unpack and run them from a single exe,
as long as all needed files are in the same directory... I can accept
some real temp files being created in the temp directory, but I need
perl to run without having the \in \lib \script etc.etc
subdrectories... I 've seen what the PAR module can do, but that just
unpacks the total structure with subdirs to a temp area... which is
not what I am looking for. Alternatively, is there any alternative
"compilers" that truly compiles absolutely all needed files into a
single EXE ?

Magne

 
Reply With Quote
 
 
 
 
Reinhard Pagitsch
Guest
Posts: n/a
 
      03-28-2007
wrote:
[snip]

> not what I am looking for. Alternatively, is there any alternative
> "compilers" that truly compiles absolutely all needed files into a
> single EXE ?


Yes PAR do it also. Use pp.bat to compile the .pl script and the used
modules. The documentation can be found under /perl/html/bin/pp.html

regards,
Reinhard

--
PM Mails an rpirpag <at> gmx dot at
 
Reply With Quote
 
 
 
 
magne.nilsen@gmail.com
Guest
Posts: n/a
 
      03-28-2007
On Mar 28, 1:04 pm, Reinhard Pagitsch <r...@gmx.net> wrote:
> > Alternatively, is there any alternative
> > "compilers" that truly compiles absolutely all needed files into a
> > single EXE ?

>
> Yes PAR do it also. Use pp.bat to compile the .pl script and the used
> modules. The documentation can be found under /perl/html/bin/pp.html
>


In my win install there are no pp.bat nor pp.html...
Still, what I've seen from par is a single EXE that when run extracts
a complete perl environment and all files and sundirs to a temp area,
which is the opposite of what I am looking for...

Magne

 
Reply With Quote
 
Reinhard Pagitsch
Guest
Posts: n/a
 
      03-29-2007
wrote:
> On Mar 28, 1:04 pm, Reinhard Pagitsch <r...@gmx.net> wrote:
>> > Alternatively, is there any alternative
>> > "compilers" that truly compiles absolutely all needed files into a
>> > single EXE ?

>>
>> Yes PAR do it also. Use pp.bat to compile the .pl script and the used
>> modules. The documentation can be found under /perl/html/bin/pp.html
>>

>
> In my win install there are no pp.bat nor pp.html...
> Still, what I've seen from par is a single EXE that when run extracts
> a complete perl environment and all files and sundirs to a temp area,
> which is the opposite of what I am looking for...


Hmm, pp.bat is part of the PP module, install the PP module and you have
the pp.bat. On Windows there will be also a single EXE file but there
will be no extraction of the perl environment to a temp file.
Take a look: http://cpan.uwinnipeg.ca/module/pp.
I am satisfied with the Perl Packager. I use the exe files on servers
where no Perl is installed.
An other option would be perl2exe from http://www.indigostar.com/, but
it is not free. You can download a trial version to show how it works.

Reinhard

--
PM Mails an rpirpag <at> gmx dot at
 
Reply With Quote
 
magne.nilsen@gmail.com
Guest
Posts: n/a
 
      03-29-2007
On Mar 29, 9:20 am, Reinhard Pagitsch <r...@gmx.net> wrote:
> magne.nil...@gmail.com wrote:
> > On Mar 28, 1:04 pm, Reinhard Pagitsch <r...@gmx.net> wrote:
> >> > Alternatively, is there any alternative
> >> > "compilers" that truly compiles absolutely all needed files into a
> >> > single EXE ?

>
> >> Yes PAR do it also. Use pp.bat to compile the .pl script and the used
> >> modules. The documentation can be found under /perl/html/bin/pp.html

>
> > In my win install there are no pp.bat nor pp.html...
> > Still, what I've seen from par is a single EXE that when run extracts
> > a complete perl environment and all files and sundirs to a temp area,
> > which is the opposite of what I am looking for...

>
> Hmm, pp.bat is part of the PP module, install the PP module and you have
> the pp.bat. On Windows there will be also a single EXE file but there
> will be no extraction of the perl environment to a temp file.
> Take a look:http://cpan.uwinnipeg.ca/module/pp.
> I am satisfied with the Perl Packager. I use the exe files on servers
> where no Perl is installed.
> An other option would be perl2exe fromhttp://www.indigostar.com/, but
> it is not free. You can download a trial version to show how it works.
>
> Reinhard
>
> --
> PM Mails an rpirpag <at> gmx dot at


Great, getting closer....

ref: http://cpan.uwinnipeg.ca/htdocs/PAR-...nd_alone_setup
so - running pp without "--dependent" and with "--gui" is meant to
produce a single win.exe that does not recreate the perl environment
in the temp dir, and also without a win console window ?

Thanks,
Magne

 
Reply With Quote
 
Reinhard Pagitsch
Guest
Posts: n/a
 
      03-29-2007
Michele Dondi wrote:
> On 29 Mar 2007 00:47:40 -0700, wrote:
>
>>ref: http://cpan.uwinnipeg.ca/htdocs/PAR-...nd_alone_setup
>>so - running pp without "--dependent" and with "--gui" is meant to
>>produce a single win.exe that does not recreate the perl environment
>>in the temp dir, and also without a win console window ?

> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Once you have your .exe, you can operate on it with AS's exetype.
>
> exetype foo.exe WINDOWS


Great, that I did not know. I will keep it in mind.
Thanks to the authors of PAR and pp.

regards,
Reinhard


--
PM Mails an rpirpag <at> gmx dot at
 
Reply With Quote
 
magne.nilsen@gmail.com
Guest
Posts: n/a
 
      03-29-2007
On Mar 29, 10:24 am, Michele Dondi <bik.m...@tiscalinet.it> wrote:
> On 29 Mar 2007 00:47:40 -0700, magne.nil...@gmail.com wrote:
>
> >ref:http://cpan.uwinnipeg.ca/htdocs/PAR-...nd_alone_setup
> >so - running pp without "--dependent" and with "--gui" is meant to
> >produce a single win.exe that does not recreate the perl environment
> >in the temp dir, and also without a win console window ?

>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Once you have your .exe, you can operate on it with AS's exetype.
>
> exetype foo.exe WINDOWS
>
> should do.
>
> HTH,
> Michele
> --


Hi,

sorry - it still recreates a complete perl subdir structure and more
in:
C:\Documents and Settings\UserName\Local Settings\Temp\par-UserName
(\inc\lib ++ subdirs and \sript with .pl files)

perl2exe-8.80-Win32 OTOH seems to do it without these things...
so I guess I'll have to trace that route. ($$, but that's OK)

Thanks to all!
Magne


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 5.38 Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn't this a bug in Perl? PerlFAQ Server Perl Misc 0 03-09-2011 11:00 PM
FAQ 5.38 Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn't this a bug in Perl? PerlFAQ Server Perl Misc 0 02-11-2011 05:00 AM
Issue in executing more than one perl script from Single perl script nilesh.sonawane@gmail.com Perl Misc 3 11-01-2007 06:19 PM
Directory Browsing for one directory only Joe Kovac ASP .Net 2 10-11-2007 03:22 PM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57