gpio:command not found
时间: 2023-09-05 12:08:49 浏览: 202
mruby-fm3gpio:FM3 GPIO类
当你在Raspbian-Lite系统中使用`gpio`指令时出现`command not found`的错误提示,这通常是因为你的系统中没有安装相关的GPIO库和命令行工具。
解决这个问题的方法是通过安装wiringPi库。你可以使用以下步骤来安装wiringPi库并解决问题:
1. 首先,在终端中输入以下命令下载wiringPi库的最新版本:
```bash
wget https://project-downloads.drogon.net/wiringpi-latest.deb
```
2. 然后,使用以下命令将下载的deb文件安装到系统中:
```bash
sudo dpkg -i wiringpi-latest.deb
```
3. 安装完成后,可以使用以下命令检查是否成功安装了wiringPi库:
```bash
gpio -v
```
如果输出显示了wiringPi的版本信息,那么说明安装成功了。现在你应该可以正常使用`gpio`指令了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [树莓派查看GPIO当前状态 方法:安装GPIO库接口wiringpi](https://blog.csdn.net/qq_16005627/article/details/126621511)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [树莓派bash: gpio:未找到命令](https://blog.csdn.net/weixin_46235937/article/details/128721714)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文