Cdh4.5.0 source code compilation

Source: Internet
Author: User
 

Unable to load native-hadoop library for your platform solution

Install Maven

1 cmake-2.8.12.1.tar.gz

CD cmake-2.8.12.1
./Bootstrap
Make
Sudo make install

2 install ant
Export ant_home =/usr/local/Apache-ant-1.9.3
Export Path = $ java_home/bin: $ ant_home/bin: $ path
Source/etc/profile
Check ant-version

3 findbugs-2.0.2-source.zip
Wget http://prdownloads.sourceforge.net/findbugs/findbugs-2.0.3.tar.gz? Download
Tar zxvf findbugs-2.0.3.tar.gz-C/usr/local/
MV/usr/local/findbugs-2.0.3 // usr/local/findbugs
VI/etc/profile
Export findbugs_home =/usr/local/findbugs

4 protobuf
Wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz

Root User
./Configure & make install

Protoc -- version

Export protoc_home =/home/hadoop/soft/protobuf-2.5.0
Export Path = $ path: $ protoc_home/src

5 CD $ hadoop_home/src
MVN package-dskiptests-pdist, native-dtar> install2.log

Error 1
JDK version error reported in the middle
Download JDK jdk-6u27-linux-x64.bin.
Chmod U + x jdk-6u27-linux-x64.bin
/Jdk-6u27-linux-x64.bin

Error 2
Cmake error at/usr/local/share/cmake-2.8/modules/findpackagehandlestandardargs. cmake: 108 (Message ):
[Exec] cocould not find zlib (Miss -- checking ing incomplete, errors occurred!

Install zlib

$ Tar-xvzf zlib-1.2.3.tar.gz
$ Zlib-1.2.3.tar.gz CD
$./Configure
$ Make
$ Sudo make install
Or sudo apt-Get install zlib1g-dev.

Error 3
Cocould not find OpenSSL, try to set the path to OpenSSL root folder in
[Exec] system variable openssl_root_dir (missing: openssl_libraries


Ubuntu:
Sudo apt-Get install OpenSSL
Sudo apt-Get install libssl-Dev.
Centos:
Yum install OpenSSL
Yum install OpenSSL-devel



There should be no other problems,










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.