配置 "seed 4-Channel 16-Bit ADC for Raspberry Pi (ADS1115)" 时如何修复 "sudo: ./install.sh: command not found" 错误?

How to fix "sudo: ./install.sh: command not found" error when configuring "seed 4-Channel 16-Bit ADC for Raspberry Pi (ADS1115)"?

我正在使用安装了 Raspbian Stretch 的 Raspberry Pi 3 B,并尝试按照教程 http://wiki.seeedstudio.com/4-Channel_16-Bit_ADC_for_Raspberry_Pi-ADS1115/ 安装标题为 ADC 的帽子。但是我一直卡在 when 运行 命令 "sudo ./install.sh -u adc_ads1115 " 处。我得到的错误是:

sudo: ./install.sh: 找不到命令

我也启用了 Raspberry Pi 的 I2C。

谢谢。

该文件很可能缺少执行权限。要添加所需的权限,请发出 chmod 命令:chmod a+x install.sh 表示“为所有用户添加 +x(执行权限)(a))

您遵循的说明已过时。该项目的自述文件建议 this page 其说明另外阅读:

# open tools directory
cd tools

# Install driver
sudo ./install.sh -u adc_ads1115

# sync all setting
sync

install.shpi-hats/tools/install.sh 中,因此您必须 cd 到 pi-hats/tools 而不仅仅是 pi-hats 基本目录。