소스 분석 툴 ( Linux) tools

cscope
lxr
ctags


위 3가지는 Ubuntu에서 apt-get install로 설치가능한 것이고


http://sources.redhat.com/sourcenav/ source navigator


위의 링크와 이름은 우분투에서 apt-get install로 설치가 되지 않았으나, GUI로 상당히 쓸만한 것이기에 적는다.


// 추가 첨부 문서


1. 다음 사이트에서 source navigator의 최신 버젼을 다운로드한다.

http://sourcenav.sourceforge.net/

2. source navigator 설치를 위해 필요한 컴포넌트들을 설치한다.

$ apt-get install build-essential autoconf automake libxmu-dev libxt-dev libxt6 libsm-dev libsm6 libice-dev libice6 libxmu-dev

3. source navigator 압축을 해제후 설치한다

$ tar xvzf sourcenav-6.0.tar.gz

$ cd sourcenav-6.0

$ ./configure --prefix=/opt/sourcenav

$ make

$ make install

4. source navigator의 path를 지정한다.

$ vi $HOME/.bashrc

- .bashrc -

PATH=$PATH:/opt/sourcenav/bin

5. 지정된 path를 적용한다.

$ source $HOME/.bashrc

6. source navigator을 실행한다.

$ snavigator &

7. 설치후, 실행할 때 다음과 같은 오류가 나올때!!

Can't find a usable tk.tcl in the following directories:
/opt/sourcenav/share/tk8.3

/opt/sourcenav/share/tk8.3/tk.tcl: no event type or button # or keysym
no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
(file "/opt/sourcenav/share/tk8.3/listbox.tcl" line 182)
invoked from within
"source [file join $tk_library listbox.tcl]"
invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && \
[string compare {} $tk_library]} {
source [file join $tk_library button.tcl]
so..."
(file "/opt/sourcenav/share/tk8.3/tk.tcl" line 308)
invoked from within
"source /opt/sourcenav/share/tk8.3/tk.tcl"
("uplevel" body line 1)
invoked from within
"uplevel \#0[list source $file]"


This probably means that tk wasn't installed properly.

다음과 같은 부분을 주석 처리한다

/opt/sourcenav/share/tk8.3/listbox.tcl 파일 안에 182-184줄

/opt/sourcenav/share/tk8.3/text.tcl 파일 안에 457-459줄

아마.. 마우스 휠과 관련된 부분인 것 같다..

'Computer Science' 카테고리의 다른 글

[알아봅시다] 스토리텔링  (0) 2011.12.21
libpcap 를 이용한 프로그래밍  (0) 2011.12.18
C 코드 분석 참고자료  (0) 2011.12.18
[공부] Tcpdump & pcap분석  (0) 2011.12.08
자바 입출력( java stream )  (1) 2011.12.08

+ Recent posts