在Ubuntu下安装海思sdk时,直接运行安装脚本,会有如下提示:
./sdk.unpack ./sdk.unpack: 2: ./sdk.unpack: source: not found ./sdk.unpack: 4: ./sdk.unpack: ECHO: not found ./sdk.unpack: 6: ./sdk.unpack: WARN: not found ./sdk.unpack: 7: ./sdk.unpack: WARN: not found ./sdk.unpack: 8: ./sdk.unpack: ECHO: not found ./sdk.unpack: 20: ./sdk.unpack: ECHO: not found ./sdk.unpack: 22: ./sdk.unpack: run_command_progress_float: not found ./sdk.unpack: 24: ./sdk.unpack: ECHO: not found ./sdk.unpack: 26: ./sdk.unpack: run_command_progress_float: not found ./sdk.unpack: 37: ./sdk.unpack: ECHO: not found mkdir: 已创建目录 'mpp' ./sdk.unpack: 39: ./sdk.unpack: run_command_progress_float: not found ./sdk.unpack: 42: ./sdk.unpack: ECHO: not found mkdir: 已创建目录 'drv' ./sdk.unpack: 44: ./sdk.unpack: run_command_progress_float: not found
这个问题只需要修改一下sdk.unpack.sh脚本:
把第一行的#!/bin/sh修改为#!/bin/bash即可。
再次运行: