zeusdeux / re2

Automatically exported from code.google.com/p/re2
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

import of re2 in Mac os X #121

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When i am importing re2 in mac os i am getting error

>>> import re2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: 
dlopen(/Users/us/Anaconda/anaconda/lib/python2.7/site-packages/re2.so, 2): 
Symbol not found: __ZN3re23RE213GlobalReplaceEPSsRKS0_RKNS_11StringPieceE
  Referenced from: /Users/us/Anaconda/anaconda/lib/python2.7/site-packages/re2.so
  Expected in: dynamic lookup

how to solve this issue ?

Original issue reported on code.google.com by rahulkul...@gmail.com on 12 Sep 2014 at 10:01

GoogleCodeExporter commented 9 years ago
Hi I've received this too.

Reason is the Makefile is not passing "-install-name @rpath/re2.dylib" to the 
dynamic lib build, so it fixes the "install path" of the final dylib to where 
it was built.
It also uses .so extension instead of .dylib extension for everything.

I'm looking at proposing a patch but not sure who to contact.

Jason

Original comment by jason.wo...@othermedia.com on 23 Oct 2014 at 1:11

GoogleCodeExporter commented 9 years ago
RE2 has moved to GitHub. I have not moved the issues over. If this issue is 
still important to you, please file a new one at 
https://github.com/google/re2/issues. Thank you.

Original comment by rsc@golang.org on 11 Dec 2014 at 4:45