Editing Upgrading Perl on MacOS Mojave

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 3: Line 3:
 
To update to a newer version of Perl, install Homebrew.  Then run the command:
 
To update to a newer version of Perl, install Homebrew.  Then run the command:
  
<code>brew install perl</code>
+
brew install perl
  
 
And when that's done run the command:
 
And when that's done run the command:
  
<code>brew install cpanm</code>
+
brew install cpanm
  
 
In that order.  If you install cpanm first, it will latch onto Perl 5.18 and install modules to  
 
In that order.  If you install cpanm first, it will latch onto Perl 5.18 and install modules to  
  
<code>/Library/Perl/5.18</code>
+
/Library/Perl/5.18  
  
 
instead of to  
 
instead of to  
  
<code>/usr/local/Cellar/perl/5.36.0/lib/perl5/site_perl/5.36/</code>
+
/usr/local/Cellar/perl/5.36.0/lib/perl5/site_perl/5.36/
 
 
And then Perl will be unable to locate the module.
 
 
 
<code>Can't locate ... in @INC </code>
 

Please note that all contributions to Chuckipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Chuckipedia:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)