/opt/tinyos-2.1.2/tos/lib/tossim/tossim_wrap.cxx:880:42: warning: format not a string literal and no format arguments
说明Python支持不够或者版本不合适,解决办法:Install SWIG and regenerate Python support with the sing-generate script in tos/lib/tossim, or install a different version of Python.
1. 下载 swig 源码
http://www.swig.org/download.html
2. 安装 pcre
sudo apt-get install libpcre3 libpcre3-dev
3. 解压 swig 源码
tar -xzvf swig-2.0.11.tar.gz // 解压
4. 配置、编译和安装 swig
./configure --prefix=/home/mark/developer/swigtool // 指定安装目录
make // 编译
make install // 安装
如果想让默认安装的话,可以直接执行./configure
仍然需要make \make install
5. 配置 path
安装在home/。。/Downloads/swig/下
所以mv swig /usr/lib/
sudo vim /etc/environment
将 /usr/lib/swig/bin 路径添加到 path
这样,在其他路径下就可以执行 swig 命令。
6.查看版本信息
swig -version
安装成功!
参考来源:http://blog.csdn.net/veryitman/article/details/17398151