Note that there are some explanatory texts on larger screens.

plurals
  1. POpyicu failed to link icu4c on Mountain Lion
    primarykey
    data
    text
    <p>I use <code>brew install icu4c</code> with <code>pip install pyicu</code> to install python ICU support but in the end I cannot make in work on my Mountain Lion.</p> <pre><code>$ brew install icu4c dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid ==&gt; Downloading http://download.icu-project.org/files/icu4c/50.1/icu4c-50_1-src.tgz Already downloaded: /Library/Caches/Homebrew/icu4c-50.1.tgz ==&gt; ./configure --prefix=/usr/local/Cellar/icu4c/50.1 --disable-samples --disable-tests --enable-static --with-library-bits=64 ==&gt; make ==&gt; make install /usr/local/Cellar/icu4c/50.1: 235 files, 55M, built in 109 seconds $ pip install pyicu Downloading/unpacking pyicu Downloading PyICU-1.4.tar.gz (209kB): 209kB downloaded Running setup.py egg_info for package pyicu Installing collected packages: pyicu Running setup.py install for pyicu building '_icu' extension /usr/bin/clang -fno-strict-aliasing -Os -w -pipe -march=native -Qunused-arguments -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/include -I/usr/local/Cellar/python/2.7.3/include/python2.7 -c _icu.cpp -o build/temp.macosx-10.4-x86_64-2.7/_icu.o -Wno-write-strings -DPYICU_VER="1.4" … /usr/bin/clang++ -bundle -undefined dynamic_lookup -L/usr/local/Cellar/readline/6.2.2/lib build/temp.macosx-10.4-x86_64-2.7/_icu.o build/temp.macosx-10.4-x86_64-2.7/bases.o build/temp.macosx-10.4-x86_64-2.7/calendar.o build/temp.macosx-10.4-x86_64-2.7/charset.o build/temp.macosx-10.4-x86_64-2.7/collator.o build/temp.macosx-10.4-x86_64-2.7/common.o build/temp.macosx-10.4-x86_64-2.7/dateformat.o build/temp.macosx-10.4-x86_64-2.7/errors.o build/temp.macosx-10.4-x86_64-2.7/format.o build/temp.macosx-10.4-x86_64-2.7/iterators.o build/temp.macosx-10.4-x86_64-2.7/layoutengine.o build/temp.macosx-10.4-x86_64-2.7/locale.o build/temp.macosx-10.4-x86_64-2.7/normalizer.o build/temp.macosx-10.4-x86_64-2.7/numberformat.o build/temp.macosx-10.4-x86_64-2.7/regex.o build/temp.macosx-10.4-x86_64-2.7/search.o build/temp.macosx-10.4-x86_64-2.7/transliterator.o build/temp.macosx-10.4-x86_64-2.7/tzinfo.o build/temp.macosx-10.4-x86_64-2.7/unicodeset.o -licui18n -licuuc -licudata -licule -o build/lib.macosx-10.4-x86_64-2.7/_icu.so -L/usr/local/lib Successfully installed pyicu Cleaning up... </code></pre> <p>Here're my settings Mountain Lion with Xcode 4.5 and 46.DP2 installed.</p> <pre><code>$ python Python 2.7.3 (default, Jun 14 2012, 00:46:15) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.61)] on darwin Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import icu Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/icu.py", line 37, in &lt;module&gt; from docs import * File "/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/docs.py", line 23, in &lt;module&gt; from _icu import * ImportError: dlopen(/usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/_icu.so, 2): Symbol not found: __ZNK6icu_5014LEFontInstance10getSubFontEPKtPiiiR11LEErrorCode Referenced from: /usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/_icu.so Expected in: dynamic lookup &gt;&gt;&gt; $ otool -L _icu.so _icu.so: /usr/local/lib/libicui18n.50.1.dylib (compatibility version 50.0.0, current version 50.1.0) /usr/local/lib/libicuuc.50.1.dylib (compatibility version 50.0.0, current version 50.1.0) /usr/local/lib/libicudata.50.1.dylib (compatibility version 50.0.0, current version 50.1.0) /usr/local/lib/libicule.50.1.dylib (compatibility version 50.0.0, current version 50.1.0) /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 56.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0) /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1669.0.0) </code></pre> <p>Any one bump into the same issue? What else can I try?</p> <p>More information /usr/local/bin/python: Mach-O 64-bit executable x86_64 /usr/local/Cellar/python/2.7.3/lib/python2.7/site-packages/_icu.so: Mach-O 64-bit bundle x86_64</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload