我正在尝试使用DPKG安装Vernemq MQTT Broker。当我尝试以下命令时,我会收到此错误:
命令: sudo dpkg -i vernemq_<%= latest_version() %>-1_amd64.deb
错误:
dpkg: warning: '/opt/local/bin/gnutar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
如果我做echo $PATH
,我正在获取所有这些路径信息:
/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/go/bin:/Users/username/Library/Android/sdk:/Users/username/Library/Android/sdk/platform-tools:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home:/opt/local/bin/gnutar
请建议我如何解决此错误
您可以在OS X上使用Vernemq。唯一的是您必须自己构建它。
请参阅此https://github.com/vernemq/vernemq/wiki/building-vernemq-on-os-x-让我知道,以防万一这不起作用。