1、更新source.list源
gedit /etc/apt/source.list
#网易的源(163源,无论是不是教育网,速度都很快)
deb http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ quantal main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ quantal-updates universe main multiverse restricted
#台湾源(台湾的ubuntu 更新源还是很给力的)
deb http://tw.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu/ quantal main universe restricted multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ quantal-security universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ quantal-security universe main multiverse restricted
deb http://tw.archive.ubuntu.com/ubuntu/ quantal-updates universe main multiverse restricted
deb-src http://tw.archive.ubuntu.com/ubuntu/ quantal-updates universe main multiverse restricted
#mirror.lupaworld.com的源,速度很快
deb http://mirror.lupaworld.com/ubuntu/archive/ quantal main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ quantal-security main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ quantal-updates main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/archive/ quantal-backports main restricted universe multiverse
deb http://mirror.lupaworld.com/ubuntu/ubuntu-cn/ quantal main restricted universe multiverse
#ubuntu.cn99.com源(推荐):
deb http://ubuntu.cn99.com/ubuntu/ quantal main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ quantal-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ quantal-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ quantal-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ quantal main restricted universe multiverse
sudo apt-get update
2、安装JDK1.6
http://www.oracle.com/technetwork/java/javase/downloads/jdk6downloads-1902814.html
这里选择的是jdk-6u43-linux-x64.bin
我将下载的jdk-6u43-linux-x64.bin文件置于/usr/lib/中。
然后修改bin文件权限,使其可执行,在shell中执行:
或者直接在/etc/profile中添加:(推荐使用)
由于ubuntu中可能会有默认的jdk,如openjdk,所以,为了使默认使用的是我们安装的jdk,还要进行如下工作。
通过这一步将我们安装的jdk加入java选单,执行:
1)
toltech@toltech-Lenovo:/home/jb$ lunch rk30sdk-eng
/bin/bash: bison: 未找到命令
解决:sudo apt-get install bison
2)
toltech@toltech-Lenovo:/home/jb$make -j8
mkdir: 无法创建目录"out": 权限不够
解决:使用root用户登录
3)
/bin/bash: xsltproc: 未找到命令
解决:apt-get install xsltproc
4)
/bin/bash: flex: 未找到命令
解决:apt-get install flex
5)prebuilts/tools/gcc-sdk/gcc: 行 40: prebuilts/tools/gcc-sdk/../../gcc/linux-gcc命令为找到
解决:
$ sudo apt-get install gcc-4.4 g++-4.4
which gcc cd /usr/bin/ rm gcc g++ ln -s gcc-4.4 gcc ln -s g++-4.4 g++
6)
在编译内核的时候,提示如下错误:
7)
64位系统用32位的交叉工具链
PC:ubuntu12.10-64位
交叉工具链:mipsel-linux-gcc-32位
查看工具链版本的时候出现一下错误:
mipsel-linux-gcc -v
bash: ***/mipsel-linux-gcc : no such flie or directory
解决:
sudo apt-get install ia32-lib*
8)
/bin/sh: 1: uudecode: not found
解决:#sudo apt-get install sharutils