Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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
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.
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 .