nasm/yasm not found or too old. Use --disable-x86asm for a crippled build. If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "ffbuild/config.log" produced by configure as this will help solve the problem.
时间: 2024-03-09 15:51:47 浏览: 532
这个错误提示表明你的编译环境缺少或者版本过低,需要安装或更新 nasm 或 yasm。nasm 和 yasm 分别是两个汇编编译器,用于编译一些 x86 架构的汇编代码。
你可以按照以下步骤来安装 nasm 或 yasm:
1. 检查你的系统是否已经安装了 nasm 或 yasm。你可以通过在命令行终端中输入以下命令来检查:
```
nasm -v
yasm --version
```
如果这些命令无法正常执行或者提示找不到命令,说明你需要安装相应的汇编编译器。
2. 如果你使用的是 Ubuntu 或 Debian 等 Linux 发行版,可以通过以下命令来安装:
```
sudo apt-get install nasm yasm
```
如果你使用的是其他 Linux 发行版或者操作系统,可以通过相应的包管理器或者官方网站来下载并安装 nasm 或 yasm。
3. 安装完成后,重新运行 FFmpeg 的 configure 脚本,并确保 nasm 或 yasm 被正确地检测到。如果你仍然遇到问题,可以查看 "ffbuild/config.log" 文件,里面包含了详细的编译日志和错误信息,帮助你找出具体的问题所在。
如果你不需要使用 x86 汇编代码,也可以添加 `--disable-x86asm` 参数来禁用这个功能,从而避免这个错误。不过,这会导致编译出的 FFmpeg 版本缺少一些优化,性能可能会受到影响。
相关问题
nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
这个错误通常意味着编译器找不到 nasm 或 yasm 这两个汇编语言编译器,或者版本过旧。你可以尝试更新这两个编译器到最新版本,或者在编译时加上 `--disable-x86asm` 选项来跳过使用这两个编译器的步骤,但这可能会导致编译出来的程序功能不完整。如果你使用的是 Linux,可以使用以下命令安装 nasm 和 yasm:
```
sudo apt-get install nasm yasm
```
如果你使用的是 macOS,则可以使用 Homebrew 安装:
```
brew install nasm yasm
```
如果你使用的是 Windows,则可以从官网下载安装包安装:
- nasm: https://www.nasm.us/pub/nasm/releasebuilds/?C=M&O=D
- yasm: https://yasm.tortall.net/Download.html
报错信息nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.
这个报错信息意味着你的系统缺少 nasm 或 yasm,或者它们的版本过旧。nasm 和 yasm 是汇编语言编译器,通常用于构建一些需要汇编优化的软件。解决这个问题的方法是安装 nasm 或 yasm,或者更新它们的版本。你可以尝试以下步骤来解决这个问题:
1. 首先,尝试安装 nasm 或 yasm。你可以使用包管理器来安装它们,比如在 Ubuntu 上可以使用以下命令安装 nasm:
```
sudo apt-get install nasm
```
如果你使用的是其他 Linux 发行版或操作系统,可以根据对应的包管理器进行安装。
2. 如果安装 nasm 或 yasm 后仍然报错,可能是因为你的系统中已经安装了旧版本的 nasm 或 yasm。在这种情况下,你可以尝试更新它们的版本。你可以从官方网站下载最新版本的 nasm 或 yasm,并按照其提供的安装说明进行安装。
3. 如果你不需要使用汇编优化,也可以通过在配置时使用 `--disable-x86asm` 参数来禁用汇编优化,如下所示:
```
./configure --disable-x86asm
```
请根据你的具体情况选择适合的解决方法,并注意按照相应的步骤进行操作。希望能帮到你!
阅读全文
相关推荐














