您的位置:首页 > 其它

Ubuntu12.04 环境搭建

2015-08-12 19:40 337 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: