Browse Source

Merge pull request #104 from reynico/php7-stretch

PHP/libgfortran: Support Debian Stretch
master
Nico 3 years ago
committed by GitHub
parent
commit
48bbc71c59
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions
  1. +15
    -2
      install.sh

+ 15
- 2
install.sh View File

@@ -40,6 +40,14 @@ fi

### Install required packages
log_running "Installing required packages..."

raspbian_version="$(lsb_release -c --short)"

if [ "$raspbian_version" == "stretch" ]; then
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php7.list
fi

sudo apt update -yq
sudo apt install -yq predict \
python-setuptools \
@@ -62,8 +70,13 @@ sudo apt install -yq predict \
socat \
php7.2-fpm \
php7.2-sqlite \
sqlite3 \
libgfortran5
sqlite3

if [ "$raspbian_version" == "stretch" ]; then
sudo apt install -yq libgfortran-5-dev
else
sudo apt install -yq libgfortran5
fi

sudo pip3 install numpy ephem tweepy Pillow
log_done "Packages installed"


Loading…
Cancel
Save