Sudo: ./bin/pleroma_ctl: command not found

Hello All!

im running in to an issue with OPT setup on fedora. all goes good until i have to run the generator:

[root@randyyeuserver akkoma]# sudo -Hu akkoma ./bin/pleroma_ctl instance gen --output /etc/akkoma/config.exs --output-psql /tmp/setup_db.psql

sudo: ./bin/pleroma_ctl: command not found

i double checked it but i dont see what went wrong, by following the guide.

Any advice please :sunny:

Maybe try making a login shell to update all the environment variables

What guide are you following? I think “command not found” can be that it doesn’t find the file, or that it doesn’t find a library required for the file. When I check the OTP install guides, I see Fedora isn’t in the table of supported flavours, Installing on Linux using OTP releases - Akkoma Documentation

There’s a separate one for RedHat (based) distro’s, but it also says you’ll have to build your own and installing from source is generally the simpler option. Installing on RedHat using OTP releases - Akkoma Documentation

The “.” in the command refers to /opt/akkoma if you kept the defaults, so you might have to cd there before running the command or replace the “.” with the /opt/akkoma in the command.
Updating the path as advised before would also work.