Skip to content
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

Get Homebrew ruby on path? #18

Open
apjanke opened this issue Jan 22, 2021 · 2 comments
Open

Get Homebrew ruby on path? #18

apjanke opened this issue Jan 22, 2021 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@apjanke
Copy link
Member

apjanke commented Jan 22, 2021

To get doc building working right on Mac under the Matlab Desktop GUI, we'll probably need to pull in Homebrew, because it's the Ruby that'll have bundler.

@apjanke apjanke self-assigned this Jan 22, 2021
@apjanke apjanke added the bug Something isn't working label Jan 22, 2021
@apjanke apjanke added this to the 0.5.0 milestone Jan 22, 2021
@apjanke
Copy link
Member Author

apjanke commented Jan 22, 2021

This is tricky. The way to do this would be to check if bundler is installed and ruby is a new enough version, and if not, then search for a Homebrew installation and add that to $PATH with setenv(). But mucking around with the user's path or other environment variables automagically is a tricky thing that I'd rather not do.

Maybe we should just show users how to pull in Homebrew using their startup.m?

@apjanke
Copy link
Member Author

apjanke commented Jan 22, 2021

I added a dev-kit/pull_in_homebrew_ruby.m that developers can call manually. I'm not comfortable calling it automatically yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant