ubuntu下安装 Source insight

本文指导您如何在Ubuntu系统中通过wine安装并使用Windows程序SourceInsight,包括安装wine、安装SourceInsight、打开及定位安装目录等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

习惯了在source insight下编辑阅读源码,在linux下用vi总是用不好 ,还是在ubuntu上用回熟悉的source insight。

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

  1. 安装wine
    在终端输入以下命令:其中 安装时要按TAB建进行选择!!!
    [plain]  view plain copy
    1. sudo apt-get install wine  
  2. 用wine安装Source Insight
    在终端中输入以下命令:
    [plain]  view plain copy
    1. wine ~/SourceInsight/InsightSetup.exe  
    注:SourceInsight的安装包要自行下载,跟windows下的安装一样。
  3. 导入工程即可,跟windows无异。


    附图:


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

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

    总算找到它了,打开看看:
    [plain]  view plain copy
    1. <pre name="code" class="plain">cd Source\ Insight\ 3/  
    2. ls</pre><strong><br>  
    3. </strong><pre name="code" class="plain"><strong xmlns="http://www.w3.org/1999/xhtml"><img src="https://img-my.youkuaiyun.com/uploads/201206/12/1339496582_8939.png" alt="">  
    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>  



<span style="color:#ff0000;">转载地址:<a target=_blank href="http://blog.youkuaiyun.com/imyang2007/article/details/7654700" style="text-decoration: none;">http://blog.youkuaiyun.com/imyang2007/article/details/7654700</a></span>
Ubuntu系统上安装Source Insight(SI),你需要先确保你的系统已经更新到最新版本,并安装必要的依赖。以下是基本步骤: 1. **打开终端**:通过Ctrl + Alt + T快捷键打开终端。 2. **更新包列表**: ``` sudo apt update ``` 3. **安装依赖**: Source Insight需要一些开发工具,比如`git`和`build-essential`: ``` sudo apt install git cmake ``` 4. **下载源码**: 访问Source Insight的官方网站 (<https://www.sourceinsight.com/download.html>) 下载适用于LinuxSource Insight安装包,通常是`.tar.gz`格式。 5. **解压并进入目录**: ``` tar -zxvf sourceinsight_x.x.x.tar.gz cd sourceinsight_x.x.x ``` 6. **配置安装**: 进入源码目录后,通常会有一个叫做`configure`的脚本,运行它进行自定义配置: ``` ./configure ``` 按照提示选择合适的选项,例如是否启用图形界面等。 7. **编译并安装**: ``` make && sudo make install ``` 8. **启动Source Insight**: 安装完成后,可以在终端输入 `sourceinsight` 启动它,首次运行可能需要设置一些环境变量。 9. **(可选)创建桌面图标**: 可以通过命令行安装Unity-Tweak-Tool来创建桌面快捷方式,如果不需要可以直接在终端中运行: ``` sudo apt-get install unity-tweak-tool unity-tweak-tool --add-app=/usr/bin/sourceinsight ``` 请注意,由于Source Insight是一个付费软件,在非商业用途中可能会有许可证限制。如果你是学生或教育工作者,可能可以申请免费试用或学术许可。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值