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

add option to add binaries to $PATH #5

Closed
everson opened this issue Sep 21, 2016 · 4 comments
Closed

add option to add binaries to $PATH #5

everson opened this issue Sep 21, 2016 · 4 comments

Comments

@everson
Copy link

everson commented Sep 21, 2016

I am running into magit/magit#2318

Also, when typing emacsclient -V , I see that it still points to /usr/bin/, which is at 22.1

Would be great to have an option to setup links for binaries under /usr/local/Cellar/emacs-plus/25.1/bin

@d12frosted
Copy link
Owner

d12frosted commented Sep 21, 2016

Ok, brew installs everything to /usr/local/Cellar with binary links to /usr/local/bin. When it fails to link something - it yells. Running brew doctor might help you to check for unlinked stuff. But before doing this - please, check your value of $PATH. It must contain /usr/local/bin. I believe that brew by default setups $PATH for bash users (during brew installation), but in case you are using something else (for example, fish) you have to setup your PATH manually.

So in short, please share the value of $PATH (or at least make sure that it contains /usr/local/bin). Then run brew doctor and check that everything is linked. Let me know about your findings 😸

@everson
Copy link
Author

everson commented Sep 21, 2016

@d12frosted thanks. I had /usr/local/bin, only a link to emacs was there. That might have been the reason for the linking to have failed. I didn't notice any message about failure in linking, but brew doctor revealed: You have unlinked kegs in your Cellar: emacs-plus. Sorry, I should have run doctor before assuming this formula wouldn't setup these links.

Deleting /usr/local/bin/emacs and running brew link emacs-plus fixed my issue. Sorry again for the invalid report and thanks for replying so quickly.

@everson everson closed this as completed Sep 21, 2016
@d12frosted
Copy link
Owner

@everson,

Glad you figured it out 😸 Checking $PATH and calling brew doctor are usually two steps I do when something goes wrong. Also I forgot to mention that /usr/local/bin must come before /usr/bin.

Sorry, I should have run doctor before assuming this formula wouldn't setup these links.
Sorry again for the invalid report and thanks for replying so quickly.

Don't need to be sorry 😸 Have fun with Spacemacs (or stock Emacs) 😸

@everson
Copy link
Author

everson commented Sep 21, 2016

Trying to switch to Spacemacs from intellij / atom / vim.

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

No branches or pull requests

2 participants