3.6.3 error on OS X: library not found for -lrt

Hi, I'm getting an error installing 3.6.3 on OS X 10.10.5 $ pip install lxml==3.6.3 Collecting lxml==3.6.3 Using cached lxml-3.6.3.tar.gz Building wheels for collected packages: lxml Running setup.py bdist_wheel for lxml ... - ... clang -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/libxml2 -Isrc/lxml/includes -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.10-x86_64-2.7/src/lxml/lxml.etree.o -w -flat_namespace clang -bundle -undefined dynamic_lookup build/temp.macosx-10.10-x86_64-2.7/src/lxml/lxml.etree.o -lxslt -lexslt -lrt -lxml2 -lz -lm -o build/lib.macosx-10.10-x86_64-2.7/lxml/etree.so ld: library not found for -lrt clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang' failed with exit status 1 3.6.2 installs fine $ pip install lxml==3.6.2 Collecting lxml==3.6.2 Installing collected packages: lxml Successfully installed lxml-3.6.2 It looks like rt was added as a build dependency in 3.6.3. https://github.com/lxml/lxml/commit/8687eb00fc50a61d020ffec11ddd76946ed0bc86 Maybe using the old values for the libs argument on OS X would work. elif sys.platform in ('darwin',): if OPTION_STATIC: libs = ['z', 'm'] else: libs = ['xslt', 'exslt', 'xml2', 'z', 'm'] Thanks, Christian
participants (1)
-
Christian Long