How can I make sure something is on path?

I have been having an issue where FFmpeg is not detected by another module and asks for it to be added to PATH. I have tried to do this but the module is always removed from path immediately afterward. I have also tried to use the environment variables but this has no effect on the bug either. Is there any other way to make sure that a module is always accessible?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
August 19, 2022


Is FFmpeg installed on a Droplet? If this is the case, depending on where FFmpeg is installed at, you can add it to your path by running the following:

export PATH="/path/to/FFmpeg-bin:$PATH"

Make sure to change the /path/to/FFmpeg-bin so that it matches the location where you’ve installed FFmpeg at. You can also add that line to your ~/.bashrc file so that it is executed every time you login to your server.

Also, this might depend on how you invoke the ffpmeg binary, are you running it directly or are you invoking it via a script?

Hope that this helps!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up