0

我正在寻求一点帮助。我正在做一个爱好项目,用一个带有加速度计的 Arduino 创建一个鼠标。

作为其中的一部分,我需要更改 atmega16u2 上的固件。我有一个 mac,所以我正在尝试使用 dfu-programmer。

当我在终端中使用 ./bootstrap.sh 命令行时,会显示以下错误消息。我想知道是否有人可以阐明他们的意思以及这是否会阻止程序运行?

DJ:dfu-programmer-0.6.2 hd334$ ./bootstrap.sh
sh: autom4te: command not found
aclocal: error: echo failed with exit status: 127
./bootstrap.sh: line 3: autoheader: command not found
sh: autoconf: command not found
automake: error: autoconf failed with exit status: 127
./bootstrap.sh: line 5: autoconf: command not found
DJ:dfu-programmer-0.6.2 hd334$ 
4

1 回答 1

0

您需要安装autom4te, autoheader, autoconf,libusb-compatlibusb在执行之前dfu-programmer

所有这些auto*先决条件都包含在autoconf包中。我建议你安装home-brew包管理器。它可以自动完成这些事情。虽然存储库中有dfu-programmer包,所以你也可以自动安装它。

  • 要安装home-brew,请在终端中运行以下命令:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    
  • 推荐:之后,dfu-programmer使用以下命令安装:

    brew install dfu-programmer
    
  • 如果您只想安装先决条件,请运行以下命令:

    brew install autoconf libusb libusb-compat
    

    然后重新运行./bootstrap.sh

于 2016-06-20T20:56:09.850 回答