Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I would handle this either through operating system level package management tools (yum, apt, etc.), or through containerization, or through setting up a MiniCPAN or DarkPAN. And I've done all three of those for different situations. Your organization must have some way of keeping servers updated, and installing software on them.

However, Net::SSH is pure Perl. And every dependency it requires ships with Perl 5. You should be able to do one of two things (in order of preferability):

  1. Download the tarball, unpack it, and run the mantra; perl Makefile.PL && make && make test && make install
  2. Copy the code itself into a Net/SSH.pm path within one of your @INC paths. This is actually the copy/paste approach.

The first solution has the advantage that it's predictable and repeatable. So long as the module's maintainers don't add external dependencies, it will always work. And you can hold onto that tarball should you ever need to reinstall the same version. The second solution's advantage is that it lets you work with a clear-text source code, which is easy to copy and paste. Ok, there's a third alternative; you unpack the tarball on a build system, and then copy/paste each file in the distribution into a build directory on the target box. That seems like too much work.

If your server can be hit over SSH, then you have scp or sftp, probably. Establishing a build server somewhere in network proximity wouldn't be awful, unless there are real security requirements that prevent that happening.


Dave


In reply to Re: Perl Module Installation by davido
in thread Perl Module Installation by misteradey

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-04-26 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found