Comments (20)
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.
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.
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.
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.
Thank you! I tested it last night and it worked! rcon connected. Thank you!!
from mcrcon.
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.
Hi, how did you run the Makefile?
To compile mcrcon, you need to run make
command but not execute Makefile
directly.
from mcrcon.
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.
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.
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.
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.
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.
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.
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.
And based on what the readme.md document says you must enclose Minecraft commands in "(example)"? (in quotes)
from mcrcon.
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.
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.
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.
Can I close the issue?
from mcrcon.
Yeah sure if the problem is solved.
from mcrcon.
Related Issues (20)
- showing certain console info
- ValueError: signal only works in main thread of the main interpreter
- Invalid Packet size on Fabric Server HOT 3
- 建议兼容下颜色
- Problem with syntax HOT 4
- where can i find the dependencies.. HOT 1
- Can't get mcrcon to work on Mac OSX 11.1 HOT 5
- server.properties gets reset when using mcrcon HOT 2
- Create Shortcut doesn't allow for automated launch HOT 1
- 'no password' condition needs an error code instead of success
- Compiling on windows HOT 2
- Porting source code HOT 1
- Wont Open just closes instantly HOT 1
- Can't get mcrcon to work on Windows HOT 2
- Make Command Error on Ubuntu Server 22.04 HOT 2
- connection failed HOT 1
- Change to English HOT 1
- "minecraft.service: Failed at step EXEC spawning /var/minecraft/mcrcon/mcrcon: Permission denied" HOT 3
- mcrcon commands result not displaying.
- Certain commands return no output when run from mcrcon, but work when run from console directly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mcrcon.