无法安装cocos2d

时间:2015-04-15 14:19:09

标签: python ubuntu cocos2d-x ubuntu-12.04

我尝试在 Ubuntu12.04

上安装 cocos2dx3.5
$ cd /tmp && mkdir cocos2dxInstall
$ unzip cocos2d-x-3.5.zip -d /tmp/cocos2dxInstall
$ cd /tmp/cocos2dxInstall/cocos2d-x-3.5
$ ./download-deps.py

我下载了所有依赖项后:

$ cd build && mkdir linux_build && cd linux_build
$ cmake ../..
$ make 

等了很长时间让他们编译,我跑了:

$ cd ../..
$ cd tools/cocos2d-consle/bin
$ python install.py

不幸的是,它引发了一个错误:

Starting the installation for Cocos2D console
Downloading...
Installing...
Traceback (most recent call last):
  File "install.py", line 74, in <module>
    with TarFile.open(download_path) as tar:
  File "/usr/lib/python2.7/tarfile.py", line 1665, in open
    raise ReadError("file could not be opened successfully")
 tarfile.ReadError: file could not be opened successfully

我该如何解决?

0 个答案:

没有答案