[Linux] Install JDK and maven and Hadoop-related environments

Source: Internet
Author: User

Continue to install Hadoop-related environments immediately preceding the previous article

JDK Installation:
1. Download, the following two addresses found on the Internet, can be directly downloaded:
Http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.tar.gz
http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-x64.rpm
2. Install, upload the downloaded JDK using the RZ tool, unzip to/usr/local/gz/jdk1.7.0
[Email protected]:/home/garinzhang# tar-zxvf jdk-7-linux-x64.tar.gz
3. Configure the environment variables, use VI to open the/etc/profile file, add the following at the end of the file:
#set Java Environment
java_home=/usr/local/gz/jdk1.7.0
java_bin= $JAVA _home/bin
Export path= $PATH: $JAVA _home/bin
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
Export Java_home java_bin PATH CLASSPATH
4. Implementation. /etc/profile let environment variables take effect
Reference connection:
Http://jingyan.baidu.com/article/d621e8dae805272865913fa7.html
Http://developer.51cto.com/art/200907/135155.htm

Maven installation, one sentence: Apt-get install maven, after the installation is complete, the machine needs to be restarted before the installation of the JDK can work

PROTOBUF, installed, the following two address can be under, see if the wall is successful
One: http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
Two:
Http://pan.baidu.com/s/1pJlZubT
Use Thunderbolt to Google download success, but there is a problem during installation, after installing build-essential to resolve this issue (refer to Connection: http://www.cnblogs.com/niocai/archive/2011/11/04/2236458.html)
Installing Apt-get Install build-essential, then install
The following commands are executed in one step:
Apt-get Install Build-essential
Tar zxvf protobuf-2.5.0.tar.gz
CD protobuf-2.5.0
./configure
Make
Make check
Make install
Ldconfig
Protoc--version//Print out the following results:


OpenSSL, installed, apt-get install Libssl-dev
Apt-get Install Libssl-dev

CMake, installed, apt-get install CMake
Apt-get Install CMake

Ant, downloaded, installed
: Http://pan.baidu.com/s/1c0vjhBy
Decompression: Tar zxvf apache-ant-1.9.4-bin.tar.gz
Edit Profile:
Vi/etc/profile
At the end, add the following:
Export ant_home=/usr/local/gz/apache-ant-1.9.4
Export path= $PATH: $ANT _home/bin
Perform:
. /etc/profile
Perform:
Ant-version//Get the following:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.