Description
I ran into a confusing beginner problem trying to build avr-rust
on macOS Mojave (10.14.3). make
worked fine, but make install
told me it "could not canonicalize /opt/avr-rust
".
In order to fix this I had to edit build/config.toml
and set prefix = '/usr/local/avr-rust'
, and then make sure the directory was there and had the right ownership (sudo mkdir /usr/local/avr-rust && sudo chown $USER:admin /usr/local/avr-rust
).
After that make install
worked.
Finally, for the "Register the toolchain with rustup" step of Building and Installation, I had to manually install GNU Coreutils to get realpath
(brew install coreutils
).
Is it worth trying to automate this (any hints to where I should start?), or should I just submit a PR on the readme noting the extra steps on macOS?