Skip to content

Add openSUSE dependencies #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 50 additions & 4 deletions install-dependencies-linux
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,48 @@ install_redhat()
echo "Done..."
}

install_opensuse()
{
echo "NOTE: Make sure you have done apt-get update and apt-get upgrade prior to running this script."
echo "Installing openSUSE/SLE/etc dependencies"
echo "-------"

sudo zypper update -y

packages=(
gcc
gcc-objc
clang
libjpeg62-devel
libturbojpeg0
libtiff-devel
libpng-devel
libicns-devel
ImageMagick-devel
libxml2-devel
libxslt-devel
gnutls-devel
libffi-devel
libicu-devel
cairo-devel
libXft-devel
avahi-devel
flite-devel
libXt-devel
portaudio-devel
wmaker
make
cmake
pocketsphinx
pocketsphinx-devel
)

sudo zypper install "${packages[@]}"

echo "-------"
echo "Done..."
}

get_system()
{
if [ -e /etc/os-release ]; then
Expand All @@ -113,10 +155,14 @@ if [ "$?" == "0" ]; then
else
which yum
if [ "$?" == "0" ]; then
install_redhat
install_redhat
else
echo "Please report this to [email protected]."
echo "Your linux os ${ID} is currently unsupported."
fi
which zypper
if [ "$?" == "0" ]; then
install_opensuse
else
echo "Please report this to [email protected]."
echo "Your linux os ${ID} is currently unsupported."
fi
fi