macos 如何安装气体预处理器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5056600/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 07:43:52  来源:igfitidea点击:

How to install gas-preprocessor?

perlmacosffmpeg

提问by apptunes

sorry for the stupid question. I'd like to install the gas-preprocessor (https://github.com/yuvi/gas-preprocessor) but I just don't get how to do this. What do I have to do with the .pl-file? How do I install the script? Thanks in advance, Alex

抱歉这个愚蠢的问题。我想安装气体预处理器(https://github.com/yuvi/gas-preprocessor),但我不知道如何执行此操作。我与 .pl 文件有什么关系?如何安装脚本?提前致谢,亚历克斯

回答by xySVerma

Well i had the same problem "GNU assembler not found, install gas-preprocessor"

好吧,我遇到了同样的问题“找不到 GNU 汇编程序,请安装气体预处理器”

Later it turned out that i didnt had the correct file because i copy pasted the code in text editor

后来发现我没有正确的文件,因为我在文本编辑器中复制粘贴了代码

The correct way to do it is:

正确的做法是:

(a) Use the download button at https://github.com/yuvi/gas-preprocessor

(a) 使用https://github.com/yuvi/gas-preprocessor 上的下载按钮

(b) Extract the archive

(b) 提取档案

(c) Remove any other file by same name which you have downloaded and you were experimenting with.

(c) 删除您下载并尝试使用的任何其他同名文件。

(d) copy the file gas-preprocessor.pl at /usr/local/bin

(d) 将文件 gas-preprocessor.pl 复制到 /usr/local/bin

(e) Set permission of the file to Read and write by all (777) if a -> d doesn't work

(e) 如果 a -> d 不起作用,则将文件的权限设置为所有人读取和写入 (777)

I figured out this problem when i read config.log during compilation of ffmpeg

我在 ffmpeg 编译期间读取 config.log 时发现了这个问题

回答by Nitesh Borad

Run this command to install gas-preprocessor:

运行以下命令安装气体预处理器:

wget --no-check-certificate https://raw.githubusercontent.com/FFmpeg/gas-preprocessor/master/gas-preprocessor.pl && \ chmod +x gas-preprocessor.pl && \ sudo mv gas-preprocessor.pl $(which gas-preprocessor.pl)

回答by user439081

I had the same issue after following the above steps in OSX Lion. It seems that my /usr/local/bin directory was only accessible by root on my system (this path seemed to be owned by macports).

在 OSX Lion 中执行上述步骤后,我遇到了同样的问题。似乎我的 /usr/local/bin 目录只能由我系统上的 root 访问(此路径似乎归 macports 所有)。

After putting gas-preprocessor.pl in /usr/bin the configure process ran fine.

将 gas-preprocessor.pl 放入 /usr/bin 后,配置过程运行良好。