
home-brew が動作しなかったため、Mac の PATH をいじっていました。私の PATH は 3 つのバージョンに分けられます。
クリーンパスは最も理想的なパスです。私はもうPebbleのSDKを使用していないからです。厄介なパスは元のめちゃくちゃなパスです。古いパスはエラーが削除された厄介なパスです。
Nasty path
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0- BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3
Clean path
/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3
OLD PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:“/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3/bin:??
厄介なパスの ~/.bash_profile は次のようになります: (申し訳ありませんが、修正しようと 1 時間ほどいじっていたので、見た目がひどいです)
JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
ANT_HOME="/Users/peterkaminski/apache-ant-1.9.3"
LES_SDK="/Users/peterkaminski/Lexmark"
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA4/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA4/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA5/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA5/bin:$PATH
export JAVA_HOME
export ANT_HOME
export LES_SDK
PATH=“/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$LES_SDK”
export PATH
# added by Anaconda 2.2.0 installer
export PATH="/Users/peterkaminski/anaconda/bin:$PATH"
#PATH=“/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$LES_SDK”
#export PATH
##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-06-24_at_10:32:22
##
# MacPorts Installer addition on 2015-06-24_at_10:32:22: adding an appropriate PATH variable for use with MacPorts.
# export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-09-07_at_22:49:58
##
# MacPorts Installer addition on 2015-09-07_at_22:49:58: adding an appropriate PATH variable for use with MacPorts.
#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-09-24_at_23:53:49
##
# MacPorts Installer addition on 2015-09-24_at_23:53:49: adding an appropriate PATH variable for use with MacPorts.
#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.
パスを変更してデフォルトの状態に戻すにはどうすればよいですか? または、明らかなバグに気づきましたか? 「」と bin:?? の追加によって何が起こるのかわかりません。