简体   繁体   English

为什么gnuplot不起作用。 可执行文件中的错误 cpu 类型

[英]Why gnuplot don't work. Bad cpu type in executable

I've installed gnuplot with Homebrew, but when i launch the gnuplot command on terminal it says: "zsh: bad CPU type in executable: gnuplot".我已经用 Homebrew 安装了 gnuplot,但是当我在终端上启动 gnuplot 命令时,它说:“zsh:可执行文件中的错误 CPU 类型:gnuplot”。 I have Mac Os Catalina 10.15.4.我有 Mac Os Catalina 10.15.4。 I don't know what to do.我不知道该怎么办。

First, find out what you are actually running when you run gnuplot :首先,找出运行gnuplot时实际运行的内容:

type gnuplot
gnuplot is /SOMETHING/SOMEWHERE

Now you know what you are actually running.现在您知道您实际运行的是什么。 Note the result.注意结果。 Now find what type of file that is:现在找到是什么类型的文件:

file /SOMETHING/SOMEWHERE

You are hoping that results in Mach-O 64-bit executable x86_64 which would be correct for an Intel Mac, unless you are on Apple Silicon.您希望生成Mach-O 64-bit executable x86_64 ,这对于 Intel Mac 来说是正确的,除非您使用的是 Apple Silicon。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM