How to Install Dfu-util - macos

I've been trying to install dfu-util on my MAC OS X 10.7.5. I follow the instructions in this website:
http://forum.seeedstudio.com/viewtopic.php?f=12&t=1364
Everything seems to be working properly but, when I run the command:
./configure --libdir=/opt/local/lib --includedir=/opt/local/include
This erro appears:
./configure: line 3770: syntax error near unexpected token `USB,'
./configure: line 3770: `PKG_CHECK_MODULES(USB, libusb >= 0.1.4,,'
Does anyone know how to fix it?
Thank you very much in advance.

You should install pkgconfig (then re-run autogen.sh before ./configure)

did you run this before attempting to install?
sudo port install libusb libusb-compat git-core
do you have gcc/xcode installed?

If anyone is looking to install DFU-UTIL in 2015 using Brew on OSX, you'll find that the dfu-util.gnumonks.org site has been down since November of 2014. Here's the work-around...
Since Brew is looking for the 0.7 release and the gnumonks.org fellows have put up a mirror on sourceforge, you can download "dfu-util-0.7.tar.gz" from http://dfu-util.sourceforge.net/releases/ and place it into your /Library/Caches/Homebrew directory. Then, executing the command "brew install dfu-util" will work as expected!
Cheers!

Related

How to install Homebrew Portable Ruby when your system version is too old

I'm trying to install Homebrew on macOS. Once the installation finished, when I typed help I got:
Already downloaded: /.../Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz
Error: Checksum mismatch.
Expected: ab81211a2052ccaa6d050741c433b728d0641523d8742eef23a5b450811e5104
Actual: f80fd4cc877a64b0ac1c105fdc212ca6be08bb034118900f2c2f58edcfe0dafd
Archive: /.../Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz
To retry an incomplete download, remove the file above.
Error: Failed to install Homebrew Portable Ruby (and your system version is too old)!
I had the same question, and the solution is simple: remove the portable-ruby-2.6.3.mavericks.bottle.tar.gz you downloaded before.
rm /.../Library/Caches/Homebrew/portable-ruby-2.6.3.mavericks.bottle.tar.gz
Try running brew update-reset in your terminal and then run brew upgrade in the same terminal.
"Homebrew install fails with Error: Failed to install Homebrew Portable Ruby" helped me tremendously.
It would fail to install, because our company firewall was blocking certain downloads, like bottle, during the Homebrew update/install, but it was difficult to determine this because I would get the error above.
After removing the file, try
brew upgrade
brew update
on your personal Wifi or your phone's hotspot.
I fixed it.
First, I deleted the brew file that stores in the Library folder when using macOS.
The failure before was due to the connection. When I make sure the connection worked, it worked.
Remove the Homebrew Portable Ruby tar.gz from your Mac using:
rm <the path.tar.gz>
rm -rf <the path.tar.gz>
I've been automating this for years. There is a new something(?) in play during the Homebrew install.
I had the same error as above. I filed an issue report and got a response that fixed my problem:
CI=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
I'm not sure what prefixing with CI=1 does but all my automation issues went away.
To retry an incomplete download, remove the file above, then run:
rm /.../Library/Caches/Homebrew/portableruby-2.6.3.mavericks.bottle.tar.gz
and try again
my problem was:
Already downloaded: ../Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
==> Pouring portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
Error: Failed to install ruby 2.6.8_1!
Error: Failed to install Homebrew Portable Ruby (and your system version is too old)!
Fixed with opening the system app for terminal and installing Rosetta into the prompt. This happened after system update MacOS to 11.6.7
After resolving this brew did brew upgrade finish well.
Hope this helps someone.
Here is how I fixed it:
brew cleanup then brew upgrade

vcftools - installing on MAC

I'm trying to install vcftools on mac. Looking at previous posts on this issue, I made sure I've got Mac OS X developer tools (http://www.cnet.com/how-to/install-command-line-developer-tools-in-os-x/). I followed the procedure recommended in the official documantion (https://vcftools.github.io/examples.html). When I run from the command line:
./configure.ac
I get the following errors:
./configure.ac: line 4: syntax error near unexpected token [2.63]'
./configure.ac: line 4:AC_PREREQ([2.63])'
If I try:
./configure
It says:
-bash: ./configure: No such file or directory
as indeed there in no ./configure when I inspect the contents with:
ls
Can anyone point out where I am doing wrong. I've tried resources such as 'homebrew' but I didn't help.
Thanks a lot.
you can download it from
git clone https://github.com/vcftools/vcftools.git
cd vcftools
you will need to install autoconf, pkg-config, libtools, automake, and zlib.
run
./autogen.sh
then
./configure
follow the instructions here: https://github.com/vcftools/vcftools
I was having the same issue. Basically you need to install automake. This can be done using
brew install automake
Check this out https://www.biostars.org/p/306802/

unicharset_extractor: command not found

I want create new train data using tesseract. So follow step which mentioned in below website.
https://blog.cedric.ws/how-to-train-tesseract-301
I got below error while i execute Unicharset in OS X terminal.
Command:
unicharset_extractor eng.micrtest.exp.box
Error:
-bash: unicharset_extractor: command not found
I have using below software versions
OS: OSX EI caption 10.11.1
tesseract 3.04.01
leptonica-1.72
libjpeg 8d : libpng 1.6.21 : libtiff 4.0.6 : lib 1.2.5
is this possible to execute unchaste_extractor command in OSx?
Thanks in advance.
Problem is "Unicharset_extractor" not install in your system. So please install tesseract training tools
INSTALL TRAINING TOOL
brew install --with-training-tools tesseract
Please uninstall tesseract if you already installed it.
UNINSTALL TESSERACT
brew uninstall tesseract
NOTE: please read logs while install training tools and follow the steps which mentioned in logs.
It’ll take some more time to install the training tool so you’ll never quiet the terminal meantime.
Please install Homebrew before work out above command.
You will need to build Tesseract training executables; they are separate from the regular Tesseract executable.
https://github.com/tesseract-ocr/tesseract/wiki/Compiling

Installing Caffe (deep learning) issues

I have been able to install Caffe but I had a lot of issues and that's because I didn't follow the instructions very well.
I have a Mac OSx and I'm reading the OSx guide for installation.
In this point:
when I type hdf5 opencv I get:
"hdf5: command not found"
I've tried to install hdf5 by Homebrew and MacPorts but I'm still getting:
"hdf5: command not found"
Does anyone have any clue?
Thank you very much.
according to the answer of #mattias, my binaries in /usr/local/hdf5 are:
hdf5 is not a command or anything else. The documentation is just bad, it has to be:
brew tap homebrew/science hdf5 opencv
So, what I mean is, we have to install hdf5 and then link it to Caffe. But executing hdf5 is not what the guide meant.
You can install hdf5 from source. I just tested on OS X 10.9.5.
wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.14.tar
Unpack,
tar zxfv hdf5-1.8.14.tar
Enter directory
cd hdf5-1.8.14
And then,
./configure --prefix=/usr/local/hdf5 # or where you want it
make
sudo make install
Then you have it installed in /usr/local/hdf5.
Good luck!

Fink can't resolve xcode dependency

I just upgraded my xcode to 4.5.2 and ran
xcode-select -switch /Applications/Xcode.app/Contents/Developer
but when I try to install pygtk, I get an error:
fink install pygtk2-gtk-py27
Output:
Information about 6815 packages read in 0 seconds.
Can't resolve dependency "xcode (>= 4.4)" for package "pixman-0.28.2-1" (no
matching packages/versions found)
Exiting with failure.
How do I correct this? Also, I'm only trying to install pygtk this way because other ways for my mac haven't worked. When I run the following with python:
import gtk
If I install with homebrew I get an error that says it can't find gtk. When I install from macpkg as per the second answer in where-is-pygtk-for-mac-os-x I get a segmentation fault
In addition to upgrading my Xcode, it was necessary to install (again) Command Line tools. For a description of this process, see this answer.

Resources