一/首先安裝:wine
下載依賴包並按照
下載wine主題包
sudo apt-get install flex bison
sudo apt-get install wine
一般人都很順暢地安裝完畢了。
二/使用wine安裝SourceInsight
1/首先自然要下載SourceInsight,下載網址爲:這裏
下載之後爲091116201710.tar,解壓出來就是:InsightSetup.exe
2/安裝
xuyuefei@ubuntu:~/下載$ wine InsightSetup.exe
安裝方法與在 windows一樣,序列號(任選其一,來源於網絡):
SI3US-956386-80191
SI3US-840598-11493
SI3US-404808-04697
SI3US-510811-93484
SI3US-343066-11287
三、卸載
解決辦法:
到程序的目錄裏面
~/.wine/drive_c/Program Files/*****
wine 卸載程序.exe
或者, 終端執行:wine uninstaller
問題:
【ubuntu10.04下】Source Insight中文顯示亂碼,不支持UTF-8字符編碼
可以參考:http://www.crifan.com/source_insight_chinese_char_messy_code_not_support_utf8_unicode/
三/其他
以下轉自:http://www.cnblogs.com/eddy-he/archive/2012/03/08/ubuntu_wine_sourceInsight.html
4. 編寫腳本快速啓動
在終端上輸入 wine "c:\Program Files\Source Insight 3\Insight3.exe" 即可啓動 SourceInsight。但是每次啓動都需要輸入這一大串字符,是一件非常讓人惱火的事,所以需要編寫一個腳本來直接啓動它,就像普通命令一樣。
建立 SourceInsight.sh 腳本:
$ cat ~/.SourceInsight.sh
function SourceInsight() {
wine"c:\Program Files\Source Insight 3\Insight3.exe"
}
修改 ~/.bashrc ,添加下面內容到文件末尾:
$ cat ~/.bashrc
# Add by Eddy for using SourceInsight, +
source ~/.SourceInsight.sh
# Add by Eddy for using SourceInsight, -
這樣每次登陸終端都可以直接使用命令 SourceInsight 來啓動 source insight 了,非常方便。
$ SourceInsight
參考資料:
http://zh.wikipedia.org/wiki/Wine
http://bbs.ednchina.com/BLOG_ARTICLE_2097734.HTM
http://blog.csdn.net/liushaogeng/article/details/5853665
http://www.linuxidc.com/Linux/2010-07/27137.htm