prerequired.sh 690 B

12345678910111213141516171819
  1. #!/bin/bash
  2. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/neuware/lib64/
  3. if grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
  4. echo "Ubuntu system"
  5. apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
  6. python3-dev \
  7. python3-pip && \
  8. apt-get clean && \
  9. pip3 install --upgrade pip && \
  10. pip3 install -r requirements.txt
  11. elif grep -Eqii "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
  12. echo "CentOS system"
  13. yum update -y && yum install -y python36 python36-libs python36-devel python36-pip && \
  14. yum clean all && \
  15. pip3 install --upgrade pip && \
  16. pip3 install -r requirements.txt
  17. fi