1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
--- a/src/setup_common.py
+++ b/src/setup_common.py
@@ -54,14 +54,14 @@
if os_path.exists("/etc/debian_version"): #. XXX: Debian Workaround...
libdir.append("/usr/lib/pymodules/python%d.%d"%sys.version_info[0:2])
- (res, libxml2_libs) = subprocess.getstatusoutput("xml2-config --libs")
+ (res, libxml2_libs) = subprocess.getstatusoutput("pkg-config --libs libxml-2.0")
if res != 0:
print("Could not build python-dmidecode.")
- print("Could not run xml2-config, is libxml2 installed?")
- print("Also the development libraries?")
+ print("Could not run pkg-config, is it installed?")
+ print("Also the development libraries for libxml2?")
sys.exit(1)
- # Parse the xml2-config --libs response
+ # Parse the pkg-config --libs libxml-2.0 response
for l in libxml2_libs.split(" "):
if l.find('-L') == 0:
libdir.append(l.replace("-L", "", 1))
|