Search code examples
bashraspberry-pi3adc

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


I'm using a Raspberry Pi 3 B with Raspbian Stretch installed and trying to install the ADC Hat titled as per the tutorial http://wiki.seeedstudio.com/4-Channel_16-Bit_ADC_for_Raspberry_Pi-ADS1115/. But I keep getting stuck at when running the command "sudo ./install.sh -u adc_ads1115 ". I get the error as:

sudo: ./install.sh: command not found

I've enabled the I2C of my Raspberry Pi as well.

Thank you.


Solution

  • The instructions you are following are out of date. The project's README suggests this page whose instructions additionally read:

    # open tools directory
    cd tools
    
    # Install driver
    sudo ./install.sh -u adc_ads1115
    
    # sync all setting
    sync
    

    install.sh is in pi-hats/tools/install.sh, so you have to cd to pi-hats/tools instead of just the pi-hats base directory.