Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Install Module with no admin permission

by sundialsvc4 (Abbot)
on Jul 05, 2017 at 16:57 UTC ( #1194280=note: print w/replies, xml ) Need Help??


in reply to Re^2: Install Module with no admin permission
in thread Install Module with no admin permission

Oops, you “forgot” to log in.   Again.

As I stated, this is a very common use-case that is found on any shared-hosting setup ... and which is also sometimes used to isolate the dependencies of different applications (especially, older ones) so that the changes to the system-wide environment which happen from time to time will not affect them.   A quick search on the suggested keys will yield links to many dozens of informative pages on this and other sites.

Incidentally, on my systems, I set up a separate, non-privileged user which is responsible for package installation and management, Perl or otherwise (including binaries).   The operating system maintains the system-wide Perl package structure, typically through the use of “distro” packages, and this user maintains all of the libraries that are used by applications.   Thus, these packages are read-only to those applications, because they are owned by this (other) user, but the packages are not owned by root.   Applications specify a PERL5LIB environment variable, or a use lib path, which includes this library location.

local::lib is a great tool very convenient but it is not the only way to do it and not always the best one.

  • Comment on Re^3: Install Module with no admin permission

Replies are listed 'Best First'.
Re^4: Install Module with no admin permission
by marto (Bishop) on Jul 05, 2017 at 17:57 UTC

    "lib::local is a great tool very convenient but it is not the only way to do it and not always the best one."

    This lib::local module you sing the praises of literally doesn't exist. If you had taken the time to read the thread you'd have discovered that local::lib has a prerequisite of EUMM v7 which, had you actually cared to look into the problem, is only core as of perl v5.21.6, so OP has to bootstrap the bootstrapping of installing local::lib. Are you sure you're in any position to offer advice? Your generic gibberish is so dull these days. Also, you forget to login frequently, then complain about a bug which logs you out. Perhaps your subconscious is attempting to do us all a favour.

      God Forbid(!) that a Fellow Monk might have made a typo!

      Actually, in order to “install a module locally,” as we surely both know, the OP needs to do nothing of the sort ... “bootstrapping the installation of local::lib, etc.”   Because this is certainly not the one-and-only way by which to skin this cat.   “This particular module” is actually a new kid on the block.   This module is a convenience, certainly not a necessity.

      This module made its first appearance in 2007, and I promise you that I have been “installing Perl modules locally” for a great many years before that!

      I would kindly, yet very pointedly, remind you that the essential thrust of my post was that “there is more than one way(!) to do it.”   I proceeded to point out that this is, in fact, a very old and well-worn issue.   I then chose to mention a few search-engine keys that could be used to find various other web-pages which described solutions, whether-or-not those solutions employed the particular module that was mentioned here.   (Most of them, of course, do not.)

      The essential parameters to the problem have not changed in decades:

      1. Arrange for cpan[m] to know the correct place to install new modules.
      2. Then, arrange for Perl, at runtime, to look for them there, ahead of any default locations.
      That’s it.   And, “that’s nothing new.” (You do know that, don’t you? ... don’t you?)

      ---

      “Good Grief™, Gentlepeople!”   In your apparently single-minded drive to discredit every single thing that I have to say ... if only because I am the one to have said it ... do any of you actually listen(!) to what I have to say?”   :-O

      Just sayin’ ...

        Then, arrange for Perl, at runtime, to look for them there, ahead of any default locations.

        "runtime". You sure that hasn't changed, "in decades"?

        dbag of perlmonks,

        cease hence and ever more,

        thou-est foul porcine emanations, surestly thoust knoweth thine own origns,

        vacuous blather of an empty bladder

        poisonous bunch of black toads

        No solution offered. some mumbles posted. You don't understand the problem. Not a typo, just wrong. Not checking posts. Not updating posts properly. Your promises are all lies. lies as cries for help. Seek help. You are the only person in the thread who is of no help to the user whatsoever.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1194280]
help
Chatterbox?
[tye]: my experience with python so far is more like finding a moderately useful error message is a shocking surprise.
Corion disappears
[tye]: I get an error string but no reason and no context. Like die "Could not read file.\n" but with a stack trace where all of the useful context is stripped.
[thezip]: Heya tye!
[tye]: hey, thezip!
[RonW]: Hi, tye, thezip
[RonW]: I see useless errors liek that from Perl programs, too.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-09-21 20:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (252 votes). Check out past polls.

    Notices?