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 · 2 comments

Comments

Projects
None yet
2 participants
@sriki77
Copy link

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

This comment has been minimized.

Copy link
Owner

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

This comment has been minimized.

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment