LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-16-2013, 06:13 AM   #46
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,415

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617

# 45 .

Repeat the the procedure in post #39 as many times as it takes to do it right.
No 'ns' : That's a failed build. I wonder why you didn't see any error output?

Are you sure that you have a 32bits (i686) OS ?
Please show the output from $ uname -m <Enter>

-
 
Old 08-19-2013, 12:28 AM   #47
naznin
LQ Newbie
 
Registered: Aug 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 45 .

Are you sure that you have a 32bits (i686) OS ?
Please show the output from $ uname -m <Enter>

-
$ uname -m
i686
 
Old 08-19-2013, 02:29 AM   #48
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,415

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617
# 47 .

OK, 32bits = i686 : The compiling should go with no errors.

? What is the error output, when no 'ns' is created ? ?
 
Old 08-19-2013, 02:53 AM   #49
naznin
LQ Newbie
 
Registered: Aug 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 47 .


? What is the error output, when no 'ns' is created ? ?
:~/Aquasim/ns-2.30$ ./ns
bash: ./ns: No such file or directory
 
Old 08-19-2013, 03:10 AM   #50
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,415

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617
# 49.

OK, I'll rephrase : What is the error output, when you compile ?
→ You can check with : 1) cd ns-2.30/ ; 2) make
→ The last lines should show why 'ns' isn't compiled / linked.
 
Old 08-19-2013, 04:07 AM   #51
naznin
LQ Newbie
 
Registered: Aug 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 49.

OK, I'll rephrase : What is the error output, when you compile ?
→ You can check with : 1) cd ns-2.30/ ; 2) make
→ The last lines should show why 'ns' isn't compiled / linked.
cd Aquasim/ns-2.30/
~/Aquasim/ns-2.30$ make
g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_12 -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/home2/koenigzhu/aquasim_release2012/Aqua-Sim-1.0/tclcl-1.18 -I/home2/koenigzhu/aquasim_release2012/Aqua-Sim-1.0/otcl-1.12 -I/home2/koenigzhu/aquasim_release2012/Aqua-Sim-1.0/include -I/home2/koenigzhu/aquasim_release2012/Aqua-Sim-1.0/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
In file included from tools/random.cc:40:0:
./config.h:60:19: fatal error: tclcl.h: No such file or directory
compilation terminated.
make: *** [tools/random.o] Error 1
 
Old 08-19-2013, 10:03 PM   #52
naznin
LQ Newbie
 
Registered: Aug 2013
Posts: 13

Rep: Reputation: Disabled
with this command,

:~/Aquasim$ export CC=gcc41 CXX=g++41 && ./install

I am getting like this
Code:
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
configure: error: expected an absolute directory name for --prefix: ../
make: *** No targets specified and no makefile found.  Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g   -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o ctangle ctangle.o common.o 
gcc -g   -c -o cweave.o cweave.c
cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
cweave.w: In function ‘print_cat’:
cweave.w:1739:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link `cweave': File exists
ln: failed to create symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
gcc41 -g -I/usr/local/sgb/include  test_io.c gb_io.o -o test_io
make: gcc41: Command not found
make: *** [test_io] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
gcc  -I../include -L../lib  -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
gcc  -I../include -L../lib  -DFBSD -o ../bin/sgb2alt sgb2alt.o  -lm -lgb 
gcc  -I../include -L../lib  -DFBSD -o ../bin/edriver edriver.o eval.o -lm -lgb
gt-itm has been installed successfully.
gcc  -I../include -L../lib  -o ../bin/sgb2comns sgb2comns.o -lm -lgb
gcc  -I../include -L../lib  -o ../bin/sgb2hierns sgb2hierns.o -lm -lgb
gcc  -I../include -L../lib  -o ../bin/sgb2ns sgb2ns.o -lm -lgb 
sgb2ns has been installed successfully.
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.2.3 with gcc41.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
make: Nothing to be done for `all'.
Zlib has been installed successfully.
============================================================
* Build tcl8.4.13
============================================================
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... gcc41
checking whether the C compiler (gcc41  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.
is there any error here.
 
Old 08-20-2013, 01:24 AM   #53
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,415

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617
# 52 .
Quote:
checking whether the C compiler (gcc41 ) works... no
No gcc41 was installed ?
If you think the {gcc41, g++41} packages were installed,
then please check for their presence with these commands :
$ which g++41
$ which gcc41
$ g++41 -v
$ gcc41 -v

-
 
Old 08-20-2013, 04:49 AM   #54
naznin
LQ Newbie
 
Registered: Aug 2013
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 52 .

$ which g++41
$ which gcc41
$ g++41 -v
$ gcc41 -v

-
g++41: command not found
gcc41: command not found
 
Old 08-20-2013, 08:23 AM   #55
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,415

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617
# 54 .
Quote:
g++41: command not found
gcc41: command not found
Post #39 (written as an answer to you) has a link to post #47 here :
http://www.linuxquestions.org/questi...532/page4.html → →
Quote:
sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
... Then reboot, and the new compiler can be used.

* So I guess you didn't install the packages ? ?

-
 
Old 08-21-2013, 09:34 AM   #56
naznin
LQ Newbie
 
Registered: Aug 2013
Posts: 13

Rep: Reputation: Disabled
Sir,
Finally i installed aquasim. Thanks for the support.
 
Old 02-09-2016, 02:09 PM   #57
randnabeel
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
about udp traffic in vbf protocol

hi....
i can't receive any AGT packet in vbf_example_5.tcl and vbf_example_6.tcl,,, there are the sending of AGT but not received ..i notic that from trace file when all my code implemented in aqua sim 1.0......plz can any one advice me
 
Old 02-09-2016, 02:57 PM   #58
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,709

Rep: Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940
Quote:
Originally Posted by randnabeel View Post
hi....
i can't receive any AGT packet in vbf_example_5.tcl and vbf_example_6.tcl,,, there are the sending of AGT but not received ..i notic that from trace file when all my code implemented in aqua sim 1.0......plz can any one advice me
We will 'advice' you to read the LQ Rules about text speak, and about not using it. Also, read the rules about re-opening old threads (this one had been closed for THREE YEARS), and not doing that, and about not hijacking someone elses thread with your own question.

Open your own thread for your own question.
 
Old 03-13-2016, 11:21 PM   #59
dollmin
LQ Newbie
 
Registered: Mar 2016
Posts: 7

Rep: Reputation: Disabled
dbr tcl script

I have run the above dbr tcl script but segmentation fault occure. kindly help me out, if anyone have dbr tcl script with out any error kindly send me. thank you.
 
Old 03-14-2016, 10:54 AM   #60
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,415

Rep: Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617Reputation: 3617
Post #59, @dollmin : Welcome to LQ.

".. the above dbr tcl script" : Unknown file. Please specify a file name.

`aquasim-dbr-examples.tar.gz' https://drive.google.com/file/d/0B7S...ew?usp=sharing
... The only usable example for a contemporary OS is "dbr__mm93.tcl" :
$ ns-aqua dbr__mm93.tcl
.. But it may not work unless you are building the executable 'ns' with an old OS.
The old 'ns'/'ns-aqua' used for my test was built with an old install of Ubuntu 10.10.
I.e. not an updated version of "10.10".
So to make a similar executable 'ns', please use e.g. Ubuntu 9.10 - i386.


-
 
  


Reply

Tags
aquasim, dbr, ns2, vbf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
codes for leach protocol in ns2 shaddrack yaw nusenu Linux - Newbie 4 09-14-2014 10:16 AM
installing a new protocol in ns2.34 MounaRM Linux - Networking 1 11-26-2010 07:45 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM
sim messenger (msn protocol) shows every1 as offile. qwijibow Linux - Software 0 03-02-2004 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration