우분투 8.04에서의 ns2설치에 관하여 문의 드립니다

============================================================

  • Testing for Cygwin environment
    ============================================================
    Cygwin not detected, proceeding with regular install.
    ============================================================
  • Build XGraph-12.1
    ============================================================
    loading cache ./config.cache
    checking for a BSD compatible install… (cached) /usr/bin/install -c
    checking whether build environment is sane… yes
    checking whether make sets ${MAKE}… (cached) yes
    checking for working aclocal… found
    checking for working autoconf… found
    checking for working automake… found
    checking for working autoheader… found
    checking for working makeinfo… found
    checking if malloc debugging is wanted… no
    checking for gcc… (cached) gcc
    checking whether the C compiler (gcc ) works… yes
    checking whether the C compiler (gcc ) is a cross-compiler… no
    checking whether we are using GNU C… (cached) yes
    checking whether gcc accepts -g… (cached) yes
    checking how to run the C preprocessor… (cached) gcc -E
    checking for X… (cached) libraries , headers
    checking for dnet_ntoa in -ldnet… (cached) no
    checking for dnet_ntoa in -ldnet_stub… (cached) no
    checking for gethostbyname… (cached) yes
    checking for connect… (cached) yes
    checking for remove… (cached) yes
    checking for shmat… (cached) yes
    checking for IceConnectionNumber in -lICE… (cached) yes
    checking for float.h… (cached) yes
    checking for limits.h… (cached) yes
    checking for stdlib.h… (cached) yes
    checking for string.h… (cached) yes
    checking for strings.h… (cached) yes
    checking for unistd.h… (cached) yes
    checking for strcasecmp… (cached) yes
    creating ./config.status
    creating Makefile
    creating autoconf.h
    autoconf.h is unchanged
    xgraph has been installed successfully.
    ============================================================
  • Build CWeb
    ============================================================
    Making cweb
    gcc -g -c -o ctangle.o ctangle.c
    ctangle.w:75: warning: conflicting types for built-in function ‘strlen’
    gcc -g -DCWEBINPUTS="/usr/local/lib/cweb" -c common.c
    common.w:1409: warning: conflicting types for built-in function ‘strlen’
    gcc -g -o ctangle ctangle.o common.o
    gcc -g -c -o cweave.o cweave.c
    cweave.w:79: warning: conflicting types for built-in function ‘strlen’
    gcc -g -o cweave cweave.o common.o
    ln: creating symbolic link cweave': File exists ln: creating symbolic link ctangle’: File exists
    ============================================================
  • Build Stanford GraphBase
    ============================================================
    Making sgb
    cc -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io
    cc -g -I/usr/local/sgb/include test_graph.c gb_graph.o -o test_graph
    cc -g -I/usr/local/sgb/include test_flip.c gb_flip.o -o test_flip
    ./test_io
    OK, the gb_io routines seem to work!
    ./test_graph
    …Hey, I allocated 10000000 bytes successfully. Terrific…
    OK, the gb_graph routines seem to work!
    ./test_flip
    OK, the gb_flip routines seem to work!
    make gb_sort.o
    make[1]: Entering directory /home/parko/ns-allinone-2.29/sgb' make[1]: gb_sort.o’는 이미 갱신되었습니다.
    make[1]: Leaving directory /home/parko/ns-allinone-2.29/sgb' make lib make[1]: Entering directory /home/parko/ns-allinone-2.29/sgb’
    make[1]: lib'를 위해 할 일이 없습니다 make[1]: Leaving directory /home/parko/ns-allinone-2.29/sgb’
    make test_sample
    make[1]: Entering directory /home/parko/ns-allinone-2.29/sgb' cc -g -I/usr/local/sgb/include -L. -L/usr/local/lib test_sample.c -lgb -lgb -o test_sample make[1]: Leaving directory /home/parko/ns-allinone-2.29/sgb’
    ./test_sample > sample.out
    diff test.gb test.correct
    diff sample.out sample.correct
    rm -f test.gb sample.out test_io test_io.exe test_graph test_graph.exe test_flip test_flip.exe test_sample test_sample.exe
    echo "Congratulations — the tests have all been passed."
    Congratulations — the tests have all been passed.
    touch certified
    cp: accessing `…/gt-itm/lib/libgb.a’: Not a directory
    ============================================================
  • Build GT-ITM
    ============================================================
    sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing…
    ============================================================
  • Build zlib
    ============================================================
    Checking for gcc…
    Building static library libz.a version 1.2.3 with gcc.
    Checking for unistd.h… Yes.
    Checking whether to use vs[n]printf() or s[n]printf()… using vs[n]printf()
    Checking for vsnprintf() in stdio.h… Yes.
    Checking for return value of vsnprintf()… Yes.
    Checking for errno.h… Yes.
    Checking for mmap support… Yes.
    gcc -O3 -DUSE_MMAP -c -o example.o example.c
    gcc -O3 -DUSE_MMAP -c -o adler32.o adler32.c
    gcc -O3 -DUSE_MMAP -c -o compress.o compress.c
    gcc -O3 -DUSE_MMAP -c -o crc32.o crc32.c
    gcc -O3 -DUSE_MMAP -c -o gzio.o gzio.c
    gcc -O3 -DUSE_MMAP -c -o uncompr.o uncompr.c
    gcc -O3 -DUSE_MMAP -c -o deflate.o deflate.c
    gcc -O3 -DUSE_MMAP -c -o trees.o trees.c
    gcc -O3 -DUSE_MMAP -c -o zutil.o zutil.c
    gcc -O3 -DUSE_MMAP -c -o inflate.o inflate.c
    gcc -O3 -DUSE_MMAP -c -o infback.o infback.c
    gcc -O3 -DUSE_MMAP -c -o inftrees.o inftrees.c
    gcc -O3 -DUSE_MMAP -c -o inffast.o inffast.c
    ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infback.o inftrees.o inffast.o
    gcc -O3 -DUSE_MMAP -o example example.o -L. libz.a
    gcc -O3 -DUSE_MMAP -c -o minigzip.o minigzip.c
    gcc -O3 -DUSE_MMAP -o minigzip minigzip.o -L. libz.a
    Zlib has been installed successfully.
    ============================================================
  • Build tcl8.4.11
    ============================================================
    loading cache ./config.cache
    checking whether to use symlinks for manpages… no
    checking whether to compress the manpages… no
    checking whether to add a package name suffix for the manpages… no
    checking for gcc… gcc
    checking whether the C compiler (gcc ) works… yes
    checking whether the C compiler (gcc ) is a cross-compiler… no
    checking whether we are using GNU C… yes
    checking whether gcc accepts -g… yes
    checking for building with threads… no (default)
    checking if the compiler understands -pipe… yes
    checking how to run the C preprocessor… gcc -pipe -E
    checking for sin… no
    checking for main in -lieee… yes
    checking for main in -linet… no
    checking for net/errno.h… no
    checking for connect… yes
    checking for gethostbyname… yes
    checking how to build libraries… static
    checking for ranlib… ranlib
    checking if 64bit support is requested… no
    checking if 64bit Sparc VIS support is requested… no
    checking system version (for dynamic loading)… ./configure: 1: Syntax error: Unterminated quoted string
    tcl8.3.2 configuration failed! Exiting …
    Tcl is not part of the ns project. Please see http://www.Scriptics.com
    to see if they have a fix for your platform.

우분투 8.04버전에서 NS-allinone-2.29버전을 까려고 하는데 여기까지 어찌어찌 컴파일러들 설치하면서 왔는데

더이상 진행이 안되네요 대충

============================================================

  • Build GT-ITM
    ============================================================
    sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing…
    ============================================================

이부분때문에 그런것 같은데

sudo apt-get install sgb
해서 설치했는데도 안되네요.

tcl8.3.2 configuration failed! Exiting … 만 계속 뜨고…

해결할 방법이 없을까요?

[ns-allinone-2.29/tcl8.4.11]$ gedit unix/configure

tcl8.4.11 의 configure 파일을 고치세요.

라인 2133 으로 가서

system=MP-RAS-awk '{print }' /etc/.relid'

system=MP-RAS-awk '{print }' /etc/.relid

로 고치고

라인 7611 으로 가서 마찬가지로

system=MP-RAS-awk '{print }' /etc/.relid'

system=MP-RAS-awk '{print }' /etc/.relid

고친후에 다시 해보세요.

reandr 님 // 감사합니다 ^^

저렇게 편집한 후에 그 뒷부분까지 설치가 되기는 하는데

마지막에 Makefile 오류가 나네요.

하… 산넘어 산이네요 ㅠ