cesanta / homebrew-mos

6 stars 3 forks source link

Unable to install MOS on MacOS Mojave (ftdi.h file not found) #2

Closed ramgrandhi closed 5 years ago

ramgrandhi commented 5 years ago

Hello - I had MOS earlier when my Mac was running older version of MacOS.

Recently, i upgraded to Mojave (and, due to the underlying Xcode version upgrade), I wanted to upgrade MOS and since then, I am faced with this error:

>> brew install mos
...............
...............
go
build
-o
/usr/local/Cellar/mos/2.7.1/bin/mos

# cesanta.com/mos/flash/cc3200
flash/cc3200/ftdi_darwin.go:8:10: fatal error: 'ftdi.h' file not found
#include <ftdi.h>
         ^~~~~~~~
1 error generated. 

I tried brew uninstall -force mos before installing mos, still no luck.

Appreciate you in looking into this.

rojer commented 5 years ago

you should have libftdi installed, can you verify that? if yes, can you try reinstalling it?

ramgrandhi commented 5 years ago

Thanks for the tip.

My libftdi symlink was corrupted, some how. I ran these commands to install libftdi.

brew uninstall -force libftdi
brew install libftdi

You made my day! 👍