http://blog.csdn.net/imyang2007/article/details/7654700
http://www.2cto.com/os/201408/322370.html
1.安装wine
sudo apt-get install wine
2.安装source insight
将source insight安装的可执行文件复制到ubuntu中。我复制到了~/Desktop/下面。
运行命令
wine ~/Desktop/Si35Setup.exe
其中Si35Setup.exe为source insight安装包名字。安装过程与
windows相同。
3.建立工程
搜wine启动Configure Wine
添加一个路径,这样source insight建工程的时候才能看到。
4.启动source insight建立工程
使用命令启动source insight,建立工程和windows相同。
wine "c:\Program Files\Source Insight 3\Insight3.exe"
5.编写一个简单的脚本方便每次启动source insight
#!/bin/bash
wine "c:\Program Files\Source Insight 3\Insight3.exe"
将该脚本添加到用户寻找命令的路径上,我在~/.profile的最后添加了该脚本的路劲
vim ~/.profile
在最后一行添加了该脚本的路劲/home/liuwei/work,注销登录后就可以运行脚本的名字来启动source insight了,我的脚本的名字是insight.sh,所以我登录后在终端输入insight.sh就可以启动source insight了。
习惯了在source insight下编辑阅读源码,在linux下用vi总是用不好 ,还是在ubuntu上用回熟悉的source insight。
在ubuntu中,安装windows程序用wine,然后用wine安装windows软件即可。
- 安装wine
在终端输入以下命令:
- sudo apt-get install wine
sudo apt-get install wine
- 用wine安装Source Insight
在终端中输入以下命令:
- wine ~/SourceInsight/InsightSetup.exe
注:SourceInsight的安装包要自行下载,跟windows下的安装一样。wine ~/SourceInsight/InsightSetup.exe
- 导入工程即可,跟windows无异。
附图:
- 如何打开SourceInsight?
项目导入之后,把sourceInsight关闭之后,怎么再把SourceInsight打开?这时发现在终端不知道wine安装到哪了,还有SourceInsight的安装目录又在哪里?
先在终端中输入命令
- cd ~
- ll
发现多了个隐藏目录:cd ~ ll
.wine/
进去看看:
- cd .wine/
- ll
发现有以下目录:cd .wine/ ll
dosdevices drive_c system.reg userdef.reg user.reg
其中drive_c默认为windows下C盘,打开进到该目录看看:
- cd drive_c
- ls
cd drive_c ls
这时基本上都能明白怎么回事了,打开Program Files:
- cd Program\ Files/
- ls
cd Program\ Files/ ls
总算找到它了,打开看看:
- <PRE class=plain name="code">cd Source\ Insight\ 3/
- ls</PRE><STRONG><BR>
- </STRONG><PRE class=plain name="code"><STRONG xmlns="http://www.w3.org/1999/xhtml"><IMG alt="" src="https://img-my.csdn.net/uploads/201206/12/1339496582_8939.png">
- 在终端输入命令:
- wine Insight3.exe
- 成功打开Source Insight!
- <STRONG>
- 备注:刚发现瞎忙了半天,安装完wine后在系统菜单里面有个wine选项,在那直接打开source insight就可以了(Wine->Programs->Source Insight3->Source Insight3.5),瞎折腾:(</STRONG></STRONG></PRE><BR>
- <PRE></PRE>
- <PRE></PRE>
<div class="dp-highlighter bg_plain"><div class="bar"><div class="tools"><strong>[plain]</strong> <a target=_blank class="ViewSource" title="view plain" href="http://blog.csdn.net/imyang2007/article/details/7654700#">view plain</a><a target=_blank class="CopyToClipboard" title="copy" href="http://blog.csdn.net/imyang2007/article/details/7654700#">copy</a><a target=_blank class="PrintSource" title="print" href="http://blog.csdn.net/imyang2007/article/details/7654700#">print</a><a target=_blank class="About" title="?" href="http://blog.csdn.net/imyang2007/article/details/7654700#">?</a></div></div><ol><li class="alt"><span><span>cd Source\ Insight\ 3/ </span></span></li><li><span>ls </span></li></ol></div><pre style="DISPLAY: none" class="plain" name="code">cd Source\ Insight\ 3/ ls
- <STRONG xmlns="http://www.w3.org/1999/xhtml"><IMG alt="" src="https://img-my.csdn.net/uploads/201206/12/1339496582_8939.png">
- 在终端输入命令:
- wine Insight3.exe
- 成功打开Source Insight!
- <STRONG>
- 备注:刚发现瞎忙了半天,安装完wine后在系统菜单里面有个wine选项,在那直接打开source insight就可以了(Wine->Programs->Source Insight3->Source Insight3.5),瞎折腾:(</STRONG></STRONG>
<strong xmlns="http://www.w3.org/1999/xhtml"><img alt="" src="https://img-my.csdn.net/uploads/201206/12/1339496582_8939.png" /> 在终端输入命令: wine Insight3.exe 成功打开Source Insight! <strong> 备注:刚发现瞎忙了半天,安装完wine后在系统菜单里面有个wine选项,在那直接打开source insight就可以了(Wine->Programs->Source Insight3->Source Insight3.5),瞎折腾:(</strong></strong>
转载请注明出处:<a target=_blank href="http://blog.csdn.net/imyang2007/article/details/7654700">http://blog.csdn.net/imyang2007/article/details/7654700</a>