缺少软件包:Ubuntu中的libx11-dev libxmu-dev libglu1-mesa-dev libgl2ps-dev

时间:2016-10-10 10:31:38

标签: ubuntu cocos2d-x

当我在./install-deps-linux.sh的路径中执行lee@ubuntu:~/cocos2d/cocos2d-x-2.2.5$时,我遇到了这样的错误:

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'

我不知道如何解决它,也许我必须下载相关的软件包,但似乎互联网上没有正确的资源,谁可以帮助我,我对你表示感谢!!

1 个答案:

答案 0 :(得分:0)

这对我解决了一些问题(如果不是全部)有用 在 Ubuntu 上

sudo apt-get update && apt-get install build-essential && apt-get install -y libgl1-mesa-dev