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
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
相关文章推荐
- <%%>创建内联代码块(表达)
- 10gocm->session5->数据库管理实验->GC资源管理器的资源消耗组介绍
- 01背包 动态规划
- 黑马程序员——java复习总结——异常和包
- 堆和栈
- 面试题:字符串截取
- 程序人生的四个象限和两条主线
- Youtube最佳Red5 官方视频下载指南,字幕【亲测成功】
- 严格遵守“第一级DOM”能够让你避免与兼容性有关的任何问题
- 机房变迁--防火墙IP、访问控制更新
- 关于iOS内存管理
- 精通Hibernate——理解HibernateSession缓存
- TCP/IP网络编程 学习笔记_9 --域名系统(DNS)
- TCP/IP网络编程 学习笔记_9 --域名系统(DNS)
- 总结快速编程
- NOIP2012 day2 T3 疫情控制
- Android 进阶 教你打造 Android 中的 IOC 框架 【ViewInject】 (下) .
- $.ajax()方法进行网页间传值
- iOS开发-Day22-OC 延展和协议以及深浅复制
- SmartUpload的基本使用、相关控制及IP随机文件命名