下了源代码包
解压 tar zxvf sourcenav-6.0.tar.gz
cd sourcenav-6.0
sudo ./configure prefix=/opt/Program/sourcenav6
make
出错,如下
In file included from /opt/software/sourcenav-6.0/tk/unix/../generic/tkInt.h:21,
from /opt/software/sourcenav-6.0/tk/unix/../generic/tk3d.h:18,
from /opt/software/sourcenav-6.0/tk/unix/../generic/tk3d.c:16:
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:83:23: error: X11/Xlib.h: 没有该文件或目录
In file included from /opt/software/sourcenav-6.0/tk/unix/../generic/tkInt.h:21,
from /opt/software/sourcenav-6.0/tk/unix/../generic/tk3d.h:18,
from /opt/software/sourcenav-6.0/tk/unix/../generic/tk3d.c:16:
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:585: 错误: expected specifier-qualifier-list before ‘Bool’
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:601: 错误: expected specifier-qualifier-list before ‘Bool’
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:661: 错误: expected specifier-qualifier-list before ‘Display’
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:789: 错误: expected declaration specifiers or ‘...’ before ‘XPoint’
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:890: 错误: expected declaration specifiers or ‘...’ before ‘Display’
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:892: 错误: expected declaration specifiers or ‘...’ before ‘Display’
/opt/software/sourcenav-6.0/tk/unix/../generic/tk.h:892: 错误: expected declaration specifiers or ‘...’ before ‘Drawable’
...............
..............
在sogou上查了Xlib.h: 没有该文件或目录
说是缺少libx11-dev包,通过"新立得软件包管理器"搜libx11-dev,下载................
再接着make,成功
然后
make -install
一切都美好了............哈哈
不过通过新立德下载libx11-dev时,想通过ubutun的dvd搜索,虽然找到了,但是会报hash错误,把md5一算,靠,dvd居然下烂了.........