Forked from githubutilities/get-and-build-crfsuite.sh
Created
February 7, 2018 23:35
-
-
Save coderfi/99caee62d59e2c7eddb11de75f26bab4 to your computer and use it in GitHub Desktop.
Get and build crfsuite
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
| #! /usr/bin/env bash | |
| #sudo apt-get install --yes autoconf | |
| WORKING_DIR=`pwd` | |
| LIBLBFGS_GIT=https://github.com/chokkan/liblbfgs.git | |
| LIBLBFGS_SRC_DIR=./liblbfgs/ | |
| LIBLBFGS_INSTALL_DIR=$WORKING_DIR/local/lbfgs/ | |
| CRFSUITE_GIT=https://github.com/chokkan/crfsuite.git | |
| CRFSUITE_SRC_DIR=./crfsuite/ | |
| CRFSUITE_INSTALL_DIR=$WORKING_DIR/local/crfsuite/ | |
| if [ ! -d $LIBLBFGS_SRC_DIR ]; then | |
| git clone $LIBLBFGS_GIT $LIBLBFGS_SRC_DIR | |
| fi; | |
| cd $LIBLBFGS_SRC_DIR | |
| ./autogen.sh | |
| ./configure --prefix=$LIBLBFGS_INSTALL_DIR | |
| make clean && make && make install | |
| cd $WORKING_DIR | |
| if [ ! -d $CRFSUITE_SRC_DIR ]; then | |
| git clone $CRFSUITE_GIT $CRFSUITE_SRC_DIR | |
| fi; | |
| cd $CRFSUITE_SRC_DIR | |
| ./autogen.sh | |
| ./configure --prefix=$CRFSUITE_INSTALL_DIR --with-liblbfgs=$LIBLBFGS_INSTALL_DIR | |
| make clean && make && make install | |
| # Reference | |
| # *http://blog.csdn.net/max_r/article/details/38757509 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment