Skip to content

make install fails on macOS #131

Closed
Closed
@ratkins

Description

@ratkins

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions