From the course: Exploring C Libraries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Testing the libxml2 installation

Testing the libxml2 installation - C Tutorial

From the course: Exploring C Libraries

Start my 1-month free trial

Testing the libxml2 installation

- [Instructor] To test the libxml2 library installation, I'm using this code, which outputs the library's version number. The header file at line 2 must be included. Libxml/xmlversion.h Now there's a problem in that your installation may not have copied the header files to the libxml folder. They may instead be in a subfolder of libxml2, and this issue must be addressed. In a terminal window, I'm going to save the current directory, and then I'm going to go to where the header files are stored in Unix, the usr/include directory. And what I want to look for is to see if the libxml2 header file directory has been installed here. And, indeed, libxml2 is installed with a subdirectory of libxml, which is where the header files are located. This isn't good enough, so we need to use some Unix kung fu to fix the situation. I'm going to create an alias in the usr/local/include directory that's going to handle this problem…

Contents