Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Installing modules in Windows (Strawberry Perl) without administrator privileges

by hda (Chaplain)
on Mar 28, 2015 at 07:58 UTC ( [id://1121623]=perlquestion: print w/replies, xml ) Need Help??

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

Wise monks,

I have recently started working in a very conservative organization where people are not allowed to install things in their computers beyond what is deemed strictly necessary, which is sort of a curse for this long time Perl adept ;-) I am also a long time Linux user, so I am completely unfamiliar with the current Windows environment at $work. I could install Strawberry Perl thanks to the zipped package. However, I could not figure out how to install additional modules. The problem seems to stem from a permission problem, as CPAN fails to connect to the internet. I had the same problem downloading R packages, but I circumvented this by getting the individual .zip files and allowing R know where they are. I am wondering if there is a similar procedure I can implement with Strawberry Perl in this particular setting. Any hint will be appreciated!

Thanks to all you, wise and gentle monks!

hda
  • Comment on Installing modules in Windows (Strawberry Perl) without administrator privileges

Replies are listed 'Best First'.
Re: Installing modules in Windows (Strawberry Perl) without administrator privileges
by marto (Cardinal) on Mar 28, 2015 at 08:11 UTC

    You need to configure your CPAN client to deal with your employers network restrictions. See the CPAN documentation, the section titled 'WORKING WITH CPAN.pm BEHIND FIREWALLS'. At work our clients don't have direct internet access, I use CPAN::Mini (see also minicpan) to create a customised mirror of CPAN, then transfer it to the client network.

Re: Installing modules on windows using strawberryperl and CPAN without internet connection?
by Anonymous Monk on Mar 28, 2015 at 08:18 UTC

    Any hint will be appreciated!

    I guess your question is "Installing modules on windows using strawberryperl and CPAN without internet connection?"

    Its all about cpan configuration

    One option configure cpan to use the internet ...

    Another is to carry the CPAN with you ... minicpan ... then tell cpan to use your local minicpan mirror

    Also use Portable strawberryperl release ... its like perl on a USB stick, its Portable

Re: Installing modules in Windows (Strawberry Perl) without administrator privileges
by karlgoethebier (Abbot) on Mar 28, 2015 at 16:36 UTC
    "...a very conservative organization...CPAN fails to connect to the internet...

    I guess they got a proxy.

    As a first hint in a hurry: Please see Using CPAN with a proxy as well as http_proxy for further inspiration. Note: Using ActiveState Perl one needs to set the http_proxy environment variable to solve this issue but I don't how it's with Strawberry.

    Best regards, Karl

    P.S.: Unfortunately figuring this out may be a pain in the ass.

    «The Crux of the Biscuit is the Apostrophe»

        "...env vars are still just env vars..."

        Sure, no doubt.

        But do you know if Strawberry cares about http_proxy - as ActiveState does?

        As i wrote in fairness: I don't know it. Looking at the links you provided doesn't clarify this.

        Regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

Re: Installing modules in Windows (Strawberry Perl) without administrator privileges
by syphilis (Archbishop) on Mar 29, 2015 at 06:38 UTC
    I am wondering if there is a similar procedure I can implement with Strawberry Perl in this particular setting

    You can, if you wish, download the source of a module from metacpan or cpan, unpack it, cd to the top level source folder and run 'perl Makefile.PL', 'dmake test', and 'dmake install' (or equivalent Module::Build replacements if there's no Makefile.PL).

    This is a method that I still use often, though it becomes rather tedious if the module you're trying to install has a long chain of (uninstalled) pre-requisite modules.

    Cheers,
    Rob
Re: Installing modules in Windows (Strawberry Perl) without administrator privileges
by hda (Chaplain) on May 13, 2015 at 14:12 UTC
    Oh wisest monks! It is with a great pleasure that I here report back to you, telling with great thankfullness that by the good fortune brought by your advice I was able to go through the gates of proxies and other internet mysteries at $work! ;-)

    The story of how I came by the proxy address is too long to tell. Suffice to say that it wasn't easy and got solved by a quote of serendipity. It was a big bliss to see CPAN downloading and installing packages.

    Again, thanks to you all!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-05-21 22:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found