I ran the command '''python3 setup.py install''' and '''python3 setup.py install --prefix=/usr/local''' in order to install the Python package Pynini through CLI but got the following unexplained error, which I am not sure what it is due to:
'''[...]
running build_ext
building 'pywrapfst' extension gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/anaconda3/include -arch x86_64 -I/Library/anaconda3/include -arch x86_64 -I/Library/anaconda3/include/python3.6m -c src/pywrapfst.cc -o build/temp.macosx-10.7-x86_64-3.6/src/pywrapfst.o -std=c++11 -Wno-unused-function -Wno-unused-local-typedefs -funsigned-char
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]
src/pywrapfst.cc:612:10: fatal error: 'ios' file not found
#include "ios"
^~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1'''
It appears that there are two errors (the iOS- and the gcc-related ones). How could I solve them ?
Any help would be appreciated !
CFLAGS='-stdlib=libc++' python3 setup.py install
.