[转载]Building Cocos2d-x on RHEL / Fedora / CentOS Linux
This guide is intended to help anyone who wishes to build Cocos2d-x from source on an RPM-based Linux machine (RHEL / Fedora / CentOS). At the time these instructions were tested, Cocos2d-x v2.2.1 was used on Fedora 19. For RPM-based systems, there are some issues with the archive you get from http://www.cocos2d-x.org/download . If you look closely at the install-deps-linux.sh file, you will notice the deb-based package manager commands, like ‘dpkg-query’ and ‘apt-get’ which indicate this release was intended for Debian-based systems. There is another issue related to the dependency of Cocos2d