Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.

Homebrew #177

Open
szymonkaliski opened this issue Jun 17, 2014 · 9 comments
Open

Homebrew #177

szymonkaliski opened this issue Jun 17, 2014 · 9 comments

Comments

@szymonkaliski
Copy link

Just wanted to let you know that package I created for ino was just included in homebrew, so to install on osx you can simply brew install ino :) Homebrew/legacy-homebrew@d838fe4

@bilics
Copy link

bilics commented Jun 18, 2014

Hi,

Does it support "Arduino Due" ? Can you please try to compile a simple test for Arduino Due ?

(please see issue #178)

Thanks!

@szymonkaliski
Copy link
Author

Hi, I'm not an author of ino, I've just packaged it for homebrew, so that's not really question for me, but you should check this pull request → #124

@bilics
Copy link

bilics commented Jun 20, 2014

Thanks!

@joelbschwartz
Copy link

This is great, thank you!

@plord
Copy link

plord commented Jan 27, 2015

@szymonkaliski Word of warning, if you have used homebrew cask install Arduino Adafruit-arduino, your homebrew-installed version of ino has no idea where to find things. I am looking into it to see if there is an easy symlink fix; the alternative seems to be inserting the cask paths into the arduino_dist_dir_guesses list in environment.py, which is sub-optimal.

@szymonkaliski
Copy link
Author

@plord — is this a problem only with homebrewed ino, or is it also there if you install it with pip/easy_install?

@ches
Copy link

ches commented Mar 10, 2015

@szymonkaliski I haven't actually tested direct pip installation yet, but I believe the situation is likely to be the same—the salient part is the Homebrew Cask installation of the Arduino IDE, not so much whether or not Ino is installed with Homebrew.

The normal (default) mode of operation for Homebrew Cask is to install packages in an /opt prefix, and then symlink app bundles into $HOME/Applications. So, for instance, I installed with:

$ brew cask install arduino
$ brew install ino
$ ino list-models
Searching for Board description file (boards.txt) ... FAILED
Board description file (boards.txt) not found. Searched in following places:
  - /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino
  - /usr/local/share/arduino/hardware/arduino
  - /usr/share/arduino/hardware/arduino

Arduino.app is actually at /Users/ches/Applications/Arduino.app, which is actually a symlink:

$ ls -l ~/Applications/Arduino.app
lrwxr-xr-x  1 ches  staff  53 Mar  9 20:49 /Users/ches/Applications/Arduino.app@ -> /opt/homebrew-cask/Caskroom/arduino/1.6.0/Arduino.app

So a simple solution for this means of installation could be for Ino to include ~/Applications/Arduino.app as an additional path to check for the Arduino environment.

@ches
Copy link

ches commented Mar 10, 2015

Simply symlinking the same /opt-based installed to /Applications doesn't immediately work either:

$ ln -s /opt/homebrew-cask/Caskroom/arduino/1.6.0/Arduino.app /Applications/Arduino.app
$ ino list-models
Searching for Board description file (boards.txt) ... FAILED
Board description file (boards.txt) not found. Searched in following places:
  - /Applications/Arduino.app/Contents/Resources/Java/hardware/arduino
  - /usr/local/share/arduino/hardware/arduino
  - /usr/share/arduino/hardware/arduino

The path of boards.txt is actually:

~/Arduino.app/Contents/Resources/Java/hardware/arduino/avr/boards.txt

But if I symlink/copy that one level above the avr directory, ino list-models then appears to crash when parsing it. As a newcomer I'm guessing at this point (and the issues/pull request queue would seem to support...) that ino is woefully out of date 😞

@ches
Copy link

ches commented Mar 10, 2015

Related: #132, #239

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants