Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Install PPM packages to a specific directory

by SuperCruncher (Pilgrim)
on Mar 20, 2002 at 12:22 UTC ( [id://152959]=perlquestion: print w/replies, xml ) Need Help??

SuperCruncher has asked for the wisdom of the Perl Monks concerning the following question:

I'm not getting on well these days. I need to install a PPM module (wxPerl) on a Win2k system where I do not have administrator priveleges. PPM attempts to install it into the standard directory, but of course, it fails with a permmission denied error. So, I need to install the module into a directory where I have read/write permissions.

I've looked at the Activestate PPM documentation but it hasn't answered my question. I searched Google and found a document explaining how to alter the 'sitelib' path, but this isn't much help either since I have to edit Config.pm for this. (And won't have permission for that either!)

Any help would be appreciated.

Replies are listed 'Best First'.
Re: Install PPM packages to a specific directory
by tachyon (Chancellor) on Mar 20, 2002 at 12:55 UTC

    When you c:\>ppm you run a batch file wrapper for PPM.pm. From the PPM.pm docs:

    #!/usr/bin/perl use PPM; PPM::InstallPackage(``package'' => $package, ``location'' => $location +, ``root'' => $root);

    Installs the specified package onto the local system. 'package' may be a simple package name ('foo'), a pathname (P:\PACKAGES\FOO.PPD) or a URL (HTTP://www.ActiveState.com/packages/foo.ppd). In the case of a simple package name, the function will look for the package's PPD file at 'location', if provided; otherwise, it will use information stored in the PPM data file (see 'Files' section below) to locate the PPD file for the requested package. The package's files will be installed under the directory specified in 'root'; if not specified the default value of 'root' will be used.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

      That did the trick - thanks a lot! You have just done me a massive favour!
Re: Install PPM packages to a specific directory
by particle (Vicar) on Mar 20, 2002 at 12:57 UTC
    you can try CPAN (the module.) it'll ask you a few questions the first time you run it, but then it should be configured for the future. try perl -MCPAN -e shell for a start.

    ~Particle ;Þ

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://152959]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-03-29 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found