Home » Questions » Computers [ Ask a new question ]

How do I fix a Mac OSX Profile call to missing /usr/local/bin directory?

How do I fix a Mac OSX Profile call to missing /usr/local/bin directory?

Somehow, possibly in-between installing RVM and MacPorts, I get an error message whenever I open up my terminal in Snow Leopard that complains that I have an invalid identifier in my bash export. I've tracked down the culprit to be /usr/local/bin which doesn't seem to exist on my system. Should this worry me? and if not, how do I find out where /usr/local/bin is being called from?

Asked by: Guest | Views: 217
Total answers/comments: 2
bert [Entry]

"Are you sure the culprit is the placement of /usr/local/bin? When Bash complains of an invalid identifier, it's complaining about the name of an exported variable, not the variable's contents (Bash does't care about the contents).

As for .profile, .bash_profile, and .bashrc, if they're not in your home directory, you can just create them."
bert [Entry]

"The directory /usr/local/bin, doesn't exist on a clean install of Mac OS X (or it doesn't contain anything).

So you don't have to worry about this.

Try ayaz method and it it doesn't work, try looking in /etc/profile or /etc/bashrc to see if there are any references to /usr/local/bin."