您的位置:首页 > 其它

ubuntu下安装 Source insight

2016-07-27 15:36 381 查看
转载请注明出处:<a target=_blank href="http://blog.csdn.net/imyang2007/article/details/7654700">http://blog.csdn.net/imyang2007/article/details/7654700</a>
习惯了在source insight下编辑阅读源码,在linux下用vi总是用不好 ,还是在ubuntu上用回熟悉的source insight。

在ubuntu中,安装windows程序用wine,然后用wine安装windows软件即可。

安装wine

在终端输入以下命令:

[plain]
view plain
copy

sudo apt-get install wine  

用wine安装Source Insight

在终端中输入以下命令:

[plain]
view plain
copy

wine ~/SourceInsight/InsightSetup.exe  

注:SourceInsight的安装包要自行下载,跟windows下的安装一样。
导入工程即可,跟windows无异。

附图:



如何打开SourceInsight?

项目导入之后,把sourceInsight关闭之后,怎么再把SourceInsight打开?这时发现在终端不知道wine安装到哪了,还有SourceInsight的安装目录又在哪里?

先在终端中输入命令

[plain]
view plain
copy

cd ~  
ll  

发现多了个隐藏目录:

.wine/

进去看看:

[plain]
view plain
copy

cd .wine/  
ll  

发现有以下目录:

dosdevices  drive_c  system.reg  userdef.reg  user.reg

其中drive_c默认为windows下C盘,打开进到该目录看看:

[plain]
view plain
copy

cd drive_c  
ls  



这时基本上都能明白怎么回事了,打开Program Files:

[html]
view plain
copy

cd Program\ Files/  
ls  



总算找到它了,打开看看:

[plain]
view plain
copy

<pre name="code" class="plain">cd Source\ Insight\ 3/  
ls</pre><strong><br>  
</strong><pre name="code" class="plain"><strong xmlns="http://www.w3.org/1999/xhtml"><img src="http://my.csdn.net/uploads/201206/12/1339496582_8939.png" alt="">  
在终端输入命令:  
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>  

在ubuntu14.04上安装wine,步骤如下:

<strong>Ubuntu 14.04安装Wine的步骤</strong><p><strong>  1.添加PPA</strong></p><p>  sudo add-apt-repository ppa:ubuntu-wine/ppa</p><p><strong>  2.更新列表</strong></p><p>  sudo apt-get update</p><p><strong>  3.安装Wine</strong></p><p>  sudo apt-get install wine1.7 winetricks</p><p><strong>  为了避免错误大家可以使用以下命令</strong></p><p>  sudo apt-get update</p><p>  上面就是Ubuntu 14.04安装Wine的方法介绍了,因为使用该方法安装的Wine可能不是最新版本,所以需要使用sudo apt-get update命令进行更新。</p>

<h1 class="postTitle"><a target=_blank id="cb_post_title_url" class="postTitle2" href="http://www.cnblogs.com/mliudong/p/4217945.html">E:无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系</a></h1><p>解决办法:</p><p>打开更新设置,在“更新”选项卡中选则:重要安全更新 和 推荐更新</p><p><img src="http://images.cnitblog.com/blog/566873/201309/12142528-b20cca0f58d246f5ab1c402ab9a75ae6.png" alt="" /></p><p>并在“其他软件”选项卡中,去掉有问题等源</p><p><img src="http://images.cnitblog.com/blog/566873/201309/12142716-2457c182dc0142e4987d9743761d4c20.png" alt="" /></p><p>最后在命令行里输入</p><div class="cnblogs_code"><pre>sudo apt-get update


更新一下即可

 

这之后进行安装都不会有类似问题了

ubuntu,在安装wine时停在了“正在设定 ttf-mscorefonts-installer”,怎么确定啊

TAB 选择确定吧

回车



                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: