CentOS 7安装autoconf-2.69报BEGIN failed--compilation aborted at ../bin/autom4te line 37.错误解决

安装yum groupinstall perl* 
搞定了。

 

原因

CLAIMS 第三方安装包编译问题

ECNU 90s集群是个环境复杂的集群,claims用户由于需要单独升级gcc 等系统工具版本,并且保留原有工具供OB team使用,故造成claims用户独特的高版本工具运行环境,

在这样复杂的环境中常常因为工具版本不匹配造成编译或者链接错误,总结如下:

1. Theron 编译出错:

解决方法:查看Theron-5.01.01/Lib/libtherond.a 和/Theron-5.01.01/Include/*.h 是否存在,如果已经存在,编译错误即可忽略不计。

 2. libconfig 编译出错

忽略 configure CC=/usr/local/gcc-4.9.3/bin/gcc CXX=/usr/local/gcc-4.9.3/bin/g++

3. llvm 

./configure CXX=/usr/local/gcc-4.9.3/bin/g++

如果编译出错,进入build目录再运行make编译即可通过,很神奇。

4. tcmalloc之libunwind 链接错误

原因是编译采用gc-4.9.3,而链接是使用的ld为/usr/bin/ld 为系统路径下的低版本工具,升级ld工具集binutils 将ld工具拷贝/usr/bin/目录下。

编译google-perftools-2.4失败时,需要执行autogen.sh脚本俩遍,第一遍发生的错误,第二遍正常,原因暂时未调查。

5. 91-94上 numa yum 安装失败

是因为之前手动rpm安装更高版本的numa包,所以其他机器也需要手动rpm安装高版本numa

强制安装:

rpm -ivh --force numactl-???.rpm

6 缺少 lzma.h 文件

Centos 下安装:

yum install -y xz-devel
安装cmake-2.8.11 版本号在此
 

手动安装m4-1.4.13, autoconf-2.69, automake-1.13, libtool-2.4 版本号在此,以下版本号无效,仅为操作步骤。

原文:https://ruby-china.org/topics/2434

###安装m4

wget http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz \
&& tar -xzvf m4-1.4.13.tar.gz \
&& cd m4-1.4.13 \
&& ./configure --prefix=/usr/local
make && make install
cd ..

###安装autoconf

wget http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz \
&& tar -xzvf autoconf-2.69.tar.gz \
&& cd autoconf-2.69 \
&& ./configure --prefix=/usr/local
make && make install
cd ..

安装过程会出现错误:

Can't locate Data/Dumper.pm in @INC (@INC contains: ../lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ../lib/Autom4te/C4che.pm line 33.
BEGIN failed--compilation aborted at ../lib/Autom4te/C4che.pm line 33.
Compilation failed in require at ../bin/autom4te line 37.
BEGIN failed--compilation aborted at ../bin/autom4te line 37.
make[2]: *** [autoconf.in] Error 2
make[2]: Leaving directory `/tmp/autoconf-2.69/bin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/autoconf-2.69'
make: *** [all] Error 2

如链接:http://bbs.qcloud.com/thread-11996-1-1.html

这是因为系统缺少perl相关环境,只需安装perl环境即可, CLAIMS这里是在Centos 7下安装perl-5.16.1.tar.gz

具体步骤可见链接:http://www.centoscn.com/image-text/install/2015/0707/5808.html

 

###安装automake

wget http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz \
&& tar xzvf automake-1.11.tar.gz \
&& cd automake-1.11 \
&& ./configure --prefix=/usr/local
make && make install
cd ..

###安装libtool

wget http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz \
&& tar xzvf libtool-2.2.6b.tar.gz \
&& cd libtool-2.2.6b \
&& ./configure --prefix=/usr/local
make && make install
cd ..

 

来源:https://blog.csdn.net/awewong/article/details/50947942

END!

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值