Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to install some perl module but got strange error.

sudo cpanm XML::Parser

cp Parser/Encodings/iso-8859-5.enc blib/lib/XML/Parser/Encodings/iso-8859-5.enc
make[1]: Entering directory `/root/.cpanm/work/1383241509.7912/XML-Parser-2.41/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.xs$
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   -DVER$
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 `/root/.cpanm/work/1383241509.7912/XML-Parser-2.41/Expat'
make: *** [subdirs] Error 2
-> FAIL Installing XML::Parser failed. See /root/.cpanm/work/1383241509.7912/build.log for details. Retry with --force to force install it.

Any ideas ? Thanks !

share|improve this question
    
Did you See /root/.cpanm/work/1383241509.7912/build.log for details? –  daxlerod Oct 31 '13 at 17:55
    
This code is from the log file –  RaspDealer Oct 31 '13 at 18:02
add comment

1 Answer

up vote 0 down vote accepted

Found a solution with this apt-get command :

sudo apt-get install expat 
sudo apt-get install libexpat1-dev

Thanks @daxlerod for your comment.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.