Skip to content

Instantly share code, notes, and snippets.

@xiangjjj
Last active June 19, 2017 15:19
Show Gist options
  • Save xiangjjj/c96a72e8b5a329f7c4e95067681c837c to your computer and use it in GitHub Desktop.
Save xiangjjj/c96a72e8b5a329f7c4e95067681c837c to your computer and use it in GitHub Desktop.
Build Swig from source
# download swig
$ wget http://ufpr.dl.sourceforge.net/project/swig/swig/swig-3.0.12/swig-3.0.12.tar.gz
$ tar xzf swig-3.0.12.tar.gz # decompress
# configure swig
$ cd swig-3.0.12/
$ ./configure --prefix=$HOME/swig
# install swig
$ make clean && make && make install
# set up environment variable
$ export SWIG_PATH=$HOME/swig/bin/swig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment