GithubHelp home page GithubHelp logo

How do you use mcrcon? about mcrcon HOT 20 CLOSED

tiiffi avatar tiiffi commented on August 17, 2024
How do you use mcrcon?

from mcrcon.

Comments (20)

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024 2

Thanks! When I type ./mcrcon into terminal it recognizes it as a command and says, "You must give password (-p password).
Try 'mcrcon -h' or 'man mcrcon' for help.".
Then I ran make install while I was still in the directory of /users/arthurmeadenew/desktop/mcrcon-master/ and it said,
arthurmeadenew@Arthur-Meade mcrcon-master % make install
ginstall -vD mcrcon /usr/local/bin/mcrcon
make: ginstall: No such file or directory
make: *** [install] Error 1
I don't know what this means. Did it install correctly?
And I haven't tried out the homebrew formula yet, I'll do that now.

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024 2

I ran make install and it worked. Thank you!!!!
Now that it's installed, to use it I just go into terminal and use ./mcrcon and then all the arguments I want, right?

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024 1

OK I typed in brew and then copied and pasted the formula you provided and at the end of the command line it said, "zsh: parse error near `end'
arthurmeadenew@Arthur-Meade mcrcon-master % ".

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024 1

Thank you very much! and thank you for helping me even though you don't have access to a real macOS. And brew install coreutils worked. Thanks!!

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024 1

Thank you! I tested it last night and it worked! rcon connected. Thank you!!

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024

Also, I don't know what "The only dependency is support for getopt() from unistd.h" means. Do I run getopt() unistd.h?

from mcrcon.

Hagb avatar Hagb commented on August 17, 2024

Hi, how did you run the Makefile?
To compile mcrcon, you need to run make command but not execute Makefile directly.

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024

I just opened the makefile. I didn't type make into terminal. How do I run the make command without executing the makefile directly?

from mcrcon.

Hagb avatar Hagb commented on August 17, 2024

To compile mcrcon, just cd to the where the source code is (for example cd /Users/arthurmeadenew/Desktop/mcrcon-master/), and then run make or cc -std=gnu99 -Wpedantic -Wall -Wextra -Os -s -o mcrcon mcrcon.c. (Refer to INSTALL.md)
Or maybe there is the binary you need in release.

from mcrcon.

Tiiffi avatar Tiiffi commented on August 17, 2024

@Arthurmeade12

You have to have developers tools installed on your system (namely gcc or clang + dev libraries and make for running the Makefile).

I am not very familiar with macOS so I don't really know what is the preferred way to install these tools (Maybe Homebrew or perhaps the tools are coming with Xcode?).

If Homebrew is familiar to you there is a formula available here: https://github.com/webhippie/homebrew-webhippie/blob/master/Formula/mcrcon.rb

For last-ditch effort you could also download very old Mac OS build from Sourceforge repository: https://sourceforge.net/projects/mcrcon/files/0.0.5/

This version is very old and I cannot guarantee it's working with any server.


I would like to provide macOS binaries too but for now I don't see any reasonable way to make binary builds without owning a macOS.

Does anyone have good ideas how to provide macOS builds?

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024

I have homebrew and clang. I tried to run what Hagb said "and then run make or cc -std=gnu99 -Wpedantic -Wall -Wextra -Os -s -o mcrcon mcrcon.c. (Refer to INSTALL.md)" and it gave me this:
Last login: Tue Sep 22 07:56:22 on ttys000
arthurmeadenew@Arthur-Meade ~ % cd /Users/arthurmeadenew/Desktop/mcrcon-master/
arthurmeadenew@Arthur-Meade mcrcon-master % cc -std=gnu99 -Wpedantic -Wall -Wextra -Os -s -o mcrcon mcrcon.c
ld: warning: option -s is obsolete and being ignored
arthurmeadenew@Arthur-Meade mcrcon-master % make
make: Nothing to be done for `all'.
arthurmeadenew@Arthur-Meade mcrcon-master %
I will try to do run the formula on the homebrew link tiifi provided.

from mcrcon.

Tiiffi avatar Tiiffi commented on August 17, 2024

Looks like it built succesfully.

You should be able to run it. Try: ./mcrcon -h

Running make install should install mcrcon to your system.

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024

Oh, and I can't test it with the server because I am not at my house, so that will have to wait.

from mcrcon.

Tiiffi avatar Tiiffi commented on August 17, 2024

@Arthurmeade12

make: ginstall: No such file or directory

Looks like you don't have ginstall installed on your system.

I think you have to install GNU coreutils to make it work: brew install coreutils

ps. It is hard to help without access to real macOS to test these things.

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024

And based on what the readme.md document says you must enclose Minecraft commands in "(example)"? (in quotes)

from mcrcon.

Tiiffi avatar Tiiffi commented on August 17, 2024

Now you should be able to run commands with mcrcon.

For example:

  • If you want to get list of users from server:

mcrcon -H server-address -p password list

  • Send multiple commands to server with 5 second delay between the commands:

mcrcon -H server-address -p password -w 5 "say Server is stopping!" save-all stop

  • Or if you want to connect in terminal mode:

mcrcon -H server-address -p password

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024

This is all great, but when I try to run the ./mcrcon -H (IP address)
it says: zsh: permission denied ./mcrcon. Thank you for all the help!!

from mcrcon.

Tiiffi avatar Tiiffi commented on August 17, 2024

For local executable (the one in your build directory) you have to set execution permissions: chmod +x mcrcon

But since you succesfully installed mcrcon you should be able to run it from anywhere just by typing mcrcon without ./ prefix.

from mcrcon.

Arthurmeade12 avatar Arthurmeade12 commented on August 17, 2024

Can I close the issue?

from mcrcon.

Tiiffi avatar Tiiffi commented on August 17, 2024

Yeah sure if the problem is solved.

from mcrcon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.