pyre2 icon indicating copy to clipboard operation
pyre2 copied to clipboard

Failed on build mac OSX 10.12 - 'mutex' file not found

Open alonraiz opened this issue 8 years ago • 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

alonraiz avatar Feb 23 '17 16:02 alonraiz

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!

Alienover avatar Mar 01 '18 11:03 Alienover

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.

bestmethod avatar Jun 27 '18 09:06 bestmethod