Exe and module download questions
Exe and module download questions
am 29.08.2007 11:05:06 von edgrsprj
Questions related to the downloadable ActiveState version of Perl.
1. Exe - What are the steps involved with creating a standalone .exe copy
of a Perl program?
2. Downloading Cpan Modules - What are the steps involved with
downloading a module from Cpan for example, unzipping the module, and then
merging it with Perl? Where can we get hold of a program for unzipping the
modules for example?
Re: Exe and module download questions
am 29.08.2007 11:35:55 von Reinhard Pagitsch
E.D.G. wrote:
> Questions related to the downloadable ActiveState version of Perl.
>
> 1. Exe - What are the steps involved with creating a standalone .exe copy
> of a Perl program?
To make an executable of a Perl script you can use the Perl Packager
(http://par.perl.org/), or perl2exe.
>
> 2. Downloading Cpan Modules - What are the steps involved with
> downloading a module from Cpan for example, unzipping the module, and then
> merging it with Perl? Where can we get hold of a program for unzipping the
> modules for example?
Here you can use the program cpan.bat which is a part of the Activestate
distribution, it is in the Perl/bin directory. To compile XS (C/C++)
modules you have to install Visual C/C++ 6.0 or the free Visual C++ 2005
express edition from Microsoft.
There are some free programs like GNU zip, GNU tar to extract the modules.
regards,
Reinhard
--
Re: Exe and module download questions
am 29.08.2007 11:56:27 von edgrsprj
"Reinhard Pagitsch" wrote in message
news:46d53dfc$0$90268$14726298@news.sunsite.dk...
> To make an executable of a Perl script you can use the Perl Packager
> (http://par.perl.org/), or perl2exe.
> Here you can use the program cpan.bat which is a part of the Activestate
Thanks for the information. I am going to try the exe program creation
routines first.
Re: Exe and module download questions
am 29.08.2007 15:52:21 von Petr Vileta
Reinhard Pagitsch wrote:
> E.D.G. wrote:
>> Questions related to the downloadable ActiveState version of Perl.
>>
>> 1. Exe - What are the steps involved with creating a standalone
>> .exe copy of a Perl program?
>
> To make an executable of a Perl script you can use the Perl Packager
> (http://par.perl.org/), or perl2exe.
>
or Komodo SDK
>> 2. Downloading Cpan Modules - What are the steps involved with
>
> Here you can use the program cpan.bat which is a part of the
or ppm.bat, ppm3.bat or what is actually shipped with ActivePerl
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
Re: Exe and module download questions
am 29.08.2007 16:54:15 von edgrsprj
"Reinhard Pagitsch" wrote in message
news:46d53dfc$0$90268$14726298@news.sunsite.dk...
> E.D.G. wrote:
> > Questions related to the downloadable ActiveState version of Perl.
When the PAR tar.gz file was decompressed it created a directory called
Par-0.976 which contains a number of files, directories such as inc, lib,
and t, and subdirectories. The lib directory contains a Par directory and a
Par.pm file.
What is the next step for merging Par with perl?
I am using ActiveState 5.8.8 which contains ppm. But that program appears
to install only ppd files.
Re: Exe and module download questions
am 29.08.2007 16:56:09 von edgrsprj
"Petr Vileta" wrote in message
news:fb3toh$1vsd$1@ns.felk.cvut.cz...
Thanks. I am now able to decompress tar.gz files and am trying to determine
how to install them in Perl.
Re: Exe and module download questions
am 29.08.2007 21:31:46 von Ben Morrow
Quoth "E.D.G." :
> "Petr Vileta" wrote in message
> news:fb3toh$1vsd$1@ns.felk.cvut.cz...
>
> Thanks. I am now able to decompress tar.gz files and am trying to determine
> how to install them in Perl.
The easiest way is to use CPAN.pm (see perldoc CPAN) which will
download, unpack, build and install modules for you. Some modules
require a C compiler; I understand recent builds of ActivePerl will
attempt to use gcc if you have it installed (ActivePerl is built with
MSVC 6, which is not free), but I have come across problems with this
feature in the past (notably trying to build Perl.pm, which is
admittedly a rather complex special case...).
As another poster has mentioned, you may have more luck with ppm,
although AS do not provide all CPAN modules as PPMs (I believe they only
provide those which will build without errors on a clean machine, so not
any which require external libraries like Crypt::SSLeay).
Ben
Re: Exe and module download questions
am 30.08.2007 09:24:14 von Reinhard Pagitsch
E.D.G. wrote:
> "Reinhard Pagitsch" wrote in message
> news:46d53dfc$0$90268$14726298@news.sunsite.dk...
>> E.D.G. wrote:
>> > Questions related to the downloadable ActiveState version of Perl.
>=20
> When the PAR tar.gz file was decompressed it created a directory called=
> Par-0.976 which contains a number of files, directories such as inc, li=
b,
> and t, and subdirectories. The lib directory contains a Par directory a=
nd a
> Par.pm file.
>=20
> What is the next step for merging Par with perl?
read the README which is included in the Par-0.976 directory. There are=20
all necessary informations about the build and install.
Here an extract from the http://par.perl.org page:
Note: Contrary to popular belief, you do not need a C compiler on=20
Windows to install PAR =96 just follow the "Download" link, extract it to=
=20
some temporary directory, and install it like any other perl module by=20
following README's instructions. An incomplete compatibility list=20
between PAR binary releases and Win32 Perl versions can be found here.
>=20
> I am using ActiveState 5.8.8 which contains ppm. But that program appe=
ars
> to install only ppd files.
Yes it can only install ppm packages. But there are some ppm=20
repositories where you can find a lot of ppm packages ready to install=20
with ppm.
http://cpan.uwinnipeg.ca/htdocs/faqs/cpan-search.html
http://win32.perl.org/wiki/index.php?title=3DMain_Page (# 3.2 Modules and=
=20
Repositories)
http://www.bribes.org/perl/ppmdir.html
regards,
Reinhard
>=20
--=20
Re: Exe and module download questions
am 30.08.2007 12:14:06 von edgrsprj
"Reinhard Pagitsch" wrote in message
news:46d6709f$0$90274$14726298@news.sunsite.dk...
Thanks again. I did actually find a copy of Par that I was able to link
with Perl by using ppm. And I am planning to post another note discussing
what the main goal is here. Basically, it is to get Perl to create charts
and standalone .exe versions of an existing Perl program which can be used
by scientific researchers around the world.