mac下quick运行setup_mac.sh出错

localhost:quick-3.3rc0 God$ ./setup_mac.sh

QUICK_V3_ROOT = “/Users/God/Documents/quick-3.3rc0”

Xcode settings updated.
quick player settings updated.
cp: /Users/God/.bash_profile: Permission denied
/Users/God/.bash_profile updated.
~/.QUICK_V3_ROOT updated.

INSTALLING QUICK FRAMEWORK

UPDATE lib/framework_precompiled/framework_precompiled.zip

UPDATE lib/framework_precompiled/framework_precompiled_wp8.zip
cp: templates/PROJECT_TEMPLATE_01/proj.wp8/PROJECT_PACKAGE_LAST_NAME_L/Assets/Resources/res/framework_precompiled_wp8.zip: No such file or directory

UPDATE templates/PROJECT_TEMPLATE_01/proj.wp8/PROJECT_PACKAGE_LAST_NAME_L/Assets/Resources/res/framework_precompiled_wp8.zip

DONE

INSTALLING QUICK TEMPLATE TO COCOS
Found cocos root path: /Applications/Cocos/frameworks/cocos2d-x
create file “/Applications/Cocos/frameworks/cocos2d-x/templates/lua-template-quick/.project” …
Warning: mkdir(): Permission denied in /Users/God/Documents/quick-3.3rc0/quick/bin/lib/quick/QuickInstaller.php on line 43
ERROR: mkdir failure
create file “/Applications/Cocos/frameworks/cocos2d-x/templates/lua-template-quick/.settings/version.json” …
Warning: mkdir(): Permission denied in /Users/God/Documents/quick-3.3rc0/quick/bin/lib/quick/QuickInstaller.php on line 43
ERROR: mkdir failure
create file “/Applications/Cocos/frameworks/cocos2d-x/templates/lua-template-quick/cocos-project-template.json” …
Warning: mkdir(): Permission denied in /Users/God/Documents/quick-3.3rc0/quick/bin/lib/quick/QuickInstaller.php on line 43
ERROR: mkdir failure
create file “/Applications/Cocos/frameworks/cocos2d-x/templates/lua-template-quick/config.json” …
Warning: mkdir(): Permission denied in /Users/God/Documents/quick-3.3rc0/quick/bin/lib/quick/QuickInstaller.php on line 43

下边还有好多大概都是这个样子的
谁知道这是怎么回事?

Warning: mkdir(): Permission denied in /Users/God/Documents/quick-3.3rc0/quick/bin/lib/quick/QuickInstaller.php on line 43
ERROR: mkdir failure这里不是提示很明显了么,你试试用sudo运行

我试过了,又报这个错

localhost:quick-3.3rc0 God$ sudo ./setup_mac.sh

QUICK_V3_ROOT = “/Users/God/Documents/quick-3.3rc0”

Xcode settings updated.
quick player settings updated.
/Users/God/.bash_profile updated.
~/.QUICK_V3_ROOT updated.

INSTALLING QUICK FRAMEWORK

UPDATE lib/framework_precompiled/framework_precompiled.zip

UPDATE lib/framework_precompiled/framework_precompiled_wp8.zip
cp: templates/PROJECT_TEMPLATE_01/proj.wp8/PROJECT_PACKAGE_LAST_NAME_L/Assets/Resources/res/framework_precompiled_wp8.zip: No such file or directory

UPDATE templates/PROJECT_TEMPLATE_01/proj.wp8/PROJECT_PACKAGE_LAST_NAME_L/Assets/Resources/res/framework_precompiled_wp8.zip

DONE

INSTALLING QUICK TEMPLATE TO COCOS
Coscos root path not found!!!

Coscos root path not found!!!
每次的报错都提示的很明显,为啥你看不到呢

不明白吗?
可是我看到 PATH 里已经设置了。后来我看php里$cocos_path = $_ENV’COCOS_CONSOLE_ROOT’];这句是空的,我手动添加路径后

QUICK_V3_ROOT = “/Users/God/Documents/quick-3.3rc0”

Xcode settings updated.
quick player settings updated.
/Users/God/.bash_profile updated.
~/.QUICK_V3_ROOT updated.

INSTALLING QUICK FRAMEWORK

UPDATE lib/framework_precompiled/framework_precompiled.zip

UPDATE lib/framework_precompiled/framework_precompiled_wp8.zip
cp: templates/PROJECT_TEMPLATE_01/proj.wp8/PROJECT_PACKAGE_LAST_NAME_L/Assets/Resources/res/framework_precompiled_wp8.zip: No such file or directory

UPDATE templates/PROJECT_TEMPLATE_01/proj.wp8/PROJECT_PACKAGE_LAST_NAME_L/Assets/Resources/res/framework_precompiled_wp8.zip

DONE

这里有一处错误

modify file “/Applications/Cocos/frameworks/cocos2d-x/cocos/platform/win32/CCFileUtils-win32.cpp” …
Warning: file_get_contents(/Applications/Cocos/frameworks/cocos2d-x/cocos/platform/win32/CCFileUtils-win32.cpp): failed to open stream: No such file or directory in /Users/God/Documents/quick-3.3rc0/quick/bin/lib/quick/QuickInstaller.php on line 139
ERROR: file_get_contents failure

这里也有一处错误

晕死,好像quick3.2就没有问题,郁闷

quick 3.3rc0是要依赖于cocos2dx3.3的,如果你的cocos2dx3.3安装不对或者配置不对,是无法安装的。你需要自己配置COCOS_CONSOLE_ROOT就说明cocos2dx还没有配置好。
从rc0的情况看,依赖安装给大家的体验还是不好,后面的版本将恢复独立安装的形式。