所以今天我从01.org开始安装Mesa - 9.0.1,但是不知道如何编译它,所以我找到了一个网站,上面说你可以用外星将.tar.gz文件的内容转换成.debs。所以我改装了它,然后去安装它。它似乎安装很好,但它没有安装,当我后来去找包管理器时,它说包装目录坏了,需要修理。但它无法修复。
dpkg: error processing /var/cache/apt/archives/libglapi-mesa_9.0.1-0ubuntu1~precise7.3_amd64.deb (--unpack): './usr/share/doc/libglapi-mesa/changelog.Debian.gz' is different from the same file on the system dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
dpkg-deb: error: subprocess <decompress> returned error exit status 2 Unpacking libgl1-mesa-glx (from .../libgl1-mesa-glx_9.0.1-0ubuntu1~precise7.3_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libgl1-mesa-glx_9.0.1-0ubuntu1~precise7.3_amd64.deb (--unpack): './usr/share/doc/libgl1-mesa-glx/changelog.Debian.gz' is different from the same file on the system dpkg-deb (subprocess): subprocess data was killed by signal (Broken pipe)
dpkg-deb: error: subprocess <decompress> returned error exit status 2 Errors were encountered while processing: /var/cache/apt/archives/libglapi-mesa_9.0.1-0ubuntu1~precise7.3_amd64.deb /var/cache/apt/archives/libgl1-mesa-glx_9.0.1-0ubuntu1~precise7.3_amd64.deb Error in function:因此,我进入了突触包管理器,它告诉我,我的系统中有22个包被破坏了。他们都依赖于libgl1-mesa-glx和libglapi-mesa。所以我去重新安装它/他们修复它/任何东西,但是它不能工作,因为包管理器不允许我安装任何东西,因为这两个文件也依赖于其他文件。
试过:
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get purge libgl1-mesa-glx libglapi-mesa
sudo apt-get -f autoremove
sudo apt-get remove libgl1-mesa-glx libglapi-mesa
sudo apt-get clean等根据其他网站的建议,没有运气。
因此,我开始编译原始的Mesa - 9.0.1文件夹并运行./configure,这首先应该是我应该做的,它告诉我我安装的其他依赖项,但现在它告诉我我没有x11,但我非常肯定我必须这样做:
checking for X11... no configure: error: Package requirements (x11) were not met:
No package 'x11' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables X11_CFLAGS and X11_LIBS to avoid the need to call pkg-config.请告诉我如何“设置环境变量X11_CFLAGS和X11_LIBS以避免调用pkg-config”?
发布于 2013-12-19 17:58:57
这是因为您没有xorg开发库,这是一个简单的例子:
sudo apt-get install xorg-dev应该修复该错误消息。我建议使用:
sudo apt-get install build-dep mesa而是确保安装了所有依赖项。
https://askubuntu.com/questions/271647
复制相似问题