emqx / MQTTX

A Powerful and All-in-One MQTT 5.0 client toolbox for Desktop, CLI and WebSocket.
https://mqttx.app
Apache License 2.0
3.64k stars 428 forks source link

[Bug] mqttx-cli-macos-x64 can't run in macos Sonoma 14.2.1 #1706

Open littlerokie opened 1 week ago

littlerokie commented 1 week ago

What happened

@~$ ./mqttx-cli-macos-x64 sub -t 'hello' -h 'broke.emqx.io' -p 1883 ./mqttx-cli-macos-x64: line 1: syntax error near unexpected token newline' ./mqttx-cli-macos-x64: line 1:<?xml version="1.0" encoding="UTF-8"?>'

Environment

Intel Core i5

ysfscream commented 1 week ago

@littlerokie Thank you for your feedback.

We apologize for the inconvenience caused by the missing mqttx-cli-macos-x64 file. We have now updated the file. Please follow these steps to remove the current MQTTX CLI and reinstall it:

  1. Remove the current MQTTX CLI:

    sudo rm -rf /usr/local/bin/mqttx
  2. Download and install the updated version:

    curl -LO https://www.emqx.com/en/downloads/MQTTX/v1.10.0/mqttx-cli-macos-x64
    sudo install ./mqttx-cli-macos-x64 /usr/local/bin/mqttx

If the issue persists, please install using Homebrew:

brew install emqx/mqttx/mqttx-cli

I have tested this, and it works successfully. We apologize again for any inconvenience caused.

image