遇到问题
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