pyfst icon indicating copy to clipboard operation
pyfst copied to clipboard

"pip install pyfst" does not work under Cygwin

Open pisabell opened this issue 10 years ago • 2 comments

Hello, I have openfst and python working fine under Cygwin. But when I try "pip install pyfst", I get an error message as shown below.

Any guidance on how to fix this would be greatly appreciated.

Pierre Isabelle


g++ -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.17-i686-2.6/fst/_fst.o -L/usr/lib/python2.6/config -lfst -lpython2.6 -o build/lib.cygwin-1.7.17-i686-2.6/fst/_fst.dll

/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lfst

pisabell avatar Aug 13 '14 19:08 pisabell

Same problem here: g++ -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.32-x86_64-3.2/fst/_fst.o -L/usr/lib/python3.2/config -lfst -lpython3.2m -o build/lib.cygwin-1.7.32-x86_64-3.2/fst/_fst.cpython-32m.dll

/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lfst

NickRuiz avatar Sep 10 '14 15:09 NickRuiz

pyfst was never tested under Cygwin :-( Try finding the install path of openfst (/usr/local/include and /usr/local/lib in linux) and add it manually to setup.py: INC, LIB = ['/usr/local/include'], ['/usr/local/lib']

vchahun avatar Mar 02 '15 03:03 vchahun