GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Linux
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #51  
Old 26-Mar-2008, 06:49
ArturoD ArturoD is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Location: Kumamoto, Japan
Posts: 12
ArturoD is on a distinguished road

Re: run script command on ns2.26


Hello Dave

Thank you for your prompt answer, I re-install my system this weeken and I included all the development packages and tools, so I hope this will help a little in the installation process, here are the results that I found:

In the directory ns.../sgb I didn't have the file libgb.a file, so I performed make tests in the process I found that there were several warnings like:

Quote:
......
cc -g -I/usr/local/sgb/include -DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c
./gb_io.w: In function ‘imap_chr’:
./gb_io.w:194: warning: incompatible implicit declaration of built-in function ‘strlen’
./gb_io.w: In function ‘imap_ord’:
./gb_io.w:201: warning: comparison is always false due to limited range of data type
./gb_io.w: In function ‘gb_r_open’:
./gb_io.w:457: warning: incompatible implicit declaration of built-in function ‘strlen’
./gb_io.w: In function ‘gb_open’:
./gb_io.w:467: warning: incompatible implicit declaration of built-in function ‘strncpy’
./gb_io.w:502: warning: incompatible implicit declaration of built-in function ‘strlen’
./gb_io.w: In function ‘gb_close’:
./gb_io.w:542: warning: incompatible implicit declaration of built-in function ‘strlen’
.............
./gb_graph.w: In function ‘gb_nugraph’:
./gb_graph.w:455: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_graph.w: In function ‘make_compound_id’:
./gb_graph.w:492: warning: incompatible implicit declaration of built-in function ‘strlen’
./gb_graph.w:494: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_graph.w: In function ‘make_double_compound_id’:
./gb_graph.w:508: warning: incompatible implicit declaration of built-in function ‘strlen’
.............
./gb_basic.w: In function ‘board’:
./gb_basic.w:277: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_basic.w: In function ‘simplex’:
./gb_basic.w:543: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_basic.w: In function ‘subsets’:
./gb_basic.w:753: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_basic.w: In function ‘perms’:
./gb_basic.w:949: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_basic.w: In function ‘parts’:
./gb_basic.w:1140: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_basic.w: In function ‘binary’:
./gb_basic.w:1340: warning: incompatible implicit declaration of built-in function ‘strcpy’
......................
./gb_econ.w: In function ‘econ’:
./gb_econ.w:230: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_econ.w:304: warning: incompatible implicit declaration of built-in function ‘strlen’
...................
./gb_gates.w: In function ‘reduce’:
./gb_gates.w:1402: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_gates.w: In function ‘risc’:
./gb_gates.w:530: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_gates.w: In function ‘prod’:
./gb_gates.w:1528: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_gates.w: In function ‘partial_gates’:
./gb_gates.w:1928: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_gates.w:1929: warning: incompatible implicit declaration of built-in function ‘strlen’
.................
./gb_lisa.w:513: warning: incompatible implicit declaration of built-in function ‘strcpy’
..................
./gb_miles.w:157: warning: incompatible implicit declaration of built-in function ‘strcpy’
make[2]: Leaving directory `/home/Dennis/ns-allinone-2.31/sgb'
.................
./gb_plane.w:134: warning: incompatible implicit declaration of built-in function ‘strcpy’
................
./gb_raman.w:249: warning: incompatible implicit declaration of built-in function ‘strcpy’
...........
./gb_roget.w: In function ‘roget’:
./gb_roget.w:107: warning: incompatible implicit declaration of built-in function ‘strcpy’
.............
./gb_save.w: In function ‘move_item’:
./gb_save.w:712: warning: incompatible implicit declaration of built-in function ‘strlen’
./gb_save.w:723: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_save.w:728: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_save.w: In function ‘restore_graph’:
./gb_save.w:177: warning: incompatible implicit declaration of built-in function ‘strlen’
./gb_save.w:195: warning: incompatible implicit declaration of built-in function ‘strcpy’
./gb_save.w: In function ‘save_graph’:
./gb_save.w:792: warning: incompatible implicit declaration of built-in function ‘strlen’
./gb_save.w:793: warning: incompatible implicit declaration of built-in function ‘strcpy’
make[2]: Leaving directory `/home/Dennis/ns-allinone-2.31/sgb'
...................
echo "Congratulations --- the tests have all been passed."
Congratulations --- the tests have all been passed.
touch certified


After that the file libg.a appeared:

Quote:
-rw-r--r-- 1 Dennis Dennis 15798 Mar 11 2007 ladders.w
-rw-rw-r-- 1 Dennis Dennis 253636 Mar 26 17:43 libgb.a
-rw-r--r-- 1 Dennis Dennis 114766 Mar 11 2007 lisa.dat

Back to ns-allinone-2.31 this is the result of ls-l

drwxrwxr-x 7 Dennis Dennis 4096 Mar 26 17:41 gt-itm

Once I'm in /gt-itm there is no lib directory:

Quote:
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 docs
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 include
drwxrwxr-x 3 Dennis Dennis 4096 Mar 26 17:41 sample-graphs
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 sgb2ns
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 src

So I proceed to create it in order to do the next step:

Now:

Quote:
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 docs
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 include
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 18:30 lib
drwxrwxr-x 3 Dennis Dennis 4096 Mar 26 17:41 sample-graphs
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 sgb2ns
drwxrwxr-x 2 Dennis Dennis 4096 Mar 26 17:41 src

I copied the file libgb.a

After perform the installation I found the following in the log file:

Quote:

================================================== ==========
* Build XGraph-12.1
================================================== ==========
.............
idraw.c:303: warning: incompatible implicit declaration of built-in function ‘strlen’
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xtb.c
xtb.c: In function ‘focus_evt’:
xtb.c:873: warning: incompatible implicit declaration of built-in function ‘printf’
xtb.c:882: warning: incompatible implicit declaration of built-in function ‘printf’
xtb.c: In function ‘xtb_hort’:
xtb.c:1279: warning: incompatible implicit declaration of built-in function ‘printf’
xtb.c: In function ‘xtb_vert’:
xtb.c:1321: warning: incompatible implicit declaration of built-in function ‘printf’
xtb.c: In function ‘xtb_fmt_setpos’:
xtb.c:1351: warning: incompatible implicit declaration of built-in function ‘printf’
xtb.c: In function ‘xtb_fmt_addpos’:
xtb.c:1379: warning: incompatible implicit declaration of built-in function ‘printf’
xtb.c: In function ‘xtb_fmt_top’:
xtb.c:1520: warning: incompatible implicit declaration of built-in function ‘printf’
xtb.c:1529: warning: incompatible implicit declaration of built-in function ‘printf’
.............
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
./ctangle cweave
This is CTANGLE (Version 3.4)
*1*16*29*37*58*77*88*96*103*173*184*204*224*249
Writing the output file (cweave.c):.....500.....1000.....1500.....2000.... .2500.....3000....
Done.
(No errors were found.)
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

================================================== ==========
* Build Stanford GraphBase
================================================== ==========

Congratulations --- the tests have all been passed.
touch certified

================================================== ==========
* Build GT-ITM
================================================== ==========
gcc -I../include -L../lib -DFBSD -c -o itm.o itm.c
gcc -I../include -L../lib -DFBSD -c -o geog.o geog.c
geog.c: In function ‘geo’:
geog.c:203: warning: incompatible implicit declaration of built-in function ‘alloca’
geog.c:206: warning: incompatible implicit declaration of built-in function ‘malloc’
geog.c: In function ‘geo_hier’:
geog.c:426: warning: incompatible implicit declaration of built-in function ‘calloc’
gcc -I../include -L../lib -DFBSD -c -o ts.o ts.c
ts.c: In function ‘fdiam’:
ts.c:85: warning: incompatible implicit declaration of built-in function ‘alloca’
ts.c:89: warning: incompatible implicit declaration of built-in function ‘malloc’
ts.c:96: warning: incompatible implicit declaration of built-in function ‘malloc’
ts.c:99: warning: incompatible implicit declaration of built-in function ‘alloca’
ts.c: In function ‘die’:
ts.c:177: warning: incompatible implicit declaration of built-in function ‘exit’
ts.c: In function ‘transtub’:
ts.c:272: warning: incompatible implicit declaration of built-in function ‘malloc’
ts.c:543: warning: incompatible implicit declaration of built-in function ‘exit’
gcc -I../include -L../lib -DFBSD -c -o dfs.o dfs.c
dfs.c: In function ‘isconnected’:
dfs.c:34: warning: incompatible implicit declaration of built-in function ‘alloca’
dfs.c:36: warning: incompatible implicit declaration of built-in function ‘malloc’
gcc -I../include -L../lib -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
/usr/bin/ld: cannot open output file ../bin/itm: No such file or directory
collect2: ld returned 1 exit status
make: *** [itm] Error 1
gcc -I../include -L../lib -c -o sgb2comns.o sgb2comns.c
sgb2comns.c: In function ‘print_error’:
sgb2comns.c:108: warning: incompatible implicit declaration of built-in function ‘exit’
sgb2comns.c: In function ‘create_hierarchy’:
sgb2comns.c:185: warning: incompatible implicit declaration of built-in function ‘strcpy’
sgb2comns.c:188: warning: incompatible implicit declaration of built-in function ‘strstr’
sgb2comns.c:196: warning: incompatible implicit declaration of built-in function ‘malloc’
sgb2comns.c:196: warning: incompatible implicit declaration of built-in function ‘strlen’
sgb2comns.c:199: warning: incompatible implicit declaration of built-in function ‘strcat’
sgb2comns.c:220: warning: incompatible implicit declaration of built-in function ‘strcat’
sgb2comns.c:226: warning: incompatible implicit declaration of built-in function ‘malloc’
sgb2comns.c:226: warning: incompatible implicit declaration of built-in function ‘strlen’
sgb2comns.c:234: warning: incompatible implicit declaration of built-in function ‘malloc’
sgb2comns.c:234: warning: incompatible implicit declaration of built-in function ‘strlen’
sgb2comns.c:247: warning: incompatible implicit declaration of built-in function ‘strcat’
sgb2comns.c:256: warning: incompatible implicit declaration of built-in function ‘malloc’
sgb2comns.c:256: warning: incompatible implicit declaration of built-in function ‘strlen’
sgb2comns.c:275: warning: incompatible implicit declaration of built-in function ‘strcat’
gcc -I../include -L../lib -o ../bin/sgb2comns sgb2comns.o -lm -lgb
/usr/bin/ld: cannot open output file ../bin/sgb2comns: No such file or directory
collect2: ld returned 1 exit status
make: *** [sgb2comns] Error 1

================================================== ==========
* Build zlib
================================================== ==========
......................
Zlib has been installed successfully.

================================================== ==========
* Build tcl8.4.14
================================================== ==========

I have several messages like this:

gcc -pipe -c -O2 -DTCL_DBGX= -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/home/Dennis/ns-allinone-2.31/tcl8.4.14/unix/../generic -I/home/Dennis/ns-allinone-2.31/tcl8.4.14/unix -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_SHLIB_EXT=\".so\" /home/Dennis/ns-allinone-2.31/tcl8.4.14/unix/tclAppInit.c
gcc -pipe -O2 -DTCL_DBGX= -Wl,--export-dynamic tclAppInit.o -L/home/Dennis/ns-allinone-2.31/tcl8.4.14/unix -ltcl8.4 -ldl -lieee -lm \
-Wl,-rpath,/home/Dennis/ns-allinone-2.31/lib -o tclsh
...............................

tcl8.4.14 installation succeeded.

================================================== ==========
* Build Tk8.4.14
================================================== ==========
.............
I have several messages like this:

gcc -pipe -c -O2 -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/home/Dennis/ns-allinone-2.31/tk8.4.14/unix -I/home/Dennis/ns-allinone-2.31/tk8.4.14/unix/../generic -I/home/Dennis/ns-allinone-2.31/tk8.4.14/unix/../bitmaps -I/home/Dennis/ns-allinone-2.31/tcl8.4.14/generic -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED /home/Dennis/ns-allinone-2.31/tk8.4.14/unix/../generic/tk3d.c

tk8.4.14 installation succeeded.


================================================== ==========
* Build OTcl-1.13
================================================== ==========
....................
otcl-1.13 has been installed successfully.

================================================== ==========
* Build Tclcl-1.19
================================================== ==========
..............................
I found several messages like this:
gcc -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/Dennis/ns-allinone-2.31/otcl-1.13 -I/home/Dennis/ns-allinone-2.31/include -I/home/Dennis/ns-allinone-2.31/include -I/home/Dennis/ns-allinone-2.31/include -o tcl2c++.o tcl2c++.c
rm -f tcl2c++
g++ -o tcl2c++ tcl2c++.o
g++ -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/Dennis/ns-allinone-2.31/otcl-1.13 -I/home/Dennis/ns-allinone-2.31/include -I/home/Dennis/ns-allinone-2.31/include -I/home/Dennis/ns-allinone-2.31/include -o Tcl.o Tcl.cc
.............................
ar rc libtclcl.a Tcl.o Tcl2.o idlecallback.o iohandler.o timer.o rate-variable.o tracedvar.o embedded-tcl.o embedded-tk.o embedded-tclobj.o
ranlib libtclcl.a
tclcl-1.19 has been installed successfully.
rm: cannot remove `./otcl-1.13/libotcl.so': No such file or directory

================================================== ==========
* Build ns-2.31
================================================== ==========

I found several messages like this (this one has much more than the others):
g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/Dennis/ns-allinone-2.31/tclcl-1.19 -I/home/Dennis/ns-allinone-2.31/otcl-1.13 -I/home/Dennis/ns-allinone-2.31/include -I/home/Dennis/ns-allinone-2.31/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tools/random.o tools/random.cc

make[1]: Leaving directory `/home/Dennis/ns-allinone-2.31/ns-2.31/indep-utils/webtrace-conv/ucb'
Ns has been installed successfully.

================================================== ==========
* Build nam-1.13
================================================== ==========

After checking, I have messages like this:
rm -f tkcompat.o; gcc -o tkcompat.o -c -Wall -DTCL_TK -DNO_VOID -DNDEBUG -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_LIBZ1_1_4 -DHAVE_ZLIB_H -I. -I/home/Dennis/ns-allinone-2.31/tclcl-1.19 -I/home/Dennis/ns-allinone-2.31/otcl-1.13 -I/home/Dennis/ns-allinone-2.31/include -I/home/Dennis/ns-allinone-2.31/include -I/usr/include tkcompat.c
.................
Please compile your gt-itm & sgb2ns separately.

Ns-allinone package has been installed successfully.

These are all the file that I can find, I hope you could help me to solve this.

Best regards

Dennis Arturo
  #52  
Old 26-Mar-2008, 09:22
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: run script command on ns2.26


Quote:
Originally Posted by ArturoD
Once I'm in /gt-itm there is no lib directory

Let me get this straight: When you untar ns-allinone-2.31.tar.gz and cd into ns-allinone-2.31/ns-2.31/gt-itm there is no lib directory? Then your copy of ns-allinone-2.31.tar.gz is defective. Where did you get it?

Nevermind...

Here's a suggestion: Since you need a new ns distribution file, get the most recent version.

Delete directory ns-allinone-2.31 and everything below it.

Go to http://www.isi.edu/nsnam/ns/ click on Download and Build ns

This takes you to http://www.isi.edu/nsnam/ns/ns-build.html

On that page, scroll down to the section that is titled Getting everything at once. Click on current release 2.32 That takes you to the sourceforge project page for ns.

Click on ns-allinone-2.32.tar.gz That takes you to a mirror from which you download the file. After the download is complete, here is what I get for my system:
Code:
$ ls -l ns-allinone-2.32.tar.gz -rw-rw-r-- 1 dave dave 51980957 Mar 24 07:08 ns-allinone-2.32.tar.gz

If your file size does not match this exactly, then you have a bad copy.
If it doesn't show that you are the owner, then log out and log back in as yourself.

Then
Code:
tar zxf ns-allinone-2.32.tar.gz

then
Code:
cd ns-allinone-2.32

Then

Code:
./install >install.log 2>& 1

In the install.log file there will be lots of warnings like
Code:
xtb.c:873: warning: incompatible implicit declaration of built-in function ‘printf’
Ignore them.

Now, when the install script has done its thing, open install.log with a text editor.

Here are my first 10 lines:
Code:
============================================================ * Testing for Darwin (OS X) environment ============================================================ ============================================================ * Testing for Cygwin environment ============================================================ Cygwin not detected, proceeding with regular install. ============================================================ * Build XGraph-12.1 ============================================================


Starting at about line 81:
Code:
xgraph has been installed successfully. ============================================================ * Build CWeb ============================================================ Making cweb

A reminder: Ignore messages that begin warning: incompatible implicit declaration of built-in function...

You can also ignore the message about gb_io.w:201: warning: comparison is always false due to limited range of data type
. That's OK. You can also ignore warnings that look like queue.h:77: warning: ‘class Queue’ has virtual functions but non-virtual destructor, You can also ignore warnings like editview.cc:85: warning: format ‘%-u’ expects type ‘unsigned int’, but argument 3 has type ‘long int’. You can also ignore warnings like trace.cc:112: warning: unused variable ‘pos’. You can also ignore warnings like proxytrace2any.cc:21: warning: non-local variable ‘<anonymous enum> OutputFormat’ uses anonymous type. These are all innocuous.

Anyhow, back to install.log. A few lines down

Code:
gcc -g -o cweave cweave.o common.o ============================================================ * Build Stanford GraphBase ============================================================ Making sgb

Somewhere around line 478:
Code:
Congratulations --- the tests have all been passed. touch certified ============================================================ * Build GT-ITM ============================================================


Line 559:
Code:
sgb2ns has been installed successfully. ============================================================ * Build zlib ============================================================

And so it goes, through builds for tcl8.4.15, Tk8.4.15, OTcl-1.13, Tclcl-1.19, ns.2.32, nam.1.13.

Note that there is this message:
Code:
============================================================ * Build ns-2.32 ============================================================ Makefile.in is newer than Makefile. You need to re-run configure. false make: *** [Makefile] Error 1

This particular message is part of the automatic build script(s), and does not indicate a problem. The bottom line for this section is
Code:
Ns has been installed successfully. ============================================================ * Build nam-1.13 ============================================================

Note also that this message is "normal" and is not a problem: rm: cannot remove `./otcl-1.13/libotcl.so': No such file or directory
.
Near the bottom of the log file I see the following:
Code:
Ns-allinone package has been installed successfully. Here are the installation places: tcl8.4.15: /Projects/ns-allinone-2.32/{bin,include,lib} tk8.4.15: /Projects/ns-allinone-2.32/{bin,include,lib} otcl: /Projects/ns-allinone-2.32/otcl-1.13 tclcl: /Projects/ns-allinone-2.32/tclcl-1.19 ns: /Projects/ns-allinone-2.32/ns-2.32/ns nam: /Projects/ns-allinone-2.32/nam-1.13/nam xgraph: /Projects/ns-allinone-2.32/xgraph-12.1 gt-itm: /Projects/ns-allinone-2.32/itm, edriver, sgb2alt, sgb2ns, sgb2comns, sgb2hierns
All of these packages should have been installed on your system. Of course the path will be yours, but the file names should be as shown. Follow the directions at the bottom of install.log to make the correct path and other environment variable assignments in your .bashrc (or .bash_profile) file.

cd into ns-allinone-2.32/ns-2.32 and
Code:
./validate

The goal is, that after many, many (many) tests, you would like to see, at the end:
Code:
These messages are NOT errors and can be ignored: warning: using backward compatibility mode This test is not implemented in backward compatibility mode validate overall report: all tests passed


Regards,

Dave
Last edited by davekw7x : 26-Mar-2008 at 10:27.
  #53  
Old 28-Mar-2008, 10:15
ArturoD ArturoD is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Location: Kumamoto, Japan
Posts: 12
ArturoD is on a distinguished road

Re: run script command on ns2.26


Hello Dave

Thank you very much for your prompt answer, I did it with the new distribution of NS-2 and it worked!!!!! I have the same messages than you and now I;m sure that the installation was successfull. Now I will re-read your previous post about where to place the files that indicates the last message of the installation, .bash_profile or .bashrc? that:s the question.

I will read your post carefully, I hope you could give me any additional advice about where to place this

Thank you very much again.

Best regards

Dennis Arturo
  #54  
Old 24-May-2008, 00:36
ArturoD ArturoD is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Location: Kumamoto, Japan
Posts: 12
ArturoD is on a distinguished road

Re: run script command on ns2.26


Hello Dave

Finally, after being a little bit sick, I finally finish the installation of the NS2 package it works great!!! Thenk you very much for your help.

Best regards from Japan

Dennis Arturo
  #55  
Old 20-Nov-2008, 05:11
ArturoD ArturoD is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Location: Kumamoto, Japan
Posts: 12
ArturoD is on a distinguished road

Re: run script command on ns2.26


Hello Dave

Is being a long time, thank you very much for you help in the installation of NS2, I have another question, I hope you would be able to help me.

I'm newbie in C programming, but at the same time I need to study this language as a base for other languages.

Could you tell me what kind of books, tutorials, compilers or other resources that I can use to learn C programming for Linux PCs?

Best regards and thank you for your help.

Regards

Dennis Arturo
  #56  
Old 20-Nov-2008, 13:26
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: run script command on ns2.26


Quote:
Originally Posted by ArturoD
...Could you tell me what kind of books, tutorials, compilers or other resources that I can use to learn C programming for Linux PCs?

Since it is an entirely new topic, it deserves a new thread. Furthermore, since it is about C programming, maybe a better place to post it would be the The C Programming Language Forum. Give the thread a meaningful title (something about "Looking for learning materials for C programming," or some such thing).

There are many helpful people who hang out there, but lots of them might not respond to a post about such a specialized topic as ns2.26.

Regards,

Dave
  #57  
Old 21-Nov-2008, 00:42
ArturoD ArturoD is offline
Awaiting Email Confirmation
 
Join Date: Mar 2008
Location: Kumamoto, Japan
Posts: 12
ArturoD is on a distinguished road

Re: run script command on ns2.26


Hello Dave

Thank you very much for your kind advice, I already made the post, if you have any advice please let me know.

The link:
www.gidforums.com

Best regards

Dennis
  #58  
Old 09-Dec-2008, 01:12
Diaz Diaz is offline
New Member
 
Join Date: Dec 2008
Location: Malaysia
Posts: 3
Diaz is on a distinguished road

Re: run script command on ns2.26


Hi Dave! I enjoy reading all the tips provided in most of your replies. it's very helpful especially for the newbies like me..

I have a problem with generating the nam directly after building the tcl script where the nam window didn’t seem to open. If i am not mistaken, the nam will be executed right after we enter the last line of tcl script command ($ns run), rite?? My nam-1.13 just works fine as i can open it directly from it’s own directory but not from the tcl script.

However i got this warning message as i try to run the tcl script. do u know what this warning sign is about?

./ns
ns ns-simple.tcl

warning : using backward compatibility mode
error when calling class OldSim : ns-simple.tcl

For your information i'm running ns-2.31 on my kubuntu..
  #59  
Old 09-Dec-2008, 08:53
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,217
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: run script command on ns2.26


Quote:
Originally Posted by Diaz

./ns
ns ns-simple.tcl

You don't run tcl scripts from inside ns. Use the tcl script as a command-line argument.

If simple.tcl is in the current directory, enter the following from a command-line prompt:

Code:
ns simple.tcl

If it is not in the current directory, supply the path name on the command line.

For example:
Code:
ns tcl/ex/simple.tcl

or
Code:
ns ~/tcl_examples/ns-simple.tcl

or some such thing...

Some explanation: Simple-Simulation Example

Regards,

Dave

Footnote: I am not an expert on ns, and it's not very often that I can actually help with "real" projects, but I have tried to help some few people get started with installations on Linux.

Once you can run enough examples from your favorite tutorial, you are ready for action, and I would like to hear success stories about whatever people are actually doing with ns.
  #60  
Old 10-Dec-2008, 02:13
Diaz Diaz is offline
New Member
 
Join Date: Dec 2008
Location: Malaysia
Posts: 3
Diaz is on a distinguished road

Re: run script command on ns2.26


Hi Dave!

Thanks a lot for your quick reply. I feel relieved as i never have anyone to assist me before like this..Ok, well I have tried the steps u gave me and i run this command :

ns simple.tcl


but i keep having error message saying:

error when calling class OldSim : simple.

For your information, here is a brief explanation on how i started to run this command line ( just to show you if maybe i was running the command at the wrong place as i am still new to ns2.. )

/home/diaz/Desktop/ns-allinone-2.32/ns-2.32/./ns
% ns simple.tcl


( % = is this sign showing that i'm ready to use ns2 and is this where i should put the tcl command line to view my nam? )

my questions sound stupid but your guide on this is really helpful for me to go further using ns2..I will update to you as i go on with this stuff..
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web stats fcolor Web Design Forum 10 12-Jul-2007 09:48
Need Free Website Templates sam_dezine Web Design Forum 8 06-Sep-2006 04:25
Who Is A Web Designer ? alicehopkins Web Design Forum 1 13-Jun-2006 03:56
HTML Code amgujral Web Design Forum 0 07-Apr-2006 10:46
Two virtual hosts, cgi script behaves differently on each blimbo Apache Web Server Forum 0 04-Aug-2004 10:35

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 04:09.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.