PATH에 잘못된 문자가 있습니다.

PATH에 잘못된 문자가 있습니다.

홈브류가 작동하지 않아서 Mac에서 PATH를 조작하고 있었습니다. 내 경로는 세 가지 버전으로 나눌 수 있습니다.

더 이상 Pebble의 SDK를 사용하지 않기 때문에 Clean 경로가 가장 이상적인 경로입니다. 불쾌한 경로는 원래의 엉망인 경로입니다. 이전 경로는 오류가 제거된 불쾌한 경로입니다.

 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은 다음과 같습니다. (죄송합니다. 문제를 해결하려고 약 한 시간 동안 장난을 쳤기 때문에 끔찍해 보입니다.)

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:??을 추가하면 어떤 결과가 나올지 잘 모르겠습니다.

관련 정보