Perl Forum for Beginners

Query related to PAR::Packer

Jun 20, 2009 3:56 pm
Anirban Adhikary

--0016e644b95e127b3e046cc9af40
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hi List

I need to run some applications written entirely in perl in some systems
where I dont have an access. Other people run this applications. Now the
problem is that when they find any error they always open the source and
edited it which makes things more worse.So I compiled the source using *perl
-Mo=Bytecode ........* . But It has several drawbacks I often gets
segmentation fault error while running the applications on the target
machines, which is very difficult to rectify. Another thing is that
B::Bytecode was removed from 5.10, because it is buggy, experimental code
that should not be used. So I found PAR::Packer and I have installed it
successfully in my testing machine.
Now I have some question related to PAR::Packer.

Is it possible to archiving the code using pp in my source machine and run
that code successfully in the target machine which don't have the
PAR::Packer module installed (and I should not be allowed to install
PAR::Packer on target machines)

Is it possible that I archived the source package in a linux machine and
run it successfully in the target machines which can be Solaris,AIX, or
HP-UX?

Thanks & Regards
Anirban Adhikary.

--0016e644b95e127b3e046cc9af40--

Jun 23, 2009 7:11 am
Sanket Vaidya
RE: Query related to PAR::Packer


-----Original Message-----
From: Anirban Adhikary [mailto:anirban.adhikary@gmail.com]
Sent: Saturday, June 20, 2009 9:26 PM
To: beginners@perl.org
Subject: Query related to PAR::Packer

>>Hi List

>I need to run some applications written entirely in perl in some systems
>where I dont have an access. Other people run this applications. Now the
>problem is that when they find any error they always open the source and
>edited it which makes things more worse.So I compiled the source using
>*perl
>Mo=Bytecode ........* . But It has several drawbacks I often gets
>segmentation fault error while running the applications on the target
>machines, which is very difficult to rectify. Another thing is that
>B::Bytecode was removed from 5.10, because it is buggy, experimental code
>that should not be used. So I found PAR::Packer and I have installed it
>successfully in my testing machine.
>Now I have some question related to PAR::Packer.

>Is it possible to archiving the code using pp in my source machine and run
>hat code successfully in the target machine which don't have the
>PAR::Packer module installed (and I should not be allowed to install
>PAR::Packer on target machines)

What par does is basically packs the required files or modules in a single
file. So when you can use the packed file independently (as the requirements
are already contained in file).
Say for e.g.
If you make binary than it is possible provided that the target machine
supports that binary. Refer
http://search.cpan.org/~smueller/PAR-0.992/lib/PAR/Tutorial.pod for more
details.

>Is it possible that I archived the source package in a linux machine and
>run it successfully in the target machines which can be Solaris,AIX, or
>HP-UX?

This depends on your source package. Refer 'Cross-platform Packages' from
above link.

Hope this helps.

Thanks & Regards,
Sanket Vaidya



_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally privileged information for the sole use of the person or entity to whom this message was originally addressed. Any review, e-transmission dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you have received this e-mail in error kindly delete this e-mail from your records. If it appears that this mail has been forwarded to you without proper authority, please notify us immediately at netadmin@patni.com and delete this mail.
_____________________________________________________________________




Previous Thread: Split() and trailing empties
Next Thread: CPAN won't install YAML and others

Related Forum Topics
Simple OOPs related query.
--001636417d1361b788047b2dce08
Content-Type: text/plain; charset=UTF-8

Hello All,

Just started learning OOPs in Perl from the book 'Intermediate Perl' written
by Randal.

I have written a small program given below. Its working at most places
except while printing color of unnamed...
PAR packer Error
Hello,
I am trying to make an exe file from a perl script file. I am using
ActiveState Perl 5.8.6 (Build 811) on Windows.
This is the lcommand that i am running and the error msg:

pp -o sp.exe spdisplaye.pl
Perl lib version (v5.8.6) doesn't match executable version (v5.8.8)...
Parl-Packer installation urgent help required
------=_NextPart_000_0024_01C90378.E1192490
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi all,

When I run makefile .pl while installing Parl::Packer 0.982. I
get this message.

Fetching...
Some UTF-8-related questions
Hi,

Thanks for the answers on my last question. I have since then dug a bit further in the UTF-8-related error message I got, and after some reading have a few questions with regards to UTF-8 handling in perl:

(Please bear in mind that I am not an IT guy)

1a) My use statements are the...
Problem related to ZGV installation
------=_NextPart_000_001C_01C8F15C.75FD29F0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi all,



I have posted this in couple of LINUX groups before 5 days & yet have not
got any reply. Can anyone from this group could help me out?
I am...
Flock related problem
------=_Part_38687_10676067.1227848978237
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Dear List
I have written two identically same program, both of which using a same file
to write some data.My logic is that when prog1 will...
Processing related elements in an array
Hey, I hope someone can help me in calculating this:

My goal is to pass an array, @arr1 = ("A", "C") to a subroutine, and
using another array, @arr2 = ("B.aID = A.ID", "D.ID = A.dID", "C.ID =
B.cID", "E.cID = C.ID"), use that to then
simplify @arr2 to get @arr3 = ("B = A", "D = A", "C =...
A question related to file selection
------_=_NextPart_001_01C97CDF.018234AE
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi all,

=20

I need copy files from a directory daily to a folder. How can I select
files based on dates that were created?

=20

Thanks,

=20

AG...
Question related Join function
--00504502c74f9776c804619bd604
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Dear List
I have doubt about the exact working of join function. I have written the
following small code
use strict;
use warnings;

my @array= join ("-k", @ARGV );
print...
Perl/CGI related domain name for sale...
We are the owner of the domain name cgiscripts-perl.com and currently think about to sell it. It has been used as an alternative domain name for a Perl scripts website, but now is no longer needed.

Maybe someone of you manages a business that is affiliated to Perl/CGI programming (or knows one)...