Updating/upgrading the perl module Sys::Hostname





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I want to run a piece of code that requires version 1.21 of Sys::Hostname.
My perl-5.28.1, installed using perlbrew at the time, came with version 1.20 of Sys::Hostname. I have searched online, but am unable to find how to install/upgrade to version 1.21. Can anyone help me out?



*edit: when I try to run:



cpanm Sys::Hostname


I get



skipping S/SH/SHAY/perl-5.28.1.tar.gz









share|improve this question

























  • That's quite strange, since Perl 5.28.1 should come with version 1.22 of Sys::Hostname, 1.20 would correspond with Perl 5.22.0 through 5.26.2. If you have multiple versions of Perl installed, are you sure you're running your script with the right one? For example, if your shebang is #!/usr/bin/perl, you might be running the script with your system Perl.

    – haukex
    Feb 1 at 9:03











  • First of all, thank you for your comment! I must mention that I am relatively inexperienced with unix-based systems in general, so I apologise in advance for any stupidity on my part. After installing, I used perlbrew switch perl-5.28.1 . A run of perl -v confirms that perl 5.28.1 is the currently used version.

    – Grim Reaper
    Feb 1 at 11:04











  • Ok, how do you run the Perl script? Is it ./script.pl, or perl script.pl? Or are you maybe using cron to run the script? Also, what does the first line of the script look like (the "shebang" line), is it #!/usr/bin/perl, or maybe #!/usr/bin/env perl?

    – haukex
    Feb 1 at 15:30











  • I run with ./script.pl. The shebang line is #!/usr/bin/env perl. Sorry it took me a while to respond, I was away from the pc that has the files on it.

    – Grim Reaper
    Feb 3 at 15:31











  • Ok, when you run ./script.pl, it'll use the perl in the shebang line, since that's /usr/bin/env perl, env should use whichever perl comes first in the PATH - in other words, it should be the same perl as when you type just perl on the command line. On the same command line as you run ./script.pl, what does perl -MSys::Hostname -le 'print "$] $Sys::Hostname::VERSION"' output? It should output 5.028001 1.22. If not, please edit your question and add the full output of perl -V (that's a captial letter -V, not lowercase).

    – haukex
    Feb 3 at 17:27




















0















I want to run a piece of code that requires version 1.21 of Sys::Hostname.
My perl-5.28.1, installed using perlbrew at the time, came with version 1.20 of Sys::Hostname. I have searched online, but am unable to find how to install/upgrade to version 1.21. Can anyone help me out?



*edit: when I try to run:



cpanm Sys::Hostname


I get



skipping S/SH/SHAY/perl-5.28.1.tar.gz









share|improve this question

























  • That's quite strange, since Perl 5.28.1 should come with version 1.22 of Sys::Hostname, 1.20 would correspond with Perl 5.22.0 through 5.26.2. If you have multiple versions of Perl installed, are you sure you're running your script with the right one? For example, if your shebang is #!/usr/bin/perl, you might be running the script with your system Perl.

    – haukex
    Feb 1 at 9:03











  • First of all, thank you for your comment! I must mention that I am relatively inexperienced with unix-based systems in general, so I apologise in advance for any stupidity on my part. After installing, I used perlbrew switch perl-5.28.1 . A run of perl -v confirms that perl 5.28.1 is the currently used version.

    – Grim Reaper
    Feb 1 at 11:04











  • Ok, how do you run the Perl script? Is it ./script.pl, or perl script.pl? Or are you maybe using cron to run the script? Also, what does the first line of the script look like (the "shebang" line), is it #!/usr/bin/perl, or maybe #!/usr/bin/env perl?

    – haukex
    Feb 1 at 15:30











  • I run with ./script.pl. The shebang line is #!/usr/bin/env perl. Sorry it took me a while to respond, I was away from the pc that has the files on it.

    – Grim Reaper
    Feb 3 at 15:31











  • Ok, when you run ./script.pl, it'll use the perl in the shebang line, since that's /usr/bin/env perl, env should use whichever perl comes first in the PATH - in other words, it should be the same perl as when you type just perl on the command line. On the same command line as you run ./script.pl, what does perl -MSys::Hostname -le 'print "$] $Sys::Hostname::VERSION"' output? It should output 5.028001 1.22. If not, please edit your question and add the full output of perl -V (that's a captial letter -V, not lowercase).

    – haukex
    Feb 3 at 17:27
















0












0








0








I want to run a piece of code that requires version 1.21 of Sys::Hostname.
My perl-5.28.1, installed using perlbrew at the time, came with version 1.20 of Sys::Hostname. I have searched online, but am unable to find how to install/upgrade to version 1.21. Can anyone help me out?



*edit: when I try to run:



cpanm Sys::Hostname


I get



skipping S/SH/SHAY/perl-5.28.1.tar.gz









share|improve this question
















I want to run a piece of code that requires version 1.21 of Sys::Hostname.
My perl-5.28.1, installed using perlbrew at the time, came with version 1.20 of Sys::Hostname. I have searched online, but am unable to find how to install/upgrade to version 1.21. Can anyone help me out?



*edit: when I try to run:



cpanm Sys::Hostname


I get



skipping S/SH/SHAY/perl-5.28.1.tar.gz






updates perl dependencies






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 31 at 22:41







Grim Reaper

















asked Jan 31 at 22:36









Grim ReaperGrim Reaper

11




11













  • That's quite strange, since Perl 5.28.1 should come with version 1.22 of Sys::Hostname, 1.20 would correspond with Perl 5.22.0 through 5.26.2. If you have multiple versions of Perl installed, are you sure you're running your script with the right one? For example, if your shebang is #!/usr/bin/perl, you might be running the script with your system Perl.

    – haukex
    Feb 1 at 9:03











  • First of all, thank you for your comment! I must mention that I am relatively inexperienced with unix-based systems in general, so I apologise in advance for any stupidity on my part. After installing, I used perlbrew switch perl-5.28.1 . A run of perl -v confirms that perl 5.28.1 is the currently used version.

    – Grim Reaper
    Feb 1 at 11:04











  • Ok, how do you run the Perl script? Is it ./script.pl, or perl script.pl? Or are you maybe using cron to run the script? Also, what does the first line of the script look like (the "shebang" line), is it #!/usr/bin/perl, or maybe #!/usr/bin/env perl?

    – haukex
    Feb 1 at 15:30











  • I run with ./script.pl. The shebang line is #!/usr/bin/env perl. Sorry it took me a while to respond, I was away from the pc that has the files on it.

    – Grim Reaper
    Feb 3 at 15:31











  • Ok, when you run ./script.pl, it'll use the perl in the shebang line, since that's /usr/bin/env perl, env should use whichever perl comes first in the PATH - in other words, it should be the same perl as when you type just perl on the command line. On the same command line as you run ./script.pl, what does perl -MSys::Hostname -le 'print "$] $Sys::Hostname::VERSION"' output? It should output 5.028001 1.22. If not, please edit your question and add the full output of perl -V (that's a captial letter -V, not lowercase).

    – haukex
    Feb 3 at 17:27





















  • That's quite strange, since Perl 5.28.1 should come with version 1.22 of Sys::Hostname, 1.20 would correspond with Perl 5.22.0 through 5.26.2. If you have multiple versions of Perl installed, are you sure you're running your script with the right one? For example, if your shebang is #!/usr/bin/perl, you might be running the script with your system Perl.

    – haukex
    Feb 1 at 9:03











  • First of all, thank you for your comment! I must mention that I am relatively inexperienced with unix-based systems in general, so I apologise in advance for any stupidity on my part. After installing, I used perlbrew switch perl-5.28.1 . A run of perl -v confirms that perl 5.28.1 is the currently used version.

    – Grim Reaper
    Feb 1 at 11:04











  • Ok, how do you run the Perl script? Is it ./script.pl, or perl script.pl? Or are you maybe using cron to run the script? Also, what does the first line of the script look like (the "shebang" line), is it #!/usr/bin/perl, or maybe #!/usr/bin/env perl?

    – haukex
    Feb 1 at 15:30











  • I run with ./script.pl. The shebang line is #!/usr/bin/env perl. Sorry it took me a while to respond, I was away from the pc that has the files on it.

    – Grim Reaper
    Feb 3 at 15:31











  • Ok, when you run ./script.pl, it'll use the perl in the shebang line, since that's /usr/bin/env perl, env should use whichever perl comes first in the PATH - in other words, it should be the same perl as when you type just perl on the command line. On the same command line as you run ./script.pl, what does perl -MSys::Hostname -le 'print "$] $Sys::Hostname::VERSION"' output? It should output 5.028001 1.22. If not, please edit your question and add the full output of perl -V (that's a captial letter -V, not lowercase).

    – haukex
    Feb 3 at 17:27



















That's quite strange, since Perl 5.28.1 should come with version 1.22 of Sys::Hostname, 1.20 would correspond with Perl 5.22.0 through 5.26.2. If you have multiple versions of Perl installed, are you sure you're running your script with the right one? For example, if your shebang is #!/usr/bin/perl, you might be running the script with your system Perl.

– haukex
Feb 1 at 9:03





That's quite strange, since Perl 5.28.1 should come with version 1.22 of Sys::Hostname, 1.20 would correspond with Perl 5.22.0 through 5.26.2. If you have multiple versions of Perl installed, are you sure you're running your script with the right one? For example, if your shebang is #!/usr/bin/perl, you might be running the script with your system Perl.

– haukex
Feb 1 at 9:03













First of all, thank you for your comment! I must mention that I am relatively inexperienced with unix-based systems in general, so I apologise in advance for any stupidity on my part. After installing, I used perlbrew switch perl-5.28.1 . A run of perl -v confirms that perl 5.28.1 is the currently used version.

– Grim Reaper
Feb 1 at 11:04





First of all, thank you for your comment! I must mention that I am relatively inexperienced with unix-based systems in general, so I apologise in advance for any stupidity on my part. After installing, I used perlbrew switch perl-5.28.1 . A run of perl -v confirms that perl 5.28.1 is the currently used version.

– Grim Reaper
Feb 1 at 11:04













Ok, how do you run the Perl script? Is it ./script.pl, or perl script.pl? Or are you maybe using cron to run the script? Also, what does the first line of the script look like (the "shebang" line), is it #!/usr/bin/perl, or maybe #!/usr/bin/env perl?

– haukex
Feb 1 at 15:30





Ok, how do you run the Perl script? Is it ./script.pl, or perl script.pl? Or are you maybe using cron to run the script? Also, what does the first line of the script look like (the "shebang" line), is it #!/usr/bin/perl, or maybe #!/usr/bin/env perl?

– haukex
Feb 1 at 15:30













I run with ./script.pl. The shebang line is #!/usr/bin/env perl. Sorry it took me a while to respond, I was away from the pc that has the files on it.

– Grim Reaper
Feb 3 at 15:31





I run with ./script.pl. The shebang line is #!/usr/bin/env perl. Sorry it took me a while to respond, I was away from the pc that has the files on it.

– Grim Reaper
Feb 3 at 15:31













Ok, when you run ./script.pl, it'll use the perl in the shebang line, since that's /usr/bin/env perl, env should use whichever perl comes first in the PATH - in other words, it should be the same perl as when you type just perl on the command line. On the same command line as you run ./script.pl, what does perl -MSys::Hostname -le 'print "$] $Sys::Hostname::VERSION"' output? It should output 5.028001 1.22. If not, please edit your question and add the full output of perl -V (that's a captial letter -V, not lowercase).

– haukex
Feb 3 at 17:27







Ok, when you run ./script.pl, it'll use the perl in the shebang line, since that's /usr/bin/env perl, env should use whichever perl comes first in the PATH - in other words, it should be the same perl as when you type just perl on the command line. On the same command line as you run ./script.pl, what does perl -MSys::Hostname -le 'print "$] $Sys::Hostname::VERSION"' output? It should output 5.028001 1.22. If not, please edit your question and add the full output of perl -V (that's a captial letter -V, not lowercase).

– haukex
Feb 3 at 17:27












0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400778%2fupdating-upgrading-the-perl-module-syshostname%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1400778%2fupdating-upgrading-the-perl-module-syshostname%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

"Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

Alcedinidae

Origin of the phrase “under your belt”?