No package 'libxml-2.0' found

Rohan picture Rohan · May 19, 2016 · Viewed 39.3k times · Source

I am trying to add libvisio in my mac os x from https://wiki.documentfoundation.org/DLP/Libraries/libvisio

I have added all dependancy described there listed bellow:

boost
gperf
icu
librevenge
libxml2
perl
doxygen

After adding dependancies i am trying to run bellow commands.

$ ./autogen.sh ''# only needed for building from git''
$ ./configure
$ make
$ make install

But i having problem with second command $ ./configure

Getting bellow error.

configure: error: Package requirements (
    libxml-2.0
) were not met:

No package 'libxml-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBXML_CFLAGS
and LIBXML_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

i have tried to install libxml2 with $ brew install libxml but its says Warning: libxml2-2.9.3 already installed.

I am using OS X 10.11.4

Can some one help me out here. Thanks

Answer

Xolani picture Xolani · Jul 30, 2019

For Ubuntu the following helped me:

apt-get install libxml2-dev