Beruflich Dokumente
Kultur Dokumente
Respuesta:
November 2019 Update: PPM has been replaced with the ActiveState Platform, which
enhances PPM’s build and deploy capabilities. Create a free account to download
ActivePerl and customize Perl with the packages you require.
ActivePerl already includes many modules for common tasks like accessing databases,
using network services, parsing XML files, compressing and decompressing data, or
creating GUI applications.
Sooner or later you will want to use additional modules from CPAN that are not
already included. You can either download pre-compiled binaries with the Perl
Package Manager (PPM) or you can build and install the modules yourself with the
regular Perl tools, like the CPAN shell. All it takes is a simple command like
this:
cpan Crypt::Blowfish
The following information is accurate for ActivePerl 5.8.9.827, 5.10.1.1007 and
5.12.2.1202. For earlier versions details may be different.
Alternatively you can run ppm without any parameters to invoke the GUI, search for
DBD-mysql, select the DBD-mysql package, and perform the installation:
ActiveState downloads all new packages from CPAN once a day and tries to build them
for each supported platform. The generated binaries will be added to the PPM
repositories if:
Note that currently only the Windows platform has additional third-party PPM
repositories.
export http_proxy=http://proxy.company.com
And for cmd.exe on Windows it looks like this:
set http_proxy=http://user:passwd@proxy.company.com:8008
A common error is to leave out the protocol prefix (“http://” or “https://”) from
the variable setting, in which case it will not work at all.
Many places on the net explain that the environment variables http_proxy_user and
http_prox_pass need to be set. This information was true for the old PPM3 client
and is no longer correct. Only the standard http_proxy variable is used.
The ppm log command is a handy debugging tool to display the last couple of minutes
from the PPM log file in case the connection to the repo still fails after setting
the http_proxy variable:
ppm log 5
BUILDING MODULES LOCALLY
It is always possible to attempt to build a module locally if it cannot be found in
the PPM repositories. This requires both a make utility and often also a C
compiler. On Linux the GCC compiler and the GNU make utility are typically already
installed.
On Mac OS X both GCC and GNU make are part of Apple’s Xcode developer tools, which
can be installed from the OS X installation DVD, or downloaded from the Apple
Developer Tools website.
The CPAN shell will automatically download and install MinGW and dmake on first use
if you don’t have Visual C++ or MinGW already installed and on your PATH:
If you want to use the MinGW compiler to build modules manually from the
commandline, then you can install MinGW yourself using PPM:
MinGW and dmake are being installed into C:\Perl\site\bin. Make sure this directory
is on your PATH (done by default by the ActivePerl installer).
You must use nmake.exe with the Microsoft compiler, or dmake.exe with MinGW. Using
dmake.exe with Visual C++, or nmake.exe with GCC will not work.
INSTALLING A MAKE UTILITY AND C COMPILER ON 64-BIT WINDOWS
For 64-bit Perl on 64-bit Windows currently the only supported compiler is the
Visual C++ compiler included in the Windows Server 2003 SP1 Platform SDK (aka the
April 2005 edition).
Use the SetEnv.cmd script to set the PATH, LIB, and INCLUDE environment variables
to the correct value for building ActivePerl extensions with this command:
If you are ready to push your Perl scripts to production servers and are looking to
meet your commercial support requirements, consider getting ActivePerl on the
ActiveState Platform.