[uClinux-dev] about perl install!

Guotii dhyf at zj165.com
Wed Aug 31 22:38:15 EDT 2005


hi,all
	I have some problem on installing perl module.The following is install process.

[root at localhost SNMP]# perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for SNMP
Unable to locate the MIBs, Please enter the path:  [] /usr/local/snmp/share/snmmp/
[root at localhost SNMP]# ls
BUG       hints     Makefile.old  MANIFEST       perlsnmp.h  SNMP.pm  t     typemap
examples  Makefile  Makefile.PL   MANIFEST.SKIP  README      SNMP.xs  TODO
[root at localhost SNMP]# make
cp SNMP.pm blib/lib/SNMP.pm
AutoSplitting blib/lib/SNMP.pm (blib/lib/auto/SNMP)
/usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  SNMP.xs > SNMP.xsc && mv SNMP.xsc SNMP.c
gcc -c   -g -O2 -Dprefix=/usr/local/snmp -I. -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -g   -DVERSION=\"5.0.8\" -DXS_VERSION=\"5.0.8\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE"   SNMP.c
In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/perl.h:3427,
                 from SNMP.xs:12:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:296: parse error before '/' token
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:297: parse error before '/' token
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:305: parse error before '/' token
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/proto.h:306: parse error before '/' token
In file included from /usr/local/include/net-snmp/session_api.h:26,
                 from /usr/local/include/net-snmp/net-snmp-includes.h:65,
                 from SNMP.xs:64:
/usr/local/include/net-snmp/library/snmp_transport.h:99: parse error before '/' token
/usr/local/include/net-snmp/library/snmp_transport.h:104: parse error before '}' token
/usr/local/include/net-snmp/library/snmp_transport.h:139: parse error before '*' token
/usr/local/include/net-snmp/library/snmp_transport.h:141: parse error before '*' token
In file included from /usr/local/include/net-snmp/mib_api.h:22,
                 from /usr/local/include/net-snmp/net-snmp-includes.h:67,
                 from SNMP.xs:64:
/usr/local/include/net-snmp/library/mib.h:141: parse error before '/' token
/usr/local/include/net-snmp/library/mib.h:144: parse error before '/' token
In file included from /usr/local/include/net-snmp/config_api.h:22,
                 from /usr/local/include/net-snmp/net-snmp-includes.h:69,
                 from SNMP.xs:64:
/usr/local/include/net-snmp/library/read_config.h:110: parse error before '/' token
make: *** [SNMP.o] Error 1


	I don't know where is the problem,can anyone help me?
	Thanks!

		

        Guotii
        dhyf at zj165.com
          2005-09-01


More information about the uClinux-dev mailing list