是否可以在M1芯片Mac Book Pro中安装jmeter



今天,当我在我的Macbook pro(macOS Monterey 12.5)中使用M1 pro芯片安装jmeter时,如下所示:

brew install jmeter

显示如下错误:

Follow the instructions here:
https://github.com/Homebrew/homebrew-cask#reporting-bugs
Warning: Unexpected method 'on_arm' called on Cask zulufx.
Follow the instructions here:
https://github.com/Homebrew/homebrew-cask#reporting-bugs
Warning: Unexpected method 'arch' called on Cask zulufx.
Follow the instructions here:
https://github.com/Homebrew/homebrew-cask#reporting-bugs
Error: openjdk: undefined method `on_arm' for #<Resource:0x0000000137b0b020>

为什么会这样? 我应该怎么做才能解决这个问题? 是否可以在带有 M1 芯片的 Macbook Pro 中安装 jmeter?

看起来你正在尝试使用Azul JDK,它的一个组件:zulufx还没有移植到ARM上。

所以你可以

  1. 转到此处:https://github.com/microsoft/openjdk-aarch64/releases 并选择适当的版本(带有macos-aarch64.pkg后缀),安装它并确保此 OpenJDK 版本中的java二进制文件在任何其他 Java 版本之前
  2. 转到JMeter下载页面并获取最新的稳定二进制文件
  3. 解压缩JMeter压缩包并从其"bin"文件夹中启动jmeter.sh

详细信息:JMeter 安装:如何开始

最新更新