Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Libevent not linking #31093

Closed
jumprope-zz opened this issue Jul 24, 2014 · 8 comments
Closed

Libevent not linking #31093

jumprope-zz opened this issue Jul 24, 2014 · 8 comments

Comments

@jumprope-zz
Copy link

Trying to link Libevent to use Tmux on a terminal running OS X Mavericks to which I don't have root access. The current situation looks like this:

~% brew install tmux
Warning: tmux-1.9a already installed

~% brew install libevent
Warning: libevent-2.0.21 already installed, it's just not linked

~% brew link libevent
Linking /usr/local/Cellar/libevent/2.0.21...
Error: Could not symlink include/evdns.h
/usr/local/include is not writable.

~% sudo brew link libevent
Password:
Error: Cowardly refusing to sudo brew link
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.

In another issue, "manually linking" Libevent was discussed as a possible solution, but I'm not sure whether I can do this without root access?

@MikeMcQuaid
Copy link
Member

sudo chown -R $USER $(brew --prefix)

@jumprope-zz
Copy link
Author

Thanks very much, but sorry I'm a noob, would you mind telling me what exactly that does? I would hopefully rather know before running it.

@MikeMcQuaid
Copy link
Member

No worries. That gives your current user access to /usr/local which it needs if it wants to run Homebrew.

@jumprope-zz
Copy link
Author

Hooray! It worked!!!! Thank you!!! Should I now revoke my current user's access to /usr/local for security's sake, or will that happen automatically?

@MikeMcQuaid
Copy link
Member

No, it's fine as your current user should be able to access /usr/local.

@jumprope-zz
Copy link
Author

OK great, thanks again!!

@ayubkhanp
Copy link

Thanks @MikeMcQuaid . I had the same issue.

@freedomprogramer
Copy link

cool @MikeMcQuaid ! This situation always bothered me, so thanks

@Homebrew Homebrew locked and limited conversation to collaborators Aug 4, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants