Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 ../blib/lib/XML/Parser/
/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
up vote 1 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .