Ubuntu12.04 环境搭建

5 Install Packages
Part 1: Install the following latest versions from Canonical:

On an Ubuntu* 64-bit system (recommended):
$ sudo apt-get update
$ sudo apt-get install git gnupg flex bison gperf build-essential
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-
dev:i386 libreadline6-dev:i386 libgl1-mesa-glx-lts-raring:i386
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown
libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1
/usr/lib/i386-linux-gnu/libGL.so
Part 2: Install additional packages:
$ sudo apt-get install squashfs-tools bc ccache tesseract-ocr
imagemagick gettext python-libxml2 unzip dosfstools mtools
5.1.2
Download and Install Oracle* JDK
Please download and install Oracle* Java SE Development Kit 6 update 45 from:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-
downloads-javase6-419409.html
Note: User will have to create an Oracle* account in order to get access to the Oracle* JDK.
For a 64 bit system, use:
jdk-6u45-linux-x64.bin
Installation instructions:
1. Create /usr/java/ directory. Enter:
mkdir /usr/java
2. Move jdk-6u45-linux-x64.bin to /usr/java. Enter:
mv jdk-6u45-linux-x64.bin /usr/java/
3. Change binary to executable. Enter:
chmod +x jdk-6u45-linux-x64.bin
4. Execute the binary file to install. Enter:
./jdk-6u45-linux-x64.bin
After installation, you should have a jdk1.6.0_45 directory in /usr/java.
5.1.3
Configure bashrc
Add the following to the end of your ~/.bashrc:
export JAVA_1_6=/usr/java/jdk1.6.0_45
export JAVA_HOME=$JAVA_1_6
export JAVA_FONTS=/usr/share/fonts/truetype
export ANT_HOME=/usr/share/ant
PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
export CLASSPATH=.
5.1.4
Set Git/Repo Identity
As the Linux user account that will be used for building, set your identity for Git (use
your actual name and email address):
$ git config --global user.email you@example.com
$ git config –-global user.name
January 21, 2015
your-name


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值