I'm trying to install Emacs 25.1.rc1 on Ubuntu 15.10, and have pre-installed the usual dependencies i.e.:
autoconf
automake
libtool
texinfo
build-essential
xorg-dev
libgtk2.0-dev
libjpeg-dev
libncurses5-dev
libdbus-1-dev
libgif-dev
libtiff-dev
libm17n-dev
libpng12-dev
librsvg2-dev
libotf-dev
libxml2-dev
However, when I inspect the output of ./configure
libxml2/xml2 is off and when I make && make install
emacs and run it, M-x eww
says Emacs wasn't compiled with libxml2
I need help!
UPDATE
I had previously installed using Linuxbrew, which had installed pkg-config
as a dependency. (ed. Yes, I know, well it seemed like a good idea at the time!)
Removed it and recompiled Emacs. Configure finds and reports libxml2 as expected.
configure --with_xml2
and see if there is any errors inconfig.log
about the saidxml2
libs. Otherwiae it should get enabled in configure's summary.pkg-config --modversion libxml-2.0
give ?pkg-config --modversion libxml-2.0 Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing
libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found`