Skip to content

make install fails on macOS #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ratkins opened this issue Feb 11, 2019 · 4 comments
Closed

make install fails on macOS #131

ratkins opened this issue Feb 11, 2019 · 4 comments

Comments

@ratkins
Copy link

ratkins commented Feb 11, 2019

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?

@carlos4242
Copy link

Gosh, no one commented on this. Definitely raise a PR on the README, that would be a great addition.

I think not that many developers are building on mac but I am so it would be good for people like me when we start, I would have got stuck on that for sure!

ratkins added a commit to ratkins/rust that referenced this issue Apr 1, 2019
@ratkins
Copy link
Author

ratkins commented Apr 1, 2019

Ok, done.

dylanmckay added a commit that referenced this issue May 16, 2019
Add extra steps for macOS, as noted in #131
@dylanmckay
Copy link
Member

Fixed in #135.

dylanmckay added a commit that referenced this issue Jun 8, 2019
Add extra steps for macOS, as noted in #131
dylanmckay added a commit that referenced this issue Jun 9, 2019
Add extra steps for macOS, as noted in #131
@IamTheCarl
Copy link

IamTheCarl commented Oct 17, 2019

I got the "could not canonicalize /opt/avr-rust" error on my Ubuntu 18 installation.
Following the note for fixing it on OSX has fixed it for me.

So it should be noted that this issues is not specific to macOS.

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

No branches or pull requests

4 participants