Raspbian Buster Lite (Version:September 2019)
には入っていなかったので以下のようにしてキメた。
CLIのインストール
sudo apt install wiringpi
これでインストールされるのは2.50
python3 バインディング
sudo apt install python3-pip
sudo pip3 install wiringpi
2.52のインストール
2.50 の問題として、RaspberryPi 4 で動作しないらしい。解決するには 2.52 にする必要がある。
2.52にするための方法:
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/