MinecraftServerControl / mscs

Powerful command-line control for UNIX and Linux powered Minecraft servers
https://minecraftservercontrol.github.io
BSD 2-Clause "Simplified" License
479 stars 61 forks source link

sudo make install not working on m1 macbook air #300

Closed PorterNilsson closed 2 years ago

PorterNilsson commented 2 years ago

From googling around, I think that adding the user is not working correctly for MacOS. I have the latest macbook air with the m1 chip, and I get this message after cloning the repository and trying to do "sudo make install"

Can anyone help me out with this, and explain to me a bit better why I want to do this, and how running the script will work if I succeed?

Screen Shot 2021-10-21 at 1 44 01 PM
sandain commented 2 years ago

Hi @PorterNilsson. I'm not sure we have ever had a Mac user submit a bug report here. You might want to do the manual installation method, with Mac commands replacing the Linux commands.

In this case, it looks like you can use the following command to create the user:

sudo dscl / -create /Users/minecraft

I'm not sure how you setup launchd to start the script on bootup, since you won't be able to use the systemd service file. The script also supports SysV-style usage, and has common start/stop/restart commands, so that might help.

In general the script should work for you. If you experience any issues, please let us know and we can try to help you work around it. If you want to document the steps you need to take that are different from the manual installation section, that would be helpful for future users.

Good luck!

sandain commented 2 years ago

RE: "Can anyone help me out with this, and explain to me a bit better why I want to do this, and how running the script will work if I succeed?"

The make install simply installs the MSCS script by doing the following: