[FFmpeg-devel] Missing sudo on make install in INSTALL.md

"zhilizhao(赵志立)" quinkblack at foxmail.com
Thu Aug 26 07:34:10 EEST 2021


> I tried try `make install` on my machine and I got:
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffprobe.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-all.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffprobe-all.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-utils.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-scaler.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-resampler.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-codecs.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-bitstream-filters.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-formats.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-protocols.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-devices.1': Permission denied
>    install: cannot create regular file '/usr/local/share/man/man1/ffmpeg-filters.1': Permission denied
>    make: *** [doc/Makefile:126: install-man] Error 1
> 
> By doing `sudo make install` it fixs the problem. User are not on root all the time.

Nope. sudo is unnecessary or unavailable on some platform. You can install it to other
directories without the need of root permission. Most importantly, sudo is a dangerous
advice for novice. On the other hand, for anyone who already know what sudo is he/she
doesn’t need such advice.

> ---
>  INSTALL.md | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/INSTALL.md b/INSTALL.md
> index 3b220bc6ff..7600fc2ce3 100644
> --- a/INSTALL.md
> +++ b/INSTALL.md
> @@ -9,7 +9,7 @@ path when launching `configure`, e.g. `/ffmpegdir/ffmpeg/configure`.
>  
>  2. Then type `make` to build FFmpeg. GNU Make 3.81 or later is required.
>  
> -3. Type `make install` to install all binaries and libraries you built.
> +3. Type `sudo make install` to install all binaries and libraries you built.
>  
>  NOTICE
>  ------
> -- 
> 2.25.1



More information about the ffmpeg-devel mailing list