Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No package 'libxml-2.0' found

Tags:

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

like image 239
Rohan Avatar asked May 19 '16 11:05

Rohan


2 Answers

For Ubuntu the following helped me:

apt-get install libxml2-dev 
like image 139
Xolani Avatar answered Sep 22 '22 10:09

Xolani


This should also work as I didn't have brew:

yum install libxml2-devel 
like image 32
Tushar Avatar answered Sep 22 '22 10:09

Tushar