我一直试图安装XML :: Simple在Ubuntu 12.10上过去两个小时左右,并正式运行的想法。它在XML :: Parser失败。
我做了一个
sudo apt-get install expat
它仍然没有工作。这里是我得到的错误:
make[1]: Entering directory `/home/<user>/.cpan/build/XML-Parser-2.41-MCLo7T/Expat' cp Expat.pm ../blib/lib/XML/Parser/Expat.pm /usr/bin/perl /usr/share/perl/5.14.2/ExtUtils/xsubpp -noprototypes -typemap /usr/share /perl/5.14/ExtUtils/typemap -typemap typemap Expat.xs > Expat.xsc && mv Expat.xsc Expat.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"2.41\" -DXS_VERSION=\"2.41\" -fPIC "-I/usr/lib/perl/5.14/CORE" Expat.c Expat.xs:12:19: fatal error: expat.h: No such file or directory compilation terminated. make[1]: *** [Expat.o] Error 1 make[1]: Leaving directory `/home/sclarawu/.cpan/build/XML-Parser-2.41-MCLo7T/Expat' make: *** [subdirs] Error 2 TODDR/XML-Parser-2.41.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status,install seems impossible
似乎告诉我,它无法找到expat.h,但我不知道为什么或如何,考虑expat安装?我试图适应expat-devel,但它似乎不是一个包在apt。任何想法将非常感谢。 原文链接:https://www.f2er.com/Perl/173246.html