Added missing dependency for CentOS 7 platform

This commit is contained in:
Pavel Odintsov 2019-07-14 21:22:07 +01:00
parent 43f63398f9
commit 5517f3c6ff

@ -348,7 +348,7 @@ sub main {
apt_get(@debian_packages_for_build); apt_get(@debian_packages_for_build);
} elsif ($distro_type eq 'centos') { } elsif ($distro_type eq 'centos') {
my @centos_dependency_packages = ('make', 'gcc'); my @centos_dependency_packages = ('make', 'gcc', 'gcc-c++');
yum(@centos_dependency_packages); yum(@centos_dependency_packages);
} }
@ -778,12 +778,18 @@ sub install_log4cpp {
print "Build log4cpp\n"; print "Build log4cpp\n";
my $configure_res = '';
# TODO: we need some more reliable way to specify options here # TODO: we need some more reliable way to specify options here
if ($configure_options) { if ($configure_options) {
exec_command("$configure_options ./configure --prefix=$log4cpp_install_path"); $configure_res = exec_command("$configure_options ./configure --prefix=$log4cpp_install_path");
} else { } else {
exec_command("./configure --prefix=$log4cpp_install_path"); $configure_res = exec_command("./configure --prefix=$log4cpp_install_path");
} }
if (!$configure_res) {
fast_die("Cannot configure log4cpp");
}
exec_command("make $make_options install"); exec_command("make $make_options install");