Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux automated_install.sh:未找到命令_Linux_Github_Raspberry Pi3_Alexa - Fatal编程技术网

Linux automated_install.sh:未找到命令

Linux automated_install.sh:未找到命令,linux,github,raspberry-pi3,alexa,Linux,Github,Raspberry Pi3,Alexa,我正在使用raspberrypi 3b+和博客创建alexa-https://predictabledesigns.com/how-to-turn-your-raspberry-pi-into-an-amazon-echo-dot-using-alexa/ 博客中提到的github已经不存在了,所以我正在使用git repo- 在输入客户端ID和所有内容后运行命令“sudo~/alexa avs sample app/automated_install.sh”时,出现以下错误: sudo:/ho

我正在使用raspberrypi 3b+和博客创建alexa-https://predictabledesigns.com/how-to-turn-your-raspberry-pi-into-an-amazon-echo-dot-using-alexa/ 博客中提到的github已经不存在了,所以我正在使用git repo-

在输入客户端ID和所有内容后运行命令“sudo~/alexa avs sample app/automated_install.sh”时,出现以下错误:

sudo:/home/pi/alexa avs sample app/automated_install.sh:未找到命令


我对这件事很陌生。有人能帮我一下吗?

该博客的作者John Teel建议执行“sudo chmod-R 777/your installation directory”,但现在没有出现错误命令not found。但是,当我在sudo chmod-R 777/home/pi之后执行sudo~/alexa avs sample app/automated_install.sh时,我得到以下错误:

collect2: error: ld returned 1 exit status

make[2]: *** [CMakeFiles/wakeWordAgentTest.dir/build.make:327: wakeWordAgentTest] Error 1

make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/wakeWordAgentTest.dir/all] Error 2

make: *** [Makefile:84: all] Error 2
我是一名工科学生,对Linux很陌生,你能帮我想出下一步吗

提前感谢:)

  • 确保实际安装了/bin/bash:)

  • 确保.sh文件是Unix格式(仅限NL)而不是DOS(CR/NL)格式:

    $dos2unix automated_install.sh

  • 会-apt得到-重新安装bash-work吗?