cd to the bin
directory of your ActiveState Perl,
e.g. C:\perl\bin.
ppm.pl.
search ^G
install command, e.g.
install Mail-Internet
or
install DBD-ODBC
:: in the module name is replaced
by a hyphen in ppm.
set http-proxy=http//proxy-name:proxy-port
Substitute for
proxy-name
and for
proxy-type
as appropriate for your site.
Then type
ppm.pl
and proceed as above.
GD.zip or whichever module you need.
cd to temp directory
cd to temp directory
ppm install gd.ppd (substitute your module's name for gd.ppd)
Regarding the "firewalls make it choke" issue ...PPM uses the LWP module to reach www.activestate.com. Like any HTTP client, if it's behind a firewall it'll need to be pointed at the corporate proxy server. This is described waaaay at the bottom of "perldoc ppm", in the section on environment variables. You need to set HTTP_proxy like so before running PPM:
set HTTP_proxy=http://proxy_server:proxy_portThis has worked for me at HP and Wells Fargo, but Schwab has a tricky, pac-file using proxy, so you need to point it at a non-pac proxy (I'll be sending Dan an update to the instructorsonly page for Schwab, using the proxy that a student told me about -- worked fine).
site_perl directory.
Different system administrators put it in different places,
e.g. /usr/local/lib/perl5/.
Mail::Internet module would
be placed in a sub-directory named Mail.
X-Sent-To: <sfpug@sf.pm.org>
From: John Nolan
Subject: Re: [sf-perl] FW: installing & using modules as non-root?
Date: Mon, 31 Jan 2000 14:53:14 -0800 (PST)
> Easy question: How do I install (XS based) modules if I don't have root
> access on the target machine? {This topic seemed to be mentioned briefly in
> 'perldoc perlmodinstall', but I couldn't figure out what I was supposed to
> do to install the perl module and the 'loadable object' correctly.)
>
> The module I'm trying to install without root access is "Text::CSV_XS". I
> succeeded in building it, then copied what I thought were all the relevant
> files (CSV_XS*) into ~joshr/myperllibs/Text, but then when I try this in my
> perl script:
The procedure for installing XS-based modules is not different
from the procdure for other modules. If you are installing
a private copy of a module, then start out with
"perl Makefile.PL PREFIX=/myarea/myperllib"
or something similar.
Then run "make", "make test", "make install", and everything
will be installed to the proper place in your lib dir.
You *can* copy the stuff by hand if you want, but
you have to know where every file belongs, and this is
not necessarily obvious, especially in the case of
XS-based modules. It's much easier to let "make install"
do the work for you. You probably omitted some important
files when you copied this stuff by hand.
Run "make install", and watch what it does.
Here's the relevant snippet from perlmodinstall:
> Also note that these instructions are tailored for installing
> the module into your system's repository of Perl modules. But
> you can install modules into any directory you wish. For
> instance, where I say `perl Makefile.PL', you can substitute
> `perl Makefile.PL PREFIX=/my/perl_directory' to install the
> modules into `/my/perl_directory'. Then you can use the modules
> from your Perl programs with `use lib
> "/my/perl_directory/lib/site_perl";' or sometimes just `use
> "/my/perl_directory";'.
#-------------------------
# John Nolan
#-------------------------
==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to sfpug-request@sf.pm.org
|
|
|
|