红联Linux门户
Linux帮助

在ubuntu14.04上安装libqglviewer-qt4-dev

发布时间:2016-08-20 10:42:55来源:linux网站作者:jiujiu932
libqglviewer-qt4-dev这个东西只有在12.04的版本上有,因为我用的是14.04版本就比较坑,比如我去安装的时候就会提示:
lll@ubuntu:~$ sudo apt-get install libeigen3-dev libsuitesparse-dev libqt4-dev qt4-qmake libqglviewer-qt4-dev
[sudo] password for lll: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libqglviewer-qt4-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
However the following packages replace it:
libqglviewer-dev:i386 libqglviewer-dev
E: Package 'libqglviewer-qt4-dev' has no installation candidate
 
不用管它的提示,因为我照它提示去安装libqglviewer-dev:i386 libqglviewer-dev这个时候也报错。而且我用的是amd64版本的,用i386的就坑了。
要是用i386版本的可以在http://ftp.debian.org/debian/pool/main/libq/libqglviewer/上依次下载libqglviewer-qt4-2_2.3.4-4.2_i386.deb、libqglviewer-dev-common_2.3.4-4.2_all.deb、libqglviewer-qt4-dev_2.3.4-4.2_i386.deb,并按照上述顺序双击安装。
 
下载完这些包之后,找到这些包的路径,移到ubuntu的/home文件夹下,不一定非得在这个文件夹,双击之后,等待几秒,一定要等一下,会出现如下这样的页面,点击右方install就可以了,当然过程中会让你输入密码。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23468.html