Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jayson Wonder

macrumors newbie
Original poster
Jan 6, 2012
6
0
I am pretty new to MacOS and Homebrew. I understand that there is a system version of Perl (5.30) installed and this should be avoided. So I decided to install the latest version (5.36) using brew install perl. It installed successfully. When I run perl -v it shows me the system version 5.30 only. How do I make the latest version the default? I do not want to mess up the system version I want to use the latest for my own learning and developement. Any advice as to how to do this?

I am using VS Code as my primary IDE.

Thanks,
 
Last edited:
Well it is already installed now and if I am using Homebrew as a package manager, then it makes sense to use it to install. I also was fearful of breaking the system installed version. Checking the internet most people recommended not suing the system version.

At this point I am more concerned with how to make this already installed newer version my default, it is possible? I am assuming it a PATH issues bit again, do not want to break any system dependencies on the older 5.30 version included with OS Ventura.
 
You need to make sure that in your path setup, the home brew directories are searched first.

If you are on AppleSilicon, it would be something like:
Bash:
export PATH=/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/local/sbin:$PATH
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.