[MacPorts] #45235: Missing MacPorts specific paths in $PATH

Ryan Schmidt ryandesign at macports.org
Wed Oct 1 13:48:44 PDT 2014


>> I operate several servers running assorted software installed with
>> MacPorts.
>> 
>> On a 'no problem' server, I can do:
>> 
>> {{{
>> echo $PATH
>> /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
>> }}}
>> 
>> All good.
>> 
>> However, I have a problem with one server:
>> {{{
>> echo $PATH
>> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/lib/mysql55/bin
>> }}}
>> 
>> After some research, I still can't locate the correct place to remedy the
>> missing paths problem.
>> I know I can add the paths with the EXPORT command, but I would like to
>> learn the 'correct' place where "/opt/local/bin:/opt/local/sbin:" should
>> be located.

The correct place is your shell startup file.

If you're using bash, that might be ~/.bash_profile or ~/.bashrc or ~/.profile.




More information about the macports-users mailing list