Failed modules installation CPAN









up vote
0
down vote

favorite












With the premise that macOS (Mojave in my case) comes with Perl pre-installed, I was trying to install few additional Perl modules through CPAN, with the following command:



cpan install Foo::Bar


I got 2 modules installed, the third failed the installation because of a missing .h file.



I decide to delete the folder in my home named .cpan (was a hidden folder) and I installed Perl through brew with the following command:



brew install perl


Reinstalled again the three modules through CPAN and the installation completed with an OK for all of the three modules.



  1. Was a bad idea to delete the .cpan folder?

  2. Is there anything else that I have to do to clean up the previous CPAN modules installation?









share|improve this question





















  • If the "brew install perl" installs a separate installation of Perl, then the only thing you need to do is only use that Perl going forward. Perls don't (and generally can't) use each other's module installation directories.
    – Grinnz
    Nov 9 at 18:27






  • 1




    The .cpan directory is just a directory for the CPAN.pm cpan client's configuration and cache, so deleting it just clears that.
    – Grinnz
    Nov 9 at 18:28














up vote
0
down vote

favorite












With the premise that macOS (Mojave in my case) comes with Perl pre-installed, I was trying to install few additional Perl modules through CPAN, with the following command:



cpan install Foo::Bar


I got 2 modules installed, the third failed the installation because of a missing .h file.



I decide to delete the folder in my home named .cpan (was a hidden folder) and I installed Perl through brew with the following command:



brew install perl


Reinstalled again the three modules through CPAN and the installation completed with an OK for all of the three modules.



  1. Was a bad idea to delete the .cpan folder?

  2. Is there anything else that I have to do to clean up the previous CPAN modules installation?









share|improve this question





















  • If the "brew install perl" installs a separate installation of Perl, then the only thing you need to do is only use that Perl going forward. Perls don't (and generally can't) use each other's module installation directories.
    – Grinnz
    Nov 9 at 18:27






  • 1




    The .cpan directory is just a directory for the CPAN.pm cpan client's configuration and cache, so deleting it just clears that.
    – Grinnz
    Nov 9 at 18:28












up vote
0
down vote

favorite









up vote
0
down vote

favorite











With the premise that macOS (Mojave in my case) comes with Perl pre-installed, I was trying to install few additional Perl modules through CPAN, with the following command:



cpan install Foo::Bar


I got 2 modules installed, the third failed the installation because of a missing .h file.



I decide to delete the folder in my home named .cpan (was a hidden folder) and I installed Perl through brew with the following command:



brew install perl


Reinstalled again the three modules through CPAN and the installation completed with an OK for all of the three modules.



  1. Was a bad idea to delete the .cpan folder?

  2. Is there anything else that I have to do to clean up the previous CPAN modules installation?









share|improve this question













With the premise that macOS (Mojave in my case) comes with Perl pre-installed, I was trying to install few additional Perl modules through CPAN, with the following command:



cpan install Foo::Bar


I got 2 modules installed, the third failed the installation because of a missing .h file.



I decide to delete the folder in my home named .cpan (was a hidden folder) and I installed Perl through brew with the following command:



brew install perl


Reinstalled again the three modules through CPAN and the installation completed with an OK for all of the three modules.



  1. Was a bad idea to delete the .cpan folder?

  2. Is there anything else that I have to do to clean up the previous CPAN modules installation?






perl module zsh cpan






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 9 at 18:24









teo-gamba

174




174











  • If the "brew install perl" installs a separate installation of Perl, then the only thing you need to do is only use that Perl going forward. Perls don't (and generally can't) use each other's module installation directories.
    – Grinnz
    Nov 9 at 18:27






  • 1




    The .cpan directory is just a directory for the CPAN.pm cpan client's configuration and cache, so deleting it just clears that.
    – Grinnz
    Nov 9 at 18:28
















  • If the "brew install perl" installs a separate installation of Perl, then the only thing you need to do is only use that Perl going forward. Perls don't (and generally can't) use each other's module installation directories.
    – Grinnz
    Nov 9 at 18:27






  • 1




    The .cpan directory is just a directory for the CPAN.pm cpan client's configuration and cache, so deleting it just clears that.
    – Grinnz
    Nov 9 at 18:28















If the "brew install perl" installs a separate installation of Perl, then the only thing you need to do is only use that Perl going forward. Perls don't (and generally can't) use each other's module installation directories.
– Grinnz
Nov 9 at 18:27




If the "brew install perl" installs a separate installation of Perl, then the only thing you need to do is only use that Perl going forward. Perls don't (and generally can't) use each other's module installation directories.
– Grinnz
Nov 9 at 18:27




1




1




The .cpan directory is just a directory for the CPAN.pm cpan client's configuration and cache, so deleting it just clears that.
– Grinnz
Nov 9 at 18:28




The .cpan directory is just a directory for the CPAN.pm cpan client's configuration and cache, so deleting it just clears that.
– Grinnz
Nov 9 at 18:28

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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',
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%2fstackoverflow.com%2fquestions%2f53231386%2ffailed-modules-installation-cpan%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53231386%2ffailed-modules-installation-cpan%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

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo