LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1043|回复: 0

[问题解决]ntop的编译问题:居然说没有perl.h??!!

[复制链接]
发表于 2008-7-11 19:30:31 | 显示全部楼层 |阅读模式
ntop的编译问题:居然说没有perl.h??!!
$ make
make  all-recursive
make[1]: Entering directory `/home/marklf/ntop'
Making all in .
make[2]: Entering directory `/home/marklf/ntop'
/bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.     -DLINUX -I/usr/local/include -I/opt/local/include  -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs  -fPIC -DPIC -MT perl.lo -MD -MP -MF .deps/perl.Tpo -c -o perl.lo perl.c
gcc -DHAVE_CONFIG_H -I. -I. -DLINUX -I/usr/local/include -I/opt/local/include -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fPIC -DPIC -MT perl.lo -MD -MP -MF .deps/perl.Tpo -c perl.c  -fPIC -DPIC -o .libs/perl.o
perl.c:31:71: error: EXTERN.h: No such file or directory
perl.c:32:71: error: perl.h: No such file or directory
perl.c:33: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
perl.c:38: warning: no previous prototype for 'handlePerlHTTPRequest'
perl.c: In function 'handlePerlHTTPRequest':
perl.c:41: error: 'HV' undeclared (first use in this function)
perl.c:41: error: (Each undeclared identifier is reported only once
perl.c:41: error: for each function it appears in.)
perl.c:41: error: 'ss' undeclared (first use in this function)
perl.c:45: warning: nested extern declaration of 'PERL_SYS_INIT3'
perl.c:45: error: 'argc' undeclared (first use in this function)
perl.c:45: error: 'argv' undeclared (first use in this function)
perl.c:45: error: 'env' undeclared (first use in this function)
perl.c:46: error: 'my_perl' undeclared (first use in this function)
perl.c:46: warning: nested extern declaration of 'perl_alloc'
perl.c:47: warning: nested extern declaration of 'perl_construct'
perl.c:48: error: 'PL_exit_flags' undeclared (first use in this function)
perl.c:48: error: 'PERL_EXIT_DESTRUCT_END' undeclared (first use in this function)
perl.c:49: warning: nested extern declaration of 'perl_parse'
perl.c:51: warning: nested extern declaration of 'perl_get_hv'
perl.c:53: warning: nested extern declaration of 'hv_store'
perl.c:53: warning: nested extern declaration of 'newSVpv'
perl.c:57: warning: nested extern declaration of 'perl_run'
perl.c:58: warning: nested extern declaration of 'hv_undef'
perl.c:59: warning: nested extern declaration of 'perl_destruct'
perl.c:60: warning: nested extern declaration of 'perl_free'
perl.c:61: warning: nested extern declaration of 'PERL_SYS_TERM'
make[2]: *** [perl.lo] 错误 1
make[2]: Leaving directory `/home/marklf/ntop'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/marklf/ntop'
make: *** [all] 错误 2 locate perl.h

而perl.h是在的:

$ locate perl.h

/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/perl.h



EDIT: 感谢 Fedoraforum的sideways朋友的这个帖子帮我解决了问题:
http://forums.fedoraforum.org/fo ... 955&postcount=4
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表