Last active
August 29, 2015 14:02
-
-
Save arendu-zz/94ffc3fbbb6587d7a371 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENFST_VERSION=1.3.4 | |
PYFST_VERSION=0.2.3 | |
export CXX="clang++ -std=c++11 -stdlib=libstdc++" | |
cd ~/Downloads | |
curl -O http://openfst.org/twiki/pub/FST/FstDownload/openfst-$OPENFST_VERSION.tar.gz | |
tar zxf openfst-$OPENFST_VERSION.tar.gz | |
pushd openfst-$OPENFST_VERSION | |
./configure --enable-compact-fsts --enable-const-fsts --enable-far=yes --enable-lookahead-fsts --enable-pdt --enable-ngram-fsts --prefix=/opt/local | |
make | |
sudo make install | |
popd | |
curl -O https://pypi.python.org/packages/source/p/pyfst/pyfst-0.2.3.tar.gz | |
tar zxf pyfst-$PYFST_VERSIO.tar.gz | |
pushd pyfst-$PYFST_VERSION | |
# edit setup.py to include extra_compile_args=['-O2', '-stdlib=libstdc++'] | |
#sudo python setup.py install | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment