[ZBX-12324] configure: error: LIBXML2 library not found Created: 2017 Jun 29 Updated: 2023 Aug 07 Resolved: 2017 Jul 03 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I) |
Affects Version/s: | 3.0.9 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Major |
Reporter: | kris villena | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Linux Suse 12 SP1, mySQL DB |
Description |
Hello, all. I am having issues with zabbix installation where we get below error using command # ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 checking for xml2-config... no we have tried to install a number of libxml2 devel rpms, but nothing is working. libxml2-2.9.0-2.20.1.src.rpm How can we know which version to install and how we can resolve this error? Please help. Thank you! |
Comments |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Jun 29 ] |
Try to find out where xml2-config is located and then provide this information to ./configure using --with-libxml2=/path/to/xml-config. |
Comment by Andrea Biscuola (Inactive) [ 2017 Jun 29 ] |
Have you tried to use the --with-libxml2 with an explicit path to xml2-config script? Like (example for my system): ./configure --with-libxml2=/usr/local/bin/xml2-config Edit: Ninja'd by Gleb |
Comment by kris villena [ 2017 Jun 29 ] |
Hello, Glebs. Thank you for the reply. However, there is no xml2-config directory in the system, even after installing above rpms. Are we installing the wrong ones? if yes, do you know where I can download the correct xml2 files? <host>:/bin # find / -iname xml2 Thank you. |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Jul 02 ] |
It's not a directory, it should be executable file. And there is a dash, not underscore in it's name! I'm afraid I won't be able to provide Suse-specific instructions, but typically it's enough to install libxml2 package for the library itself and libxml2-devel package for header files and that xml2-config. |
Comment by kris villena [ 2017 Jul 03 ] |
Hello Glebs, Thank you for the reply. I have managed to download the correct xml2 file, error is resolved. |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Jul 03 ] |
Reopening to fix resolution. |
Comment by Glebs Ivanovskis (Inactive) [ 2017 Jul 03 ] |
I'm glad I've managed to solve the problem! Since there was nothing to fix in Zabbix... Closing as Won't Fix. |