Skip to content

Commit

Permalink
update missing dependencies (#151)
Browse files Browse the repository at this point in the history
make and gcc is required for building some code at installation time.
See also comment above.
  • Loading branch information
erickeller authored and tvoverbeek committed Jan 4, 2018
1 parent 01c7755 commit d86f65a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,11 @@ You can enable the SPI by typing `sudo raspi-config` at the command line and the
#### Install Python API (best to run all of these commands as root using sudo)
```bash
# Install dependencies
sudo apt-get install git -y
sudo apt-get install bc i2c-tools -y
sudo apt-get install fonts-freefont-ttf -y
sudo apt-get install git bc i2c-tools fonts-freefont-ttf whiptail make gcc -y
# For Python 2
sudo apt-get install python-pil -y
sudo apt-get install python-smbus -y
sudo apt-get install python-dateutil -y
sudo apt-get install python-pil python-smbus python-dateutil -y
# For Python 3
sudo apt-get install python3-pil -y
sudo apt-get install python3-smbus -y
sudo apt-get install python3-dateutil -y
sudo apt-get install python3-pil python3-smbus python3-dateutil -y

git clone --depth=1 https://github.com/PiSupply/PaPiRus.git
cd PaPiRus
Expand Down
12 changes: 3 additions & 9 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@ if [[ "$P23" == *"3"* ]]; then
fi

# Install required packages
apt-get install git -y
apt-get install git bc i2c-tools fonts-freefont-ttf whiptail make gcc -y
if [ $PY2 -eq 1 ]; then
apt-get install python-pil -y
apt-get install python-smbus -y
apt-get install python-dateutil -y
apt-get install python-pil python-smbus python-dateutil -y
fi
if [ $PY3 -eq 1 ]; then
apt-get install python3-pil -y
apt-get install python3-smbus -y
apt-get install python3-dateutil -y
apt-get install python3-pil python3-smbus python3-dateutil -y
fi
apt-get install bc i2c-tools -y
apt-get install fonts-freefont-ttf -y

# Enable SPI and I2C
raspi-config nonint do_spi 0
Expand Down

0 comments on commit d86f65a

Please sign in to comment.