sh: cocos: command not found
解决执行cocos2dx安装脚本『跟目录的setup.py』
根据提示进行配置。
安装完成后用户环境变量内会添加如下配置
# Add environment variable COCOS_CONSolE_ROOT for cocos2d-xexport COCOS_CONSolE_ROOT=/Users/baodong/cocos/cocos2d-x-3.7.1/tools/cocos2d-console/binexport PATH=$COCOS_CONSolE_ROOT:$PATH# Add environment variable COCOS_TEMPLATES_ROOT for cocos2d-xexport COCOS_TEMPLATES_ROOT=/Users/baodong/cocos/cocos2d-x-3.7.1/templatesexport PATH=$COCOS_TEMPLATES_ROOT:$PATH# Add environment variable ANDROID_SDK_ROOT for cocos2d-xexport ANDROID_SDK_ROOT=/Users/baodong/library/AndroID/sdkexport PATH=$ANDROID_SDK_ROOT:$PATHexport PATH=$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools:$PATH# Add environment variable ANT_ROOT for cocos2d-xexport ANT_ROOT=/Users/baodong/__DEV__/apache-ant-1.9.5/binexport PATH=$ANT_ROOT:$PATH# Add environment variable NDK_ROOT for cocos2d-xexport NDK_ROOT=/Users/baodong/__DEV__/androID-ndk-r10eexport PATH=$NDK_ROOT:$PATH总结
以上是内存溢出为你收集整理的sh: cocos: command not found全部内容,希望文章能够帮你解决sh: cocos: command not found所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)