-1

After installation, i tried to start mariaDB server on macOs Big Sur(version 11.2.3) with m1 chip. Tried the following official link here but when i run the command

brew services start mariadb

then it gives me this error

Error: Invalid usage: `brew services` is supported only on macOS or Linux (with systemd)!

Any thought?

amstriker
  • 339
  • 7
  • 19

2 Answers2

1

When it runs, brew services checks for a supported system control command:

    if !Service::ServicesCli.launchctl? && !Service::ServicesCli.systemctl?
      raise UsageError,
            "`brew services` is supported only on macOS or Linux (with systemd)!"
    end

Under macOS, launchctl? checks for the presence of the launchtl command:

    # Path to launchctl binary.
    def launchctl
      @launchctl ||= which("launchctl")
    end

If this check is failing, you may need to identify whether the command is missing, or something is wrong with brew's installation.

Joe
  • 29,416
  • 12
  • 68
  • 88
-1

Probably a problem with your connection. If you still having errors, talk with network admin or switch another network connection. Please see more details here

amstriker
  • 339
  • 7
  • 19