在ubuntu12.04中安装wine和sourceinsight

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软件即可。

  1. 安装wine
    在终端输入以下命令:
    1. sudo apt-get install wine  
    sudo apt-get install wine
  2. 用wine安装Source Insight
    在终端中输入以下命令:
    1. wine ~/SourceInsight/InsightSetup.exe  
    wine ~/SourceInsight/InsightSetup.exe
    注:SourceInsight的安装包要自行下载,跟windows下的安装一样。
  3. 导入工程即可,跟windows无异。


    附图:


  4. 如何打开SourceInsight?
    项目导入之后,把sourceInsight关闭之后,怎么再把SourceInsight打开?这时发现在终端不知道wine安装到哪了,还有SourceInsight的安装目录又在哪里?
    先在终端中输入命令
    1. cd ~  
    2. ll  
    cd ~
    ll
    发现多了个隐藏目录:
    .wine/
    进去看看:
    1. cd .wine/  
    2. ll  
    cd .wine/
    ll
    发现有以下目录:
    dosdevices  drive_c  system.reg  userdef.reg  user.reg
    其中drive_c默认为windows下C盘,打开进到该目录看看:
    1. cd drive_c  
    2. ls  
    cd drive_c
    ls

    这时基本上都能明白怎么回事了,打开Program Files:
    1. cd Program\ Files/  
    2. ls  
    cd Program\ Files/
    ls

    总算找到它了,打开看看:
    1. <PRE class=plain name="code">cd Source\ Insight\ 3/  
    2. ls</PRE><STRONG><BR>  
    3. </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">  
    4. 在终端输入命令:  
    5. wine Insight3.exe  
    6.   
    7. 成功打开Source Insight!  
    8. <STRONG>  
    9. 备注:刚发现瞎忙了半天,安装完wine后在系统菜单里面有个wine选项,在那直接打开source insight就可以了(Wine->Programs->Source Insight3->Source Insight3.5),瞎折腾:(</STRONG></STRONG></PRE><BR>  
    10. <PRE></PRE>  
    11. <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

    1. <STRONG xmlns="http://www.w3.org/1999/xhtml"><IMG alt="" src="https://img-my.csdn.net/uploads/201206/12/1339496582_8939.png">  
    2. 在终端输入命令:  
    3. wine Insight3.exe  
    4.   
    5. 成功打开Source Insight!  
    6. <STRONG>  
    7. 备注:刚发现瞎忙了半天,安装完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>



 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值