python - error while installing sequitor g2p converter -


i want install sequitor g2p data-driven grapheme-to-phoneme converter

getting error while building sequitor-g2p

i gave command $ python setup.py install --prefix /usr/local/

getting error follows:

utility.cc:43:21: error: ‘eof’ not declared in scope      if (is.get() == eof) return eof;                      ^ utility.cc:48:35: error: ‘eof’ not declared in scope      while (((token = is.get()) != eof) &&                                    ^ error: command 'i686-linux-gnu-gcc' failed exit status 1 

thanks in advance.

see fcgio.cpp:50: error: 'eof' not declared in scope

the easiest option add

#include <stdio.h> 

to utility.cc.

you can automatically example using patch in provided link or using sed:

wget http://www-i6.informatik.rwth-aachen.de/web/software/g2p-r1668.tar.gz tar xvf  g2p-r1668.tar.gz rm -r g2p-r1668.tar.gz cd g2p  sed -i "27 #include <stdio.h>" utility.cc  python setup.py install --prefix  /usr/local 

Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -