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 - C Tutorial
From the course: Exploring C Libraries
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Understanding XML2m 23s
-
(Locked)
Testing the libxml2 installation3m 10s
-
(Locked)
Accessing XML data3m 26s
-
(Locked)
Generating XML data3m 57s
-
(Locked)
Working with JSON2m 39s
-
(Locked)
Testing the json-c installation3m 17s
-
(Locked)
Accessing JSON data3m 10s
-
(Locked)
Reading JSON data3m 46s
-
(Locked)
Creating JSON output3m 35s
-
-
-
-
-