Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

problem with $PATH

The result of $PATH is:

-bash: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin: No such file or directory.

Apparently the "/usr/local/bin directory" does not exits in Yosemite. Does anybody knows something about this?

MacBook Pro with Retina display, OS X Yosemite (10.10.3)

Posted on May 3, 2015 1:07 AM

Reply
4 replies

May 3, 2015 6:30 AM in response to npatronis

The $PATH environment variable, before you alter it locally in one of your startup dot files, is set to the ordered $PATH that you have shown using /etc/paths as its default template. Thus, /usr/local/bin exists in Yosemite, and earlier OS X releases too. The /opt/X11/bin is added after the installation of XQuartz.


In your case, you typed $PATH in the terminal, which is not a command. If you want to view the current $PATH in the Bash shell, you have choices:


echo $PATH

printf '%s\n' $PATH

env $PATH

problem with $PATH

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.