-
Notifications
You must be signed in to change notification settings - Fork 302
added path for local homebrew installation #267
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
Conversation
|
If you set this in your environment: export DYLD_LIBRARY_PATH=$HOME/.brew/lib does that solve the problem? I'm hoping to move away from lots of platform-specific lib search paths, and for this one in particular I'd have to look more closely to see if it's a security issue. |
|
Hi Adam, Thank you for the response. I’ve configured the export variable, as you wrote, but the error is still present: I used the last version of python-magic available on pip: 0.4.27 Kind regards, |
|
Hi @ahupp, Did you read my reply? How can we do it? Thank you, |
|
I'm having this issue as well. A fix would be great :) |
|
@manvento What are the contents of ~/.brew/lib? If libmagic does not appear there, does it appear after running In the next breaking change I'd like to remove the homebrew-specific bits in magic/loader entirely, since the glob for ../Cellar/* is better handled with using |
|
@ahupp I use the path ~/homebrew instead of ~/.brew, but it shouldn't really make any difference. In my case I do see libmagic present in the /lib subdir. However, setting the dyld path as you mentioned has no effect. Brew link has no effect. |
|
I did test and DYLD_LIBRARY_PATH worked, but according to this thread it can be stripped unpredictably: I guess the solution then would be to run |
@ahupp , it's already present. I think that the idea to use |
|
@ahupp , I've done the modify you proposed. |
|
Ok, that looks good. Thanks! I'm not in front of a Mac right now but will give it some more testing when I get home. |
I wrote this little fix in order to access libmagic in mac even if it's installed with brew on user's home folder.