Thursday, May 2, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 5404  / 2 Years ago, sun, october 23, 2022, 5:44:28

I am installing the latest FFmpeg from
this guide:



In some places it suggests performing make install without sudo, here is a single example of several:



cd ~/ffmpeg_sources
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
PATH="$PATH:$HOME/bin" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --disable-openclcd ~/ffmpeg_sources
wget http://download.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar xjvf last_x264.tar.bz2
cd x264-snapshot*
PATH="$PATH:$HOME/bin" ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static --disable-opencl
PATH="$PATH:$HOME/bin" make
make install
make distclean


Should I being using sudo make install instead ?



My intention is to make the packages available for all users, including Apache/PHP.


More From » software-installation

 Answers
6

In your case you don't need to do a sudo make install as you will install the library in your $HOME. You have configured the build to use a prefix and bindir to install it in your $HOME.



To make the package avaiable to other programs it would be better to choose directories outside of your $HOME. Then you will need to do the make install using sudo.


[#23211] Sunday, October 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ugeeport

Total Points: 181
Total Questions: 108
Total Answers: 99

Location: El Salvador
Member since Tue, Jun 29, 2021
3 Years ago
ugeeport questions
;