Ubuntu下安装 Source insight

本文指导如何在Ubuntu Linux环境下安装并配置Source Insight,包括安装Wine、使用Wine安装Source Insight以及解决常见问题的方法,确保稳定运行。

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

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

1、安装wine

1)、在终端输入以下命令:

sudo apt-get install wine

2)、上述命令安装的wine可能不是最新版本,如果安装最新版本,在如下网址:

http://www.winehq.org/

按照该网站说明安装wine:

打开ubuntu software centor--->Edit->Software Sources---->Other  Software--->Add,添加ppa:ubuntu-wine/ppa

参考网址http://www.winehq.org/download/ubuntu

然后点击上述网址中的:

To install the older, stable Wine 1.4 version, .

此时会出现一个对话框,点击对话框中的“Ubuntu Software Center”,这时就会出现安装wine1.4的界面。

如果上述方法不好用可以在命令行下执行如下3条命令:

sudo add-apt-repository ppa:ubuntu-wine/ppa

sudo apt-get update

sudo apt-get install wine1.4


2、用wine安装Source Insight

注意:如果安装完SourceInsight后如果经常崩溃,请更换一个版本的SourceInsight。

目前采用的系统如下:ubuntu11.10-64bit+wine1.4+SourceInsight3.5.0029,还没有出现崩溃的情况,比较稳定。

在终端中输入以下命令:

wine ~/SourceInsight/InsightSetup.exe

如果遇到如下问题:There was an error opening project……

网上的解释是英文系统没有这个问题,中文个会有这个问题,将Project-->Preferences-->Folders-->Main User Data Folder选个别的目录就可以了。(这是从网上找到的解决方法,但是好像不管用)

也可以尝试下如下方法,重新安装Source Insight:

Source Insight启动报错自动退出

This could be caused by a corrupted project or configuration file. I would try this in the following order:

1. open a cmd shell and run it like this:

insight3.exe /pc

which runs SI but does not open the current project. If it works without crashing, then the project needs rebuilding.

2. Otherwise, locate the configuration file: “My Documents\Source Insight\Settings\Global.CF3″ and rename it to something else, then start SI. If no crash, then the config file was corrupted.

3. Otherwise, perform a clean install.
——

To fully remove and install Source Insight, do the following:

1. Exit SI.
2. Run the Uninstaller.
3. Run regedit and delete the following 2 keys:

HKEY_LOCAL_MACHINE\SOFTWARE\Source Dynamics\Source Insight
HKEY_CURRENT_USER\SOFTWARE\Source Dynamics\Source Insight

4. Delete the folder “Program Files\Source Insight” or where ever you installed the program.
5. Delete the folder “My Documents\Source Insight”.
6. Delete your temp files, on Windows XP it is usually stored in “C:\Documents and Settings\user_name\Local Settings\Temp”, where “user_name” is your user name. DO NOT SKIP THIS STEP!  

If you are running Vista, the temp directories are usually here:
C:\Users\\AppData\temp
C:\Users\Default\AppData\temp
C:\Windows\Temp

Finally, run the installer to reinstall it.  You can get the latest build of SI fromwww.sourceinsight.com/update.html.


注:SourceInsight的安装包要自行下载,跟windows下的安装一样。

导入工程即可,跟windows无异。

附图:



如何打开SourceInsight?

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

先在终端中输入命令

cd ~

ll

发现多了个隐藏目录:

.wine/

进去看看:

cd .wine/

ll

发现有以下目录:

dosdevices  drive_c  system.reg  userdef.reg  user.reg

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

cd drive_c

ls

Program Files Users windows


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

cd Program\ Files/

ls

Common Files Internet Explorer Source Insight 3


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

=================

cd Source\ Insight\ 3/

ls


在终端输入命令:

wine Insight3.exe

成功打开Source Insight!

备注:刚发现瞎忙了半天,安装完wine后在系统菜单里面有个wine选项,在那直接打开source insight就可以了(Wine->Programs->Source Insight3->Source Insight 3.5)



评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值