1.下载
http://www.swig.org/download.html
2.解压后在window编译执行,使用cygdrive
./configure --prefix=/usr/program/swig/ #或者其他安装目录
make
make install
在./configure 时遇到Cannot find pcre-config script from PCRE (Perl Compatible Regular Expressions)的错误,使用
./configure --prefix=/usr/progam/swig --without-pcre