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: