1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

B #4426: create symlink to libxml (#4431)

This commit is contained in:
Alejandro Huertas Herrero
2020-03-25 16:35:41 +01:00
committed by GitHub
parent 6c42d7915f
commit f827bd30a5

View File

@ -384,6 +384,17 @@ def install_dependencies(gems, distro)
STDERR.puts 'Error installing dependencies'
exit(-1)
end
if distro.first == :debian
# on Debian-like platforms, the augeas gem build might fail
# due to incompatible libxml include paths
unless File.exists?('/usr/include/libxml')
require 'fileutils'
FileUtils.ln_s('/usr/include/libxml2/libxml',
'/usr/include/libxml')
end
end
end
end