1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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