# 安装 zlib-devel、ncurses-devel # [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (make) on project hadoop-common: An # Ant BuildException has occured: exec returned: 1 # [ERROR] around Ant part ...<exec failonerror="true" dir="/home/maven/hadoop-2.7.6-src/hadoop-common-project/hadoop-common # /target/native" executable="cmake">... @ 4:132 in /home/maven/hadoop-2.7.6-src/hadoop-common-project/hadoop-common/target # /antrun/build-main.xml yum -y install zlib-devel yum -y install ncurses-devel
# 卸载 google protobuf rm `which protoc` # 安装 google protobuf 2.5.0 # https://github.com/google/protobuf/releases?after=v3.0.0-alpha-4.1 找到相应的版本下载,这里我们需要2.5.0版本 tar -zxvf protobuf-2.5.0.tar.gz cd protobuf-2.5.0 ./configure make make install protoc --version
# 编译安装snappy tar -zxvf snappy-1.1.3.tar.gz -C /opt/module/ cd snappy-1.1.3/ ./configure make make install ls -lh /user/local/lib |grep snappy