-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing on Mac OS X #22
Comments
the log file is super long, and the message i've pasted above is from the end of that. i can upload the log if needed. |
What version of MacOS X do you have? Do you have Xcode command line tools installed? |
i'm running 10.9.2 (the latest). i was about to reply that i do have command line tools installed but then i checked and i don't. i've just installed it now, and will try again. |
nope, installed command line tools again, and checked using pkgutil --pkg-info=com.apple.pkg.CLTools_Executables then tried installed portia again, but i get the same error. |
The issue is that in Xcode 5.1 the compiler treats unknown command line options as errors (I guess you have Xcode 5.1 installed?). Take a look at this article: http://kaspermunck.github.io/2014/03/fixing-clang-error/ Let me know if you are able to solve the issue. |
thanks! that was really helpful. i found the instructions in the link you said too complex, and instead installed an older version of the command line tools (5.0.1.0.1.1382131676, this is "late october" in apple-speak) (note to future readers: DON'T use xcode-select --install, as this will install v5.1, which is the problem) installation seems successful now...i get the same messages, but, as you pointed out, they are now warnings and not errors. EDIT: you need to sudo the pip install and twistd, otherwise you'll get a permission denied error. |
Hi, I'm running into some trouble installing on mac os x
i copied portia to my computer using
git clone https://github.com/scrapinghub/portia/
and then went to the slyd directory
and started a virtual env using
virtualenv slyd
which told me:
New python executable in slyd/bin/python
Installing setuptools, pip...done.
i then tried to install using:
pip install -r requirements.txt
it did something for a while, but then I got a clang error:
cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -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 -I/usr/include/libxml2 -I/private/var/folders/l0/4wm5tl_57j5fv3c_d__gksk40000gn/T/pip_build/lxml/src/lxml/includes -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.9-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace
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
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;file='/private/var/folders/l0/4wm5tl_57j5fv3c_d__gksk40000gn/T//lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/l0/4wm5tl_57j5fv3c_d__gksk40000gn/T/pip-Yn4LXx-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/l0/4wm5tl_57j5fv3c_d__gksk40000gn/T//lxml
Storing debug log for failure in /Users/Library/Logs/pip.log
help? i have no idea how to fix this, or what's broken.
The text was updated successfully, but these errors were encountered: