若是凉夜已成梦

青春里 总有些事情要努力去做 总有些梦想要拼命去追。


  • 运维

  • 前端

  • 编程

  • 随笔

  • hust-oj

编译安装swig

发表于 2019-07-27   |   分类于 编程   |   阅读次数 4,901

介绍

官方简介

SWIG is a compiler that integrates C and C++ with languages
including Perl, Python, Tcl, Ruby, PHP, Java, C#, D, Go, Lua,
Octave, R, Scheme (Guile, MzScheme/Racket), Scilab, Ocaml.
SWIG can also export its parse tree into XML.

中文简介

SWIG (Simplified Wrapper and Interface Generator) ,即简化包以及接口生成器,为脚本语言(tcl,perl,python等)提供了C和C++的接口。

安装教程

git clone https://github.com/swig/swig.git
cd swig
sudo apt-get -y update
sudo apt-get install -y libpcre3 libpcre3-dev
./configure --prefix=/usr --without-clisp --without-maximum-compile-warnings
make
sudo make install
install -v -m755 -d /usr/share/doc/swig
sudo cp -v -R Doc/* /usr/share/doc/swig
sudo apt-get install -y libatlas-base-dev
sudo echo "PATH=/usr/bin/swig:$PATH" >> /etc/profile
source /etc/profile

测试

swig -version

SWIG Version 4.0.0

Compiled with g++ [armv7l-unknown-linux-gnueabihf]

Configured options: +pcre

Please see http://www.swig.org for reporting bugs and further information
linuxswig

发表评论 取消回复

要发表评论,您必须先登录。


hoxis wechat
著作权归作者所有
pip或者pip3升级后异常
Mac安装MySQL-python
  • 文章目录
  • 站点概览
若是凉夜已成梦

若是凉夜已成梦

青春里 总有些事情要努力去做 总有些梦想要拼命去追。

1904 日志
6 分类
12 标签
RSS
weibo github twitter facebook

友情链接

Dreams孤独患者 原站点 Skip
© 2017 若是凉夜已成梦
Powered by WordPress | 已运行
Theme By NexT.Mist