Since terminal can't find it anyways, I would assume it's safe to move, but I'm not sure how that would affect other files that either rely on ffmpeg install path if they do. FWIW I used
./configure --prefix=/usr/local/bin --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
to configure the package, then sudo make install
in a separate terminal on accident, although I don't think that should make a difference. I had also removed an older ffmpeg after sudo make install
but that was a repo package installed in /usr.
sudo make install
in a different terminal, and therefore possibly in a different directory, did it actually execute properly? Or did you getmake: *** No rule to make target 'install'. Stop.
meaning nothing happened? Isffmpeg
actually in/usr/local/bin
? If no, then yoursudo make install
probably didn't do anything as mentioned before. Also, why and where do you want to move it? – llogan Jan 22 '19 at 18:39/usr/local/bin
is in the vanilla UbuntuPATH
, so you don't need to add this directory to thePATH
. Only reason I can think of that terminal does not find it is if it did not actually install to/usr/local/bin
, or if you are using the same terminal session that previously executed the repoffmpeg
, then installed the compiledffmpeg
, but the hash index was not updated. See output ofhash
. Should not show/usr/bin/ffmpeg
but should show/usr/local/bin/ffmpeg
. If not, then runhash -d ffmpeg
and try running again. – llogan Jan 22 '19 at 18:49sudo make install
would use the configuration in which--prefix=/usr/local/bin
was defined. The thing I'm having trouble finding information on is movingffmpeg
from/usr/local/bin/bin
to/usr/local/bin
because I am assumingffmpeg
being nested in a folder is causing an issue. By the way,hash
output:1 /bin/ps
and the command didn't findffmpeg
. – avisitoritseems Jan 23 '19 at 00:55/bin
! It won't execute like that. Just move the binary from/usr/local/bin/bin
to/usr/local/bin
. Not sure why it installed like that: it should have respected your--prefix
: I have never seen this odd behavior. Also, it should have installed to/usr/local/bin
if you omitted--prefix
. The different terminal would have failed if it spawned to~/
and the current directory was not your ffmpeg source directory, but that appears not to be the case. – llogan Jan 23 '19 at 18:41