Skip to content

Commit

Permalink
[build] Fix RedHat package names (kaldi-asr#4134)
Browse files Browse the repository at this point in the history
python2.7 package is named python27, and gfortran gcc-gfortran.
  • Loading branch information
kkm000 committed Jun 25, 2020
1 parent bc5c9b9 commit 38c3a8b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/extras/check_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,18 @@ if have "$CXX" && ! echo "#include <zlib.h>" | $CXX $CXXFLAGS -E - &>/dev/null;
add_packages zlib-devel zlib1g-dev
fi

for f in make automake autoconf patch grep bzip2 gzip unzip wget git sox gfortran; do
for f in make automake autoconf patch grep bzip2 gzip unzip wget git sox; do
if ! have $f; then
echo "$0: $f is not installed."
add_packages $f
fi
done

if ! have gfortran; then
echo "$0: gfortran is not installed"
add_packages gcc-gfortran gfortran
fi

if ! have libtoolize && ! have glibtoolize; then
echo "$0: neither libtoolize nor glibtoolize is installed"
add_packages libtool
Expand All @@ -90,7 +95,7 @@ fi
pythonok=true
if ! have python2.7; then
echo "$0: python2.7 is not installed"
add_packages python2.7
add_packages python27 python2.7
pythonok=false
fi

Expand Down

0 comments on commit 38c3a8b

Please sign in to comment.