原文地址:http://wiringpi.com/download-and-install/

Download and Install

WiringPi is maintained under GIT for ease of change tracking, however there is a Plan B if you’re 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.

To install…

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

$ gpio -v

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

$ sudo apt-get purge wiringpi
$ hash -r

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:

$ sudo apt-get install git-core

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)

$ sudo apt-get update
$ sudo apt-get upgrade

To obtain WiringPi using GIT:

$ cd
$ git clone git://git.drogon.net/wiringPi

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

$ cd ~/wiringPi
$ git pull origin

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

To build/install there is a new simplified script:

$ cd ~/wiringPi
$ ./build

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.


Plan B

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 – they’re a unique identifier for each release.

You then need to do this to install:

$ cd
$ tar xfz wiringPi-98bcb20.tar.gz
$ cd wiringPi-98bcb20
$ ./build

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


Test wiringPi’s installation

run the gpio command to check the installation:

$ gpio -v
$ gpio readall

That should give you some confidence that it’s working OK.

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

WiringPi 下载与安装相关推荐

  1. 【Orangepi Zero2 全志H616】wiringPi外设SDK安装

    Orangepi Zero2 全志H616开发板 一.网络配置 命令扫描周围的WIFI热点 nmcli dev wifi 命令接入网络 nmcli dev wifi connect xxxxxxxx ...

  2. 树莓派学习笔记——wiringPi简介、安装和管脚说明

    1.WiringPi简介 WiringPi是应用于树莓派平台的GPIO控制库函数,WiringPi遵守GUN Lv3.wiringPi使用C或者C++开发并且可以被其他语言包转,例如python.ru ...

  3. Orangepi Zero2——系统启动及wiringPi外设SDK安装

    文章目录 平台介绍 刷机和系统启动 工具 登录 串口登录 修改登录密码: 网络配置 串口登录下修改内核日志输出级别 SSH登录开发板 基于官方外设开发 wiringPi外设SDK安装 平台介绍 配置图 ...

  4. MySQL下载与安装教程以及环境变量配置

    MySQL下载 1 搜索mysql 选择mysql downloads 如下 2 点击滑动到底部选择社区版本(免费) 如下 3 选择Community Server 如下 4 选择对应的版本下载 我选 ...

  5. java jdk 1.8 安装_下载、安装、配置 java jdk1.8

    近期配置react native的开发环境,所以就从配置环境开始.rn的环境配置有那么几项,其中重要的一个就是java jdk(Java Development Kit 的缩写),那么以下就是下载.安 ...

  6. vs安装一直在提取文件_Visual Studio 2019下载及安装教程

    宸1分钟前 这可是我珍藏多年的资源啊. Visual Studio 2019 Microsoft Visual Studio(简称VS)是美国微软公司的开发工具包系列产品.是目前最流行的Windows ...

  7. python安装包_迈出Python学习第一步:Python开发环境的下载与安装

    所谓"磨刀不误砍柴工"."工欲善其事,必先利其器",都在告诉我们一个道理:要做好一个事情,事先做好充分的准备工作是非常重要的.所以在我们正式学习用Python编 ...

  8. oracle怎么下载安装,Oracle数据库的下载和安装方法

    一.Oracle数据的下载与安装: 我这里是Oracle Database 11g Release 2版本的. 1.百度云链接: 链接:https://pan.baidu.com/s/1QYvBVS3 ...

  9. 我的世界php安装,我的世界Linux搭建网页后台Multicraft下载与安装

    小编为大家带来了<我的世界>Linux搭建网页后台Multicraft下载与安装,首先下载Multicraft Linux版,下载好了以后请玩家自己看着下面的教程来安装. 64位:http ...

最新文章

  1. 【Android 应用开发】BluetoothDevice详解
  2. 【ThinkPHP系列篇】Thinkphp框架的CURD操作(三)
  3. python网页登录钉钉_django 钉钉扫码登录
  4. 软件黑盒测试的意思,请问黑盒测试是什么意思?
  5. 1205: 正序数(归并排序统计正序数)
  6. java action 上传文件_Struts2实现单文件或多文件上传功能
  7. P3620-[APIO/CTSC2007]数据备份【贪心,堆,链表】
  8. shell脚本--使用for循环逐行访问txt文件
  9. @Transactional 实现原理
  10. 计算机应用 格式,《计算机应用》投稿格式.pdf
  11. UVA156 Ananagrams【map+vector】
  12. 在windows生产环境搭建sphinx的注意事项
  13. 微信小程序——视图层
  14. iOS打包失败的可能情况
  15. 嘴里又苦又干,还有异味
  16. 分布式应用之分布式缓存
  17. 人脸识别活体检测sdk 百度 python_Python百度人脸识别SDK的使用
  18. linux系统下载18.04,在Ubuntu 18.04系统中下载安装Persepolis Download Manager
  19. 幼儿园手工之自制时钟_幼儿园手工之自制时钟,提高孩子良好的时间观念
  20. matlab高程数据点,matlab 对tif数据高程图的处理分析

热门文章

  1. 朗科U208优盘制作启动盘的方法
  2. P2P、P2C 、O2O 、B2C、B2B、 C2C的概念解析
  3. 紧致卷积网络设计——Shift卷积算子
  4. waterfox同步书签
  5. 怎么用dw做php网页模板,网页模板怎么使用
  6. 在HDWiki中插入word文档的方法
  7. 计算机网络原理之应用层
  8. 【解决】ECSHOP info: Can‘t Connect MySQL Server(localhost)
  9. Python 画樱花表白
  10. 学习 | 播音主持怎样发出美妙的声音