如何在为Raspberry Pi(ADS1115)配置“种子4通道16位ADC”时修复“sudo:./ install.sh:command not found”错误?

问题描述 投票:0回答:2

我正在使用安装了Raspbian Stretch的Raspberry Pi 3 B并尝试安装按照教程http://wiki.seeedstudio.com/4-Channel_16-Bit_ADC_for_Raspberry_Pi-ADS1115/标题的ADC Hat。但是在运行命令“sudo ./install.sh -u adc_ads1115”时我一直陷入困境。我得到的错误是:

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

我也启用了Raspberry Pi的I2C。

谢谢。

bash raspberry-pi3 adc
2个回答
0
投票

您所关注的说明已过期。该项目的自述文件建议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基目录。


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.