linux環境下安裝swig

2021-09-13 15:24:33 字數 1086 閱讀 2274

$ tar -zxvf pcre-8.41.tar.gz 

$ chmod -r 777 pcre-8.41

$ cd pcre-8.41/

$ ./configure

$ make

$ sudo make install

$ ./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 for reporting bugs and further information

$ ./configure --prefix=/usr/local/***/swig

$ make

$ sudo make install

路徑新增到檔案,

$ vim /etc/profile (可能需要管理員許可權)
$source /etc/profile

swig 安裝問題

swig用於腳步語言呼叫c 函式。安裝完成後會出現swig error while loading shared libraries libpcre.so.1 cannot open shared object file no such file or directory 通過find name l...

linux環境下Tomcat安裝

2.解壓tomcat到 usr local 下,執行tar zcvf apache tomcat 5.5.30.tar.gz 3.設定tomcat homel路徑.export tomcat home usr local apache tomcat 5.5.30 4.啟動tomcat,到tomcat...

linux環境下安裝nginx

目的 安裝nginx 環境 ubuntu server 14.03 效果 安裝 g apt get install g 我把檔案放在我自己的目錄裡 usr share myserver tools 進入該目錄 cd usr share myserver tools解壓 tar xzvf pcre 8...