How do I run ninja with sudo?
I've already tried moving it to /usr/bin but the system doesn't allow me to do it. Asking this because gamemode requires me to run ninja with sudo.
12 Replies
Are you compiling it yourself from source? you shouldn't need sudo for that either unless you need to run
sudo make install
, but this usually defaults to /usr/local if the devs followed the proper standard, in which case is symbolically linked to /var/usrlocal and we can write to that location on bazziteyeah i am compiling it from source
should i move ninja to /var/usrlocal/bin?
if it’s compiled already yes, however idk what order of precedence it will be, could be that game mode installed in /usr/bin is higher than in /usr/local/bin, what does your PATH look like?
also read their makefile, could be that make install already installs to /usr/local for you
oh it's not even installed yet lol
the ./bootstrap.sh asked me to run ninja with sudo
huh
Compile on a distrobox?
^
Create a distrobox container and install inside ninja and any other dependencies you might need. After that, the
make install
step can be done outside the container.
Though, you might want to try the install step in the container as well
an alternative is using brew to install the dependenciesthanks! I'll give that a try once I'm home
the distrobox works fine and i'm glad that i discovered it but i ran into this error when i do gamemoded -t
GameMode ERROR: D-Bus error: Could not call method 'QueryStatus' on 'com.feralinteractive.GameMode': The name is not activatable
i then found out that gamemode exists in dnf so i just scrapped whatever i was doing and installed it from there. i feel so dumb.
wait a minute
no way
Gamemode Install broken - Universal Blue
gamemode in my install isn't all there. There is no gamemoderun or a service file, just gamemoded.
Also, I think I'm also missing some libraries because when I try to see if an instace of gamemode is running I get:
```
gamemoded -t
: Loading config
: Running tests
ERROR: gamemode_query_status failed: dlopen failed - libgamemode.so: cannot open ...
gg