我已经安装了全新的Ubuntu 14.04LTS amd64。我正在尝试构建一个需要链接libGL.so和libGLU.so的32位应用程序。当我尝试在i386架构中安装所需的开发包时,apt-get说它必须卸载相应的amd64包?!
为什么?我不能同时为32位和64位安装libglu1 mesa-dev吗?很明显,它可以将其安装到/usr/lib32中!
sudo apt-get install libglu1-mesa-dev:i386
...
The following extra packages will be installed:
libcgmanager0:i386 libdbus-1-3:i386 libdrm-amdgpu1:i386 libdrm-dev:i386
libgl1-mesa-dev:i386 libgl1-mesa-glx:i386 ...
The following packages will be REMOVED:
freeglut3-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev
...
0 upgraded, 39 newly installed, 4 to remove and 0 not upgraded.
Need to get 1,595 kB of archives.
After this operation, 5,559 kB of additional disk space will be used
Ubuntu软件包确实不稳定。解决方法可以在Ubuntu Bug#949060中找到:https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/949606