Ubuntu下安装 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条命令:

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 DocumentsSource InsightSettingsGlobal.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_MACHINESOFTWARESource DynamicsSource Insight
HKEY_CURRENT_USERSOFTWARESource DynamicsSource Insight

4. Delete the folder “Program FilesSource Insight” or where ever you installed the program.
5. Delete the folder “My DocumentsSource Insight”.
6. Delete your temp files, on Windows XP it is usually stored in “C:Documents and Settingsuser_nameLocal SettingsTemp”, 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\AppDatatemp
C:UsersDefaultAppDatatemp
C:WindowsTemp

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

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

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

附图:

Ubuntu下安装 Source insight

如何打开SourceInsight/p>

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

先在终端中输入命令

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

Ubuntu下安装 Source insight

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

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

cd Source Insight 3/

ls

Ubuntu下安装 Source insight

在终端输入命令:

wine Insight3.exe

成功打开Source Insight!

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

文章知识点与官方知识档案匹配,可进一步学习相关知识CS入门技能树Linux入门在线安装软件24975 人正在系统学习中

来源:天马行空_天马行空

声明:本站部分文章及图片转载于互联网,内容版权归原作者所有,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2013年9月20日
下一篇 2013年9月20日

相关推荐