• Issue with Linux installation shell script

Seems like the file that is on the website is not a shell script but looks like an html file. I also downloaded the file using ftp and took a look at the file leading to my conclusion that it is not a bash script…

The installation fails with the following error (both with the sudo wget call as well as running the downloaded bash script) :

bash: line 1: syntax error near unexpected token `<'

bash: line 1: `<!DOCTYPE html><html lang="en" data-revision="1718182317766"><head><script async="" src="https://www.googletagmanager.com/gtag/js?id=G-E3QPKPNE8N"></script><script>window.dataLayer = window.dataLayer || [];'

Hi @jnakra
What command did you use the download the script?

should be sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash

Thanks,
Jaka

    jakaskerl

    Hi Jaka,

    Thank you for responding. I copy pasted the call from Luxonis' website and received the error. As I mentioned, I then downloaded the bash script file and took a look at it. The contents of the file are not bash shell commands… I suspect that file on the website somehow got swapped…

    Jahangir..

      jnakra

      I tried looking at the file again and guess what the file is now indeed a bash shell script! I was able to install the software. Thanks to whoever it was that put the correct file back in.

      Jahangir..