Failed on build mac OSX 10.12 - 'mutex' file not found
Opened this issue · 2 comments
/usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/re2.cpp -o build/temp.macosx-10.6-intel-2.7/src/re2.o -std=c++11 In file included from src/re2.cpp:202: /usr/local/include/re2/re2.h:186:10: fatal error: 'mutex' file not found #include <mutex> ^ 1 error generated. error: command '/usr/bin/clang' failed with exit status 1
actually, I did meet this problem before, but finally , I try to install re3 which is the new version of re2. It worked. And everything is going fine now.
after you install the re3, the process of importing this library is the same
like:
> import re2
The re2 , what we're going to install , is the version 0.2.22 and the re3 is the version 0.2.23.
Hopefully, this will help you!
Not on a mac - osx 10.13.5
$ pip3 install re3
Collecting re3
Could not find a version that satisfies the requirement re3 (from versions: )
No matching distribution found for re3
Works with python2, not with python3.