linux环境下安装swig
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
下载pcre: pcre-8.41
下载swig :swig
1 安装 pcre
$ tar -zxvf pcre-8.41.tar.gz
$ chmod -R 777 pcre-8.41
$ cd pcre-8.41/
$ ./configure
$ make
$ sudo make install
2 安装swig到默认目录
$ ./configure
$ make
$ sudo make install
查看swig版本
$ swig -version
如果出现swig:error while loading shared libraries:libpcre.so.1异常,
确认是否安装pcre,否则安装pcre
如果确认安装pcre,则运行
#ldd $(which swig)
会看到
libpcre.so.1 => not found
手动添加链接:
#ln -s /usr/local/lib/libpcre.so.1 /lib
完毕后再次运行
#swig -version
可看到版本信息。
SWIG Version 3.0.11
Compiled with g++ [x86_64-pc-linux-gnu]
Configured options: +pcre
Please see http://www.swig.org for reporting bugs and further information
3 安装swig到用户指定目录
$ ./configure --prefix=/usr/local/xxx/swig
$ make
$ sudo make install
路径添加到文件,
$ vim /etc/profile (可能需要管理员权限)
在最后添加一行:PATH=/usr/local/swig2.0.9/bin:$PATH。保存后重新加载生效:
$source /etc/profile




A beautiful web dashboard for Linux
最近提交(Master分支:5 个月前 )
186a802e
added ecosystem file for PM2 4 年前
5def40a3
Add host customization support for the NodeJS version 4 年前
更多推荐
所有评论(0)