Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

pip install huxley fails on mac #53

Open
kmulvey opened this issue Mar 14, 2014 · 5 comments
Open

pip install huxley fails on mac #53

kmulvey opened this issue Mar 14, 2014 · 5 comments

Comments

@kmulvey
Copy link

kmulvey commented Mar 14, 2014

System:
Darwin 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64

full install log:
http://fpaste.org/85382/

@mvpc
Copy link

mvpc commented Apr 22, 2014

having the same problem, the error looks like this:

cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -arch i386 -pipe -IlibImaging -I/Users/[...]/.virtualenvs/[...]/include -I/usr/local/include -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _imaging.c -o build/temp.macosx-10.9-intel-2.6/_imaging.o

clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]

clang: note: this will be a hard error (cannot be downgraded to a warning) in the future

error: command 'cc' failed with exit status 1

It appears to be related to this: http://kaspermunck.github.io/2014/03/fixing-clang-error/. I haven't tried the fix from the article yet.

@saranrapjs
Copy link

The following (from that article) works:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install huxley

In addition, I had to symlink the freetype library:

 ln -s /usr/local/include/freetype2 /usr/local/include/freetype

@kevin-miles
Copy link

ln -s /usr/local/include/freetype2 /usr/local/include/freetype

+1 symlinking the freetype library fixed the problem for me

@isaacchansky
Copy link

Just symlinking worked for me as well. 👍 thanks @saranrapjs

@gunesmes
Copy link

gunesmes commented Dec 1, 2014

ln -s /usr/local/include/freetype2 /usr/local/include/freetype
then
sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install huxley

fixed my issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants