Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 8 years ago.
Improve this question
I have downloaded Net-SSH2-0.43 to be able to use Net::SSH2 Perl module. But I don't know what I need to do after that, just include paths or something else. Please help.
you could use perlbrew to install Perl in your home or in any directories wo. root rights: http://perlbrew.pl/
wget -O - http://install.perlbrew.pl | bash
perlbrew install perl-5.16.0
perlbrew switch perl-5.16.0
you could call your perl from shell (scripts) like this: http://perlbrew.pl/Perlbrew-In-Shell-Scripts.html
If your servers are identical enough then you could rsync/rdist this directory to every host and you are done.
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
If I have both /usr/bin/perl and /usr/local/bin/perl available on a system, which one should I use?
This question is unanswerable cleanly, without more informations and like - so only few remarks.
are you sure than you have two perls? The one could be an symbolic link to the another, for example the /usr/bin/perl -> /usr/local/bin/perl.
if they're aren't symlinked
the /usr/bin/perl is probably the system-wide perl, which comes with your basic system installation
and the /usr/local/bin/perl is installed by some package-management
just try:
/usr/bin/perl -V
and /usr/local/bin/perl -V
if they're different versions - someone installed to your system one additional perl
also, you could try which one is executed when you type perl - e.g. which one is first in your path. type perl could help. Or the simple perl -V.
Which one you should to use? Probably the package installed one, because your package-manager will install the CPAN-modules to the right location. Isn't possible to tell, which one it is. But this depends on your system's package management.
If you doubt, just install your own perl. I recommending to you
check the anyenv - here: https://github.com/riywo/anyenv
after installing the anyenv you could install the plenv (you could install plenv without anyenv too - but anyenv could help you with other interpreters too in the future)
install plenv with anyenv install plenv
after you got installed the plenv, you could install any perl version what is available and which one you want, using the:
plenv install 5.16.2 #or similar command
read about the plenv here: https://github.com/tokuhirom/plenv
You will get your own perl, and could install any CPAN module without the risk overriding your system perl modules. Also, you don't need to be admin. Simple, nice and clean.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I need to execute a program in my system using the perl.exe from a network path.what change should I have to change in the interpreter line to execute that..?
There's a fair chance (given that the question gives us no clues to help us answer it) that the perl.exe is just a wrapper for perl.dll, so if the perl.exe isn't on the path (and it won't be if its on a network share) then the exe will fail to run.
The answer is almost certainly to copy the required files locally and run them there. I recommend Strawberry Perl for Windows, as its just a directory copy to get it installed.
Invoking using a remote exe may not work due to the exe's own dependencies. Consider packaging your perl script as an exe using http://search.cpan.org/dist/PAR-Packer/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Problem is pretty self-explanatory - can't get MongoDB to start, and nothing is logging anything anywhere so I can figure out what's going on:
[10:10:23][root#my-server:~]$ start mongodb
mongodb stop/waiting
[10:10:28][root#my-server:~]$ ls /var/log/mongodb
[10:10:34][root#my-server:~]$ ls /var/lib/mongodb
[10:10:39][root#my-server:~]$
As you can see, mongodb immediately goes to stop/waiting, and doesn't log anything to /var/log/mongodb. There's nothing in /var/lib/mongodb either. There's nothing useful in /var/log/upstart either. Where can I look for information on what the heck upstart is doing, and why it can't seem to start MongoDB?
Answering my own question with another question: Mongo does not run when installed via mongodb-10gen package on Ubuntu 12.04. In this case, the mongodb-10gen package doesn't seem to be installing the right executables for upstart to use, and upstart helpfully doesn't log anything when the executable it expects to be present isn't there. So I've asked a followup question about what the deal with the 10gen package is.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm using Cygwin 2.769. I used setup.exe to upgrade Perl to version 5.14.1-2, which works fine. But now whenever I open setup.exe to upgrade/install some other package, it by default wants to downgrade Perl back to 5.10.1-5. If I don't remember to manually cycle that box over to my current version each time, Perl gets downgraded without my noticing.
Is this expected behavior, or have I hosed something up? It seems like using the "Curr" setting should not by default downgrade things.
I've had this problem, and it's made package managers almost unbearable. When disparate packages want to rely on different versions of a package that can only install in one version at a time, bad things happen.
Don't use the system perl for anything. Install a perl that other packages don't care about.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Since May 14th the current version of Perl is 5.14. In Ubuntu repository the current version of Perl is 5.10 which is no longer supported. So Im trying to manually upgrading Perl.
What is the recommended way to upgrade perl 5.10 to perl 5.14 in Ubuntu?
I found the perlbrew tool, but it seems to install just in the users home.
Perlbrew docs says that you can change your $HOME dir to something else:
The directory ~/perl5/perlbrew will contain all install perl
executables, libraries, documentations, lib, site_libs. If you need to
install perlbrew, and the perls it brews, into somewhere else because,
say, your HOME has limited quota, you can do that by setting a
PERLBREW_ROOT environment variable before running the installer:
export PERLBREW_ROOT=/opt/perlbrew curl -L
http://xrl.us/perlbrewinstall | bash
download, configure, compile ....