net-snmp在执行configure时找不到eval_pv, perl_eval_pv or Perl_eval_pv functions

linuxstudy 发布于 2015/01/30 09:34
阅读 342
收藏 0

【华为云1024程序员节·向云而生】预约直播 抽14件华为电子产品礼包!>>>

@北极的雪 你好,想跟你请教个问题:

执行./configure后会有如下错误:好像是找不到perl的api函数。但是我把perl的源码下载后也重新编译了。perl -v 的信息也有。你帮我看下是什么回事?

checking for eval_pv... no
checking for perl_eval_pv... no
checking for Perl_eval_pv... no
configure: error: Could not find the eval_pv, perl_eval_pv or Perl_eval_pv functions needed for embedded Perl support. Either set the environment variable PERLPROG to a different perl binary or use --disable-embedded-perl to turn off embedded Perl functionality altogether.
[root@0 net-snmp-5.7.3]# cd perl

[root@0 perl]# perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) built for i686-linux

Copyright 1987-2012, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at, the Perl Home Page.