FFmpeg -bash: ffmpeg: 找不到命令

FFmpeg -bash: ffmpeg: command not found

好的,所以我在互联网上走来走去,试图找出我做错了什么……但我却一头雾水。 我基本上是按照此处的说明在我的 CENTOS 6.6 专用服务器上安装 FFmpeghttps://trac.ffmpeg.org/wiki/CompilationGuide/Centos

整个过程似乎一切都很顺利。全部完成后,我输入 "ffmpeg" 回车并继续收到这个极其丑陋的错误:

-bash: -bash:: command not found

我不是一个 shell 人,但今天整天都在使用它,我可以说这意味着它没有正确安装。所以,我尝试重新安装它,它告诉我所有的包现在都已经存在了……。这是一份副本,如果我在做什么和我得到什么:

root@server1 [~]# ffmpeg -version
-bash: ffmpeg: command not found

root@server1 [~]# yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
Loaded plugins: fastestmirror, priorities, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.mirror.ndchost.com
 * extras: centos-distro.cavecreek.net
 * updates: mirrors.easynews.com
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package gcc-4.4.7-11.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-11.el6.x86_64 already installed and latest version
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package libtool-2.2.6-15.5.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package nasm-2.07-7.el6.x86_64 already installed and latest version
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version
Nothing to do

非常感谢任何想法或帮助!

好的,仔细一看,发现有错误

Unable to create and execute files in /tmp.  Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.

所以,我刚刚制作了 /tmp 目录和 运行 这个:

export TMPDIR=$HOME/tmp

然后运行安装命令!