代码改变世界

ubuntu 12.04lts 安装insight6.8a

2013-10-12 11:43  playerboy  阅读(333)  评论(0编辑  收藏  举报

本来以为安装非常容易的,没想到费了不少功夫。首先需要源代码编译安装,从ftp://ftp.mirrorservice.org/sites/sourceware.org/pub/insight/releases/下载源代码,tar -fxk insight-6.8a.tar.bz2解压,进入解压的文件夹。在编译安装时候遇到的错误有:

error: variable 'warned' set but not used [-Werror=unused-but-set-variable]

Tk_Init failed: Can't find a usable tk.tcl in the following directories:

第一条解决方案:http://forum.ubuntu.org.cn/viewtopic.php?f=88&t=269998 十楼回复,

1. sudo apt-get install libx11-dev
2. sudo apt-get install libncurses5-dev
3. tar -xjvf insight-6.8-1.tar.bz2
4. cd insight-6.8-1/
5. ./configure –disable-werror
6. sudo make
7. sudo make install

这个时候安装是成功了,但是运行时候遇到第二个错误,第二个错误解决方案:http://www.linuxidc.com/Linux/2013-03/80391.htm,注释掉一些代码:

注掉 lines 182-184 in the file /opt/sourcenav/share/tk8.3/listbox.tcl
注掉 lines 461-463 in the file /opt/sourcenav/share/tk8.3/text.tcl

好吧,到此可以运行insight了,就是感觉和常用的vs相比,差距还很大。。。