Skip to content
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

MacOS Mojave install failure '-std=libc++' #55

Closed
sriki77 opened this issue Oct 2, 2018 · 3 comments
Closed

MacOS Mojave install failure '-std=libc++' #55

sriki77 opened this issue Oct 2, 2018 · 3 comments

Comments

@sriki77
Copy link

@sriki77 sriki77 commented Oct 2, 2018

gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -D_LINUX -I/usr/local/Cellar/hunspell/1.6.2/include/hunspell -I/anaconda3/include/python3.6m -c hunspell.cpp -o build/temp.macosx-10.7-x86_64-3.6/hunspell.o -Wal
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line to use the libc++
      standard library instead [-Wstdlibcxx-not-found]
In file included from hunspell.cpp:20:
In file included from /usr/local/Cellar/hunspell/1.6.2/include/hunspell/hunspell.hxx:74:
/usr/local/Cellar/hunspell/1.6.2/include/hunspell/w_char.hxx:41:10: fatal error: 'string' file not found
#include <string>
         ^~~~~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1

Installation is failing due the the above error. Please provide suggestions.

@blatinier
Copy link
Owner

@blatinier blatinier commented Oct 8, 2018

That seems more like missing the basics about compiling stuff on your mac.

include path for stdlibc++

You should install the needed stuff to compile c++. I don't know the MacOS universe but from what I have read out there, you can install XCode which will install the needed pacakges. Or you can try and type "g++" in a term, which might trigger an installation process.

@sriki77
Copy link
Author

@sriki77 sriki77 commented Oct 8, 2018

I fixed the issue, the issue is with latest OSX Mojave. I had to install g++8.2 separately. Running the installer by changing the C++ compiler should work; meaning with option:
CC=/usr/local/gcc-8.2/bin/gcc-8.2

Please close the issue. Thank you for responding.

@blatinier blatinier closed this Oct 8, 2018
@charan1994
Copy link

@charan1994 charan1994 commented Jul 20, 2020

There is an alternative to installing g++ separately and then running it as well. Just use
export MACOSX_DEPLOYMENT_TARGET=10.9
and then run
CFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) pip install hunspell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants