For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > August 2007 > Exe and module download questions









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 Exe and module download questions
E.D.G.

2007-08-29, 8:04 am

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?



Reinhard Pagitsch

2007-08-29, 8:04 am

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

--
E.D.G.

2007-08-29, 8:04 am

"Reinhard Pagitsch" <rprp@gmx.net> 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.


Edmo

2007-08-29, 3:52 pm

Carmen Electra and Pamela Anderson Tongue Tickles Lesbian Lovers Pussy Movies!
Petr Vileta

2007-08-29, 10:03 pm

Reinhard Pagitsch wrote:
> E.D.G. wrote:
>
> To make an executable of a Perl script you can use the Perl Packager
> (http://par.perl.org/), or perl2exe.
>


or Komodo SDK

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


E.D.G.

2007-08-29, 10:03 pm

"Reinhard Pagitsch" <rprp@gmx.net> wrote in message
news:46d53dfc$0$90268$14726298@news.sunsite.dk...[color=darkred]
> E.D.G. wrote:

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.


E.D.G.

2007-08-29, 10:03 pm

"Petr Vileta" <stoupa@practisoft.cz> 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.


Ben Morrow

2007-08-29, 10:03 pm


Quoth "E.D.G." <edgrsprj@ix.netcom.com>:
> "Petr Vileta" <stoupa@practisoft.cz> 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

Reinhard Pagitsch

2007-08-30, 4:11 am

E.D.G. wrote:
> "Reinhard Pagitsch" <rprp@gmx.net> wrote in message
> news:46d53dfc$0$90268$14726298@news.sunsite.dk...
>=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

E.D.G.

2007-08-30, 8:04 am

"Reinhard Pagitsch" <rprp@gmx.net> 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.


Sponsored Links







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

Copyright 2008 codecomments.com