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
DevilFish303
DevilFish3037mo ago
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 bazzite
Jeng
JengOP7mo ago
yeah i am compiling it from source should i move ninja to /var/usrlocal/bin?
DevilFish303
DevilFish3037mo ago
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
Jeng
JengOP7mo ago
oh it's not even installed yet lol the ./bootstrap.sh asked me to run ninja with sudo
Jeng
JengOP7mo ago
No description
Jeng
JengOP7mo ago
No description
Jeng
JengOP7mo ago
huh
Kasher_CS
Kasher_CS7mo ago
Compile on a distrobox?
Zeglius
Zeglius7mo ago
^ 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 dependencies
Jeng
JengOP7mo ago
thanks! 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
Jeng
JengOP7mo ago
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 ...
Jeng
JengOP7mo ago
gg
Want results from more Discord servers?
Add your server