编译成功,打包失败,新人求助,求解答

EricdeMacBook-Pro:demo eric$ sudo chmod 777 /opt/theos/bin/dpkg-deb
EricdeMacBook-Pro:demo eric$ make package

Making all for tweak Demo…
make[2]: Nothing to be done for internal-library-compile'. Making stage for tweak Demo… /opt/theos/bin/dpkg-deb: line 1: e: command not found /opt/theos/bin/dpkg-deb: line 2: use: command not found /opt/theos/bin/dpkg-deb: line 3: use: command not found /opt/theos/bin/dpkg-deb: line 4: use: command not found /opt/theos/bin/dpkg-deb: line 5: use: command not found /opt/theos/bin/dpkg-deb: line 6: use: command not found /opt/theos/bin/dpkg-deb: line 7: use: command not found /opt/theos/bin/dpkg-deb: line 8: use: command not found /opt/theos/bin/dpkg-deb: line 9: use: command not found /opt/theos/bin/dpkg-deb: line 10: use: command not found /opt/theos/bin/dpkg-deb: line 12: package: command not found /opt/theos/bin/dpkg-deb: line 13: use: command not found /opt/theos/bin/dpkg-deb: line 14: sub: command not found /opt/theos/bin/dpkg-deb: line 15: my: command not found /opt/theos/bin/dpkg-deb: line 16: syntax error near unexpected token (’
/opt/theos/bin/dpkg-deb: line 16: ` my $self = Archive::Tar::File->new(@_);’
make: *** [internal-package] Error 2

sudo chmod +x ?

他的 sudo chmod 777 和 sudo chmod +rwx 是一样的。
我这边安装dpkg 是用的 $ brew install dpkg

有可能是 /opt/theos/bin/dpkg-deb 内容不正确吗,提示命令没有识别,还是没有声明好对应的命令变量

我觉得是 /opt/theos/bin/这个目录没添加到环境变量里 或者MAKEFILE没写好