安裝cocos2d提示'root' is no longer supported解決方法

錯誤提示:

cocos2d-iphone template installer    
    
Error: Do not run this script as root.    
    
'root' is no longer supported    
    
RECOMMENDED WAY:    
./install-templates.sh -f

解決方法:刪除文件中關於root權限的驗證代碼

# 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  


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章