Thursday, April 10, 2014

 

Ubuntu 12 build error : "cannot find -lexpat"

Q: How do I provision a brand-new Ubuntu 12.04 VM ? It appears to be missing some packages.

A: You will need the following, at a minimum, for Ubuntu 12 VMs:
(sudo apt-get install )

expat
libexpat1
libexpat-dev
elfutils (when missing gelf.h)
libelf-dev
openssl
libssl-dev (when missing evp.h)
openssh-server (updated to 1.0.1g for Heartbleed)

At some point you may run into this :

   echo " ERROR: Kernel configuration is invalid."; \
   echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
   echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \


For that you'll have to get kernel source tool libncurses5-dev, followed by "make menuconfig" down in /usr/src/linux-headers-...   Then you will need to copy the generated autoconf.h up a few levels. You also need (in older Element versions) an update to linx-2.5 to address the issue. 



Labels: ,


This page is powered by Blogger. Isn't yours?

free web hit counter
free invisible web counter