Question

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

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!

Best,

Bobby