简体   繁体   中英

Mac 10.8 bash_profile work weird

I follow some "setup cocos2dx and android on mac" tutorial. When I come to setup .bash_profile, I am ask to create .bash_profile and edit:

export COCOS2DX_ROOT=~/Documents/Cocos2dx/cocos2d-2.1rc0-x-2.1.2
export ANDROID_SDK_ROOT=/Users/Documents/Android/adt-bundle-mac-x86_64-20130219/sdk
export ANDROID_NDK_ROOT=/Users/Documents/Android/android-ndk-r8e
export NDK_ROOT=/Users/Documents/Android/android-ndk-r8e
export PATH=${PATH}:${ANDROID_NDK_ROOT}
export PATH=${PATH}:${ANDROID_SDK_ROOT}

after restart terminal:

echo $COCOS2DX_ROOT
export/AS/Documents/Cocos2dx/cocos2d-2.1rc0-x-2.1.2
cd $COCOS2DX_ROOT
export: No such file or directorycos2dx/cocos2d-2.1rc0-x-2.1.2

I have no idea how the "export" go into the path. I have tried "~/..." and "/User/..."(full path). But all go wrong.

Somehow the lines got entered into your .bash_profile incorrectly - it looks like maybe a newline got removed somehow. Edit your .bash_profile again and ensure that it looks like what you posted above. Save and restart your terminal session, and you should be OK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM