【发布时间】:2016-10-10 10:31:37
【问题描述】:
当我在lee@ubuntu:~/cocos2d/cocos2d-x-2.2.5$ 的路径中执行./install-deps-linux.sh 时,出现如下错误:
Checking for missing packages ...
dpkg-query: no packages found matching libx11-dev
dpkg-query: no packages found matching libxmu-dev
dpkg-query: no packages found matching libglu1-mesa-dev
dpkg-query: no packages found matching libgl2ps-dev
dpkg-query: no packages found matching libxi-dev
dpkg-query: no packages found matching libglfw-dev
dpkg-query: no packages found matching libzip-dev
dpkg-query: no packages found matching libfontconfig1-dev
dpkg-query: no packages found matching libsqlite3-dev
dpkg-query: no packages found matching libglew*-dev
Missing packages: libx11-dev libxmu-dev libglu1-mesa-dev libgl2ps-dev libxi-dev libglfw-dev libzip-dev libcurl4-gnutls-dev libfontconfig1-dev libsqlite3-dev libglew*-dev .
You may be asked for your password for package installation.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl4-gnutls-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package libx11-dev
E: Unable to locate package libxmu-dev
E: Unable to locate package libglu1-mesa-dev
E: Unable to locate package libgl2ps-dev
E: Unable to locate package libxi-dev
E: Unable to locate package libglfw-dev
E: Unable to locate package libzip-dev
E: Package 'libcurl4-gnutls-dev' has no installation candidate
E: Unable to locate package libfontconfig1-dev
E: Unable to locate package libsqlite3-dev
E: Unable to locate package libglew*-dev
E: Couldn't find any package by regex 'libglew*-dev'
不知道怎么解决,可能要下载相关的包,但是网上好像没有正确的资源,谁能帮帮我,谢谢你!!
【问题讨论】:
-
我们需要
install-deps-linux.sh的内容。 -
Cocos2D-X v2.2.5 现在已经 4 岁了。如果可能的话,我会建议迁移到更新的 v3.x 版本。你运行的是哪个版本的 Ubuntu? (可以在命令行输入
lsb_release -a查看)。 -
@MattSchuchard 我相信他正在使用这个脚本:github.com/cocos2d/cocos2d-x/blob/…(来自 Cocos2D-X repo 的 2.2.5 标签)