WiringPi is PRE-INSTALLED with standard Raspbian systems. Please DO NOT try to follow any installation instructions you may be given anywhere else. THIS PAGE is the definitive and proper way to do it.

Also note: WiringPi is developed and tested on a Raspberry Pi ONLY. It is for C and RTB BASIC programs on. If you are trying to install it on anything else, then good luck.

is all you need.

WiringPi is maintained under GIT for ease of change tracking, however there is a Plan B if youre unable to use GIT for whatever reasons (usually your firewall will be blocking you, so do check that first!)

Note: wiringPi is NOT hosted on Github. There are many forks that you may find there, but they are not the original version maintained by myself.

To view the wiringPi sources, then go to:

https://git.drogon.net/

and select the wiringPi link.

First check that wiringPi is not already installed. In a terminal, run:

If you get something, then you have it already installed. The next step is to work out if its installed via a standard package or from source. If you installed it from source, then you know what youre doing carry on but if its installed as a package, you will need to remove the package first. To do this:

Then carry on.

If you do not have GIT installed, then under any of the Debian releases (e.g. Raspbian), you can install it with:

If you get any errors here, make sure your Pi is up to date with the latest versions of Raspbian: (this is a good idea to do regularly, anyway)

To obtain WiringPi using GIT:

If you have already used the clone operation for the first time, then

Will fetch an updated version then you can re-run the build script below.

To build/install there is a new simplified script:

The new build script will compile and install it all for you it does use the sudo command at one point, so you may wish to inspect the script before running it.

Click on this URL: (it should open in a new page)

https://git.drogon.net/?p=wiringPi;a=summary

Then look for the link marked snapshot at the right-hand side. You want to click on the top one.

This will download a tar.gz file with a name like wiringPi-98bcb20.tar.gz. Note that the numbers and letters after wiringPi (98bcb20 in this case) will probably be different theyre a unique identifier for each release.

You then need to do this to install:

Note that the actual filename will be different you will have to check the name and adjust accordingly.

run the gpio command to check the installation:

That should give you some confidence that its working OK.

WiringPi is released under the GNU Lesser Public License version 3.

See the article here:
Raspberry Pi | Wiring | Download & Install | Wiring Pi

Related Posts
December 14, 2022 at 12:04 am by Mr HomeBuilder
Category: Wiring Installation