Problem during installation of cocos2d-x 2.0 version package in Mac os?

Hi,
My mac version is 10.7.2, XCode version is 4.2.1, iOS version is 5.0 and i downloading cocos2d-x package version is 2.0. I stuck on installation of cocos2d-x library in my mac. The bug report is following,

MyMacName:~ MyMacName$ sudo /Users/MyMacName/Desktop/SetUpFiles/cocos2d-2.0-rc0a-x-2.0/install-templates-xcode.sh ~~f
Password:
cocos2d-x template installer

Installing Xcode 4 cocos2d-x iOS template
—————————————————~~

removing old libraries: /Users/MyMacName/Library/Developer/Xcode/Templates/cocos2d-x/
…creating destination directory: /Users/MyMacName/Library/Developer/Xcode/Templates/cocos2d-x/
…copying cocos2d files
rsync: link_stat “/Users/MyMacName/cocos2dx” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
rsync: link_stat “/Users/MyMacName/licenses/LICENSE_cocos2d-x.txt” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
…copying CocosDenshion files
rsync: link_stat “/Users/MyMacName/CocosDenshion” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
…copying template files
rsync: link_stat “/Users/MyMacName/template/xcode4/.” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
done!

Installing Xcode 4 Chipmunk iOS template
—————————————————-

…copying Chipmunk files
rsync: link_stat “/Users/MyMacName/chipmunk” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
rsync: link_stat “/Users/MyMacName/licenses/LICENSE_chipmunk.txt” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
done!

Installing Xcode 4 Box2d iOS template
—————————————————-

…copying Box2D files
rsync: link_stat “/Users/MyMacName/Box2D” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
rsync: link_stat “/Users/MyMacName/licenses/LICENSE_box2d.txt” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
done!

Installing Xcode 4 lua iOS template
—————————————————-

…copying lua files
rsync: link_stat “/Users/MyMacName/lua” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
rsync: link_stat “/Users/MyMacName/licenses/LICENSE_lua.txt” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
rsync: link_stat “/Users/MyMacName/licenses/LICENSE_tolua++.txt” failed: No such file or directory (2)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(992) [sender=2.6.9]
done!
done!
MyMacName:~ MyMacName$

Seems the installer could not change a working directory to the cocos2d-x source. Try to call the installation script from relevant directory

mac$ cd /Users/MyMacName/Desktop/SetUpFiles/cocos2d-2.0-rc0a-x-2.0/
mac$ sudo ./install-templates-xcode.sh -f

It’s reaaly useful~Thank u so much~

Nikolay Osaulenko wrote:

Seems the installer could not change a working directory to the cocos2d-x source. Try to call the installation script from relevant directory
[…]