在Ubuntu下裝sourcenavigator6.0
下了原始碼包
解壓 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居然下爛了.........