cocos2d 'root' is no longer supported问题解决办法
来源:互联网 发布:作文素材淘宝 编辑:程序博客网 时间:2024/05/08 14:57
安装cocos2d 2.1时候,发现使用./install-templates.sh -f 命令进行安装cocos2d 2.1模板,总是返回以下信息
[cpp]
bogon:~ mac$
cocos2d-iphone template installer
Error: Do not run this script as root.
'root' is no longer supported
RECOMMENDED WAY:
解决办法如下:进入cocos2d2.1的文件找到install-templates.sh文件,并且打开它,找到如下代码并且删除它保存好该文件
- #
Make sure root is not executed - if
"$(id[[ -u)" "0"== ]]; then -
echo "" -
echo "Error: Do not run this script as root." 1>&2 -
echo "" -
echo "'root' is no longer supported" 1>&2 -
echo "" -
echo "RECOMMENDED WAY:" 1>&2 -
echo " $0 -f" 1>&2 -
echo "" - exit
1 - fi
然后在终端中使用命令 sudo sh ./install-templates.sh -f 进行安装。此时发现可以安装成功了。
如果出现输入password的话,就输入password。
- cocos2d 'root' is no longer supported问题解决办法
- 安装cocos2d提示'root' is no longer supported解决方法
- xvim garbage collection is no longer supported
- garbage collection is no longer supported
- Error: Running Homebrew as root is extremely dangerous and no longer supported.
- ERROR: JVMPI, an experimental interface, is no longer supported.
- OSX 10.9 Compile error: garbage collection is no longer supported
- JVMPI, an experimental interface, is no longer supported.
- mac下面通过brew安装东西的时候报Error: Running Homebrew as root is extremely dangerous and no longer supported的解决
- 关于ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc
- php7.0 出现 curl_setopt(): Disabling safe uploads is no longer supported in 报错!
- Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported in Unity 5.
- php7.0 出现 curl_setopt(): Disabling safe uploads is no longer supported in 报错!
- compiling IB documents for earlier than ios 7 is no longer supported
- php7.0 出现 curl_setopt(): Disabling safe uploads is no longer supported in 报错!
- Xcode报错 Compiling IB documents for earlier than iOS7 is no longer supported.
- iOS Compiling IB documents for earlier than iOS 7 is no longer supported
- iOS11下compiling IB documents for earlier than ios 7 is no longer supported
- ios排序
- 前端开发必备!Emmet使用手册
- B. Playing Cubes
- 通用的用户登录过滤器(SessionFilter)
- Oracle 货币符号
- cocos2d 'root' is no longer supported问题解决办法
- javascript禁用键盘功能键让右击及其他键无效
- DB2 卸载实操
- IDS入侵检测系统(snort)刚出炉滴
- iOS实现简单的地图
- SAP项目中开发用到的BAPI
- JMS学习
- java读取配置文件
- unity制作直方图效果