Closed selfagency closed 6 years ago
Did you made the binary executable ?
You can do this with sudo chmod a+x /usr/local/bin/sysget
Hope it helps
Greetings Emil
as shown in the first line of output above, yes, that command is the third in the sequence. as the error message stipulates: "The file '/usr/local/bin/sysget' is marked as an executable but could not be run by the operating system."
I think the problem is that the offical provided binary is compiled under Linux and not macOS (I don't have a Mac).
Can you try to compile it on your own ?
It is not that hard
Download the stable source code at the release page
Then unzip the zip file
Open a terminal in the src/ folder an do:
make && make install
Then you should be able to use sysget
that worked, with one caveat. see the warning below:
➜ make; sudo make install
g++ -std=c++11 -c main.cpp
g++ -std=c++11 -c packagemanager.hpp packagemanager.cpp
g++ -std=c++11 -c utils.hpp utils.cpp
utils.cpp:32:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
g++ -std=c++11 -o sysget.o main.o packagemanager.o utils.o
cp sysget.o /usr/local/bin/sysget
I've just patched this out. Can you try it again but this time do it with the master branch instead of v1.2.1 ? This time it shouldn't give any warnings. Greetings Emil
EDIT: Travis also said that there wasn't any warning so you don't need to re-compile, a little bit embarrassing that I didn't saw this earlier
Finally let's draw this conclusion:
Provide binaries for macOS
Read Travis logs for macOS too
EDIT: I have also updated the release page
Seems to install fine in Mac OS Mojave but when you go to run it, it throws an error saying it's not executable. Tried installing via fish and bash with the same result.