编译环境必须是64位系统啊,妥妥的又装了64位的ubuntu,虚拟机推荐server版本,不带x省性能……
接着要装openjdk 1.7,记得更新一下系统的源,下面这个不错
1 deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse 2 deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse 3 deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse 4 deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse 5 deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse 6 deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse 7 deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse 8 deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse 9 deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse 10 deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
然后就是sudo apt-get install openjdk-7-jdk 依赖的包都会下载安装好,装好之后java -version一下,妥妥的。
编译需要的依赖库装一下:
sudo apt-get install bison libc6-dev-amd64 zlib1g-dev lib64z1-dev flex libncurses5-dev libx11-dev gperf
不然中途出错又要重新搞。
好了,现在还在编译,慢慢等着先。
出错了,提示缺少unzip, 装上……
继续……
时间: 2024-10-05 19:41:28