
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
Asked
Viewed
10 times
I have a build system that relies on the “realpath” utility. However, after upgrading to Ventura, a new “realpath” was added to /bin and, unfortunately, it doesn’t support the option my build system uses (–s). Is it possible to change the order of how utilities are found in the path or to change /bin/realpath to point to the one that works? I looked into disabling the SIP, but that seemed a bit heavy handed.
Damian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1
You can’t change anything in /bin. Apple no provides the system on a sealed volume.
The correct solution is to fix the build files so that they do not use an non usual argument.
However you can use the $PATH environment variable to find a GNU realpath by installing that program and having its directory on the PATH before Apple’s directories.
The easiest way is use a package manager like MacPorts or HomeBrew.
Although read this SuperUser answer to see that there might not be a common way to fix this as the command line realpath is not standardized at all
You must log in to answer this question.
Not the answer you’re looking for? Browse other questions tagged .