Skip to content

Instantly share code, notes, and snippets.

@elken
Last active December 31, 2015 02:09
Show Gist options
  • Select an option

  • Save elken/7919269 to your computer and use it in GitHub Desktop.

Select an option

Save elken/7919269 to your computer and use it in GitHub Desktop.
# ========================================= Dependencies: libraries and binaries
# RVM requirements. See:
# https://github.com/wayneeseguin/rvm/blob/master/scripts/requirements
for package in gcc gcc-multilib make glibc openssl readline curl git zlib libyaml sqlite libxml2 libxslt autoconf ncurses automake libtool; do
echo -n "Searching for: $package..."
if ( pacman -Q $package >/dev/null ); then
echo -e " \e[32;40mfound\e[0m"
else
CHECK_PASSED=0
PACKAGE_LIST=("${PACKAGE_LIST[@]} $package")
fi
done
# Do we have all the binaries and libraries?
if [[ $CHECK_PASSED -eq 0 ]]; then
echo -e "\n\n\e[31mSome required packages were missing, please try installing them with: \e[0m"
echo -e " pacman -Syy ${PACKAGE_LIST[@]}"
exit 1
fi
# ========================================================================= RVM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment