dfu-programmer 0.6.2 error message during ./bootstrap.sh - macos

I'm after little help. I'm working on a hobby project to create a mouse from an Arduino with an accelerometer.
For part of this I need to change the firmware on the atmega16u2. I have a mac so to do this I am trying to use the dfu-programmer.
When I use the ./bootstrap.sh command line in terminal I get the following error messages displayed. I was wondering if anyone could shed some light on what they mean and if this would prevent the program from working ?
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$

You need to install autom4te, autoheader, autoconf, libusb-compat and libusb before executing dfu-programmer.
All those auto* prerequisites are included in autoconf package. I recommend you to install home-brew package manager. It can do these things automatically. Although there is dfu-programmer package in the repository, so you can install it automatically too.
To install home-brew, run this command in your Terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Recommended: After that, install dfu-programmer with this command:
brew install dfu-programmer
If you want to install prerequisites only, run this command:
brew install autoconf libusb libusb-compat
then rerun ./bootstrap.sh.

Related

How do I install libsuinput on Raspberry Pi 10 (Buster)

I'm working on a project that requires libsuinput available here
https://github.com/tuomasjjrasanen/libsuinput
I've downloaded it but when I follow the instructions in the readme
Just run the following commands:
./configure && make && make install
I get the following error
bash: ./configure: No such file or directory
Instructions couldn't be simpler but its just not working. Am I missing something or is the module not compatible with the latest version of Raspberry Pi?
You need to run ./autogen.sh first - it will call autoreconf that will create configure script.
If you get:
pi#raspberrypi:~/libsuinput $ ./autogen.sh
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:9: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
install libtool:
sudo apt-get -y install libtool

How do you compile Mesos on OS X Yosemite

I followed the directions outlined here: http://mesos.apache.org/gettingstarted/
I checked everything out and then ran:
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install autoconf automake libtool subversion maven
When I go into the mesos directory and run ./bootstrap I get the following:
ln: .git/hooks/pre-commit: Not a directory
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --warnings=all -I m4
aclocal: error: aclocal: file '/usr/local/share/aclocal/libmcrypt.m4' does not exist
autoreconf: aclocal failed with exit status: 1
Not sure what I'm doing wrong, any help is much appreciated.
EDIT
Just thought I'd add that the selected answer solved the issue for me. After running make check I had 3 tests that failed. I ran it again and got 5 that failed. I exhaustively ran
$ ./bin/mesos-tests.sh --gtest_filter="NAMEOFFAILEDTEST" --verbose
and ended up with only three that failed because Docket tests are not supported on non-linux systems:
[ FAILED ] ExamplesTest.TestFramework
[ FAILED ] ExamplesTest.NoExecutorFramework
[ FAILED ] ExamplesTest.PersistentVolumeFramework
Hope this helps others in the future.
aclocal: error: aclocal: file '/usr/local/share/aclocal/libmcrypt.m4' does not exist
That file is provided by MCrypt. brew install mcrypt

Homebrew python3 installation error

I was trying to install python 3 using Homebrew by doing brew install python3 and there was the warning.
Warning: The post-install step did not complete successfully
You can try again using brew postinstall python3
So I did instead do brew postinstall python3
```==> /usr/local/Cellar/python3/3.4.1/bin/python3 -m ensurepip --upgrade
dyld: Library not loaded: ##HOMEBREW_CELLAR##/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/Python
Referenced from: /usr/local/Cellar/python3/3.4.1/bin/python3
Reason: image not found
xcrun: error: active developer path ("/Users/dorislee/Desktop/Macintosh HD/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change
xcrun: error: active developer path ("/Users/dorislee/Desktop/Macintosh HD/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting```
I am not really sure what to do, is there a way to undo this and fix it?
You can try and uninstall brew remove python3 and then do brew cleanup and brew prune and then reinstall python3 brew install python3 with whatever flags you want.
Check your PYTHONPATH variable, clean it, and then try to install python3 anagin

installing ruby 1.9.3 of osx mavricsmavrics

I am trying to install ruby 1.9.3 on my osx 10.9 operating system and I keep getting the following error :
Error running 'requirements_osx_port_update_system ruby-1.9.3-p448',
please read /Users/ramesh/.rvm/log/1383430694_ruby-1.9.3-p448/update_system.log
Requirements installation failed with status: 1.
I am using the following command to do the installtion :
rvm install 1.9.3
The complete log is as given below :
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
Requirements update log :
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
Finally I found the solution. I had to install the new command line tools for osx 10.9 (Mavrics) using the following command.
sudo xcode-select --install
Then I had to run the following command to do the macports selfupdate.
sudo port -v selfupdate
Then I can successfull install ruby 1.9.3 using the following command.
rvm install 1.9.3
Hope this will be helpful to anyone facing the same dilema.
On my computer (running mavericks), it seemed like xcode's command line tools were installed because I had access to gcc, git, etc. But there was a small additional package I had to download by doing:
$ sudo xcode-select --install
This prompts to install the command line tools. Followed by $ rvm requirements the rvm prerequisites installed properly and I was able to install ruby.

problems installing scrapy ..missing gcc 4.0

I am having trouble installing scrapy with easy_install, I get:
unable to execute gcc-4.0: No such file or directory
error: Setup script exited with error: command 'gcc-4.0' failed with exit status 1
I have gcc-4.2. I've been trying to downgrade to gcc-4.0 but cannot figure out a way ...
You need to setup your environment:
First, install Command Line Tools for Xcode (I'm not 100% sure that you can install without XCode, if not then install XCode from App Store).
Then install MacPorts
To complete macports setup run this command in Terminal.app:
% sudo port selfupdate
If you done, then you can install scapry from macports:
% sudo port install py27-scrapy
Afther this you should be able to use scrapy command in Terminal.app.

Resources