bjoern
bjoern copied to clipboard
Build bjoern error in mac m1 with command `pip3 install --global-option=build_ext --global-option="-I/opt/homebrew/include" bjoern`
When I tried the command pip3 install --global-option=build_ext --global-option="-I/opt/homebrew/include" bjoern
to build bjoern , it crashed out with the erroers below.
https://github.com/jonashaag/bjoern/wiki/Installation
My m1 mac has installed libev and gcc,but it still cant work
https://github.com/jonashaag/bjoern/issues/226
"It works for me"...
Where is your libev library? For me:
$ find /opt/homebrew -name 'libev.dylib' -print
/opt/homebrew/lib/libev.dylib
/opt/homebrew/Cellar/libev/4.33/lib/libev.dylib
Also, are you using a pip/python installed by Homebrew?
You can use the following command:pip3 install --global-option=build_ext --global-option="-I/opt/homebrew/include" --global-option="-L/opt/homebrew/lib" bjoern
The following works on M2 after brew install libev
:
LDFLAGS="-L$(brew --prefix libev)/lib" CFLAGS="-I$(brew --prefix libev)/include" pip install bjoern
Homebrew v3.0.0 modified the default prefix from /usr/local
on Intel, to /opt/homebrew
on Apple silicon (see here). These changes can be added to the repo here if anyone wants to do the work of creating an MR for this.