開發程式的工程師常常會去Trace 他人的Code,來幫助自己完成計畫,在 Windows下有Source Insight付費軟體可以使用,但是在Linux就是Source Navigator的免費軟體.不過安裝前要先編譯與修改兩三行程式,就可以在Ubuntu下使用.
1. 實驗環境:
Linux OS: Ubuntu10.04.
2. 實驗步驟:
(1). 至下列網址下載最新版本的程式:
http://sourcenav.sourceforge.net/index.html
使用說明如下列網址:
http://sourcenav.sourceforge.net/online-docs/userguide/index_ug.html(2). 選擇最新版本的程式下載.

(3). 使用〝Terminal〞,輸入〝
tar xvf sourcenav-6.0.tar.gz〞,解壓縮.

(4). 輸入〝
cd sourcenav-6.0/〞,至目錄下.

(5). 輸入〝
./configure --prefix=/opt/sourcenav〞.

(6). 輸入〝
make〞,開始編譯.

注意: 如果make結果發生error時,請安裝〝
sudo apt-get install libx11-dev〞.

(7). 輸入〝
sudo make install〞,開始安裝.

(8). 安裝完成後如果馬上執行此程式會發生無法執行的情形,需要註解一些程式碼,先開啟路徑〝
/opt/sourcenav/share/tk8.3/listbox.tcl〞的檔案.

註解掉line 182~184,如下所示.

再開啟路徑〝
/opt/sourcenav/share/tk8.3/text.tcl〞的檔案.

註解掉line 457~459,如下所示.

注意: 如果無法存檔,請使用〝Terminal〞設定權限〝
sudo chmod -R 777 sourcenav/〞.
(9). 輸入〝
cd /opt/sourcenav/bin/〞,至目錄下.

(10). 輸入〝
./snavigator〞,執行程式.

(11). 正常執行程式.
沒有留言:
張貼留言