From: Olga Shern Date: Sun, 31 Aug 2008 09:08:54 +0000 (+0300) Subject: rpm-build RPM is required to install OFED on RedHat. X-Git-Tag: vofed-1.4-rc1~8 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=39bd79864ae9b5f2d2705f12dbdf5a2ac00d46e4;p=~emulex%2Fofed_scripts%2F.git rpm-build RPM is required to install OFED on RedHat. Signed-off-by: "Olga Shern --- diff --git a/install.pl b/install.pl index 999b8e7..6d5ad55 100755 --- a/install.pl +++ b/install.pl @@ -2422,6 +2422,7 @@ sub check_linux_dependencies if (! $check_linux_deps) { return 0; } + for my $package ( @selected_packages ) { # Check rpmbuild requirements if ($package =~ /kernel-ib|ib-bonding/) { @@ -2442,6 +2443,13 @@ sub check_linux_dependencies } } + if ($distro eq "redhat" or $distro eq "fedora" or $distro eq 'redhat5') { + if (not is_installed("rpm-build")) { + print RED "rpm-build is required to build OFED", RESET "\n"; + $err++; + } + } + if ($package =~ /debuginfo/ and ($distro eq 'redhat' or $distro eq 'fedora' or $distro eq 'redhat5')) { if (not $packages_info{$package}{'rpm_exist'}) { if (not is_installed("redhat-rpm-config")) {