安装automake问题解决
作者:互联网
安装automake问题解决
遇到问题
Can't locate Automake/Config.pm in @INC(@INC contains: /usr/local/share/automake-1.14 /xxxxx)
问题原因
automake的安装位置和这里@INC设置的位置不一致,导致找不到Automake::Config.pm
问题分析
这个@INC是怎么设置进去的呢?
查看automake-1.14/bin/automake.in中设置方式如下:
@Automake::perl_libdirs = ('@datadir@/@PACKAGE@-@APIVERSION@')
unless @Automake::perl_libdirs;
unshift @INC, @Automake::perl_libdirs;
最终生成的automake(automake-1.14/bin/automake)中的@INC如下:
@Automake::perl_libdirs = ('/usr/local/share/automake-1.14')
unless @Automake::perl_libdirs;
unshift @INC, @Automake::perl_libdirs;
解决办法
明白了问题所在,解决问题的方法也就有了:将@INC的路径和实际安装的automake的Automake/Config.pm所在路径调整一致即可
查看自己所安装的automake的位置,将datadir设置为安装位置路径即可
./configure --datadir=${AUTOMAKE_PATH}
检测
安装成功后,查看安装的automake脚本的版本信息,可成功查看则安装成功
./automake --version
automake (GNU automake) 1.14
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.
标签:libdirs,perl,解决,Automake,安装,automake,INC 来源: https://blog.csdn.net/xnn_1993/article/details/86607799