LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-08-2011, 09:18 PM   #46
Yugesh Gowda
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: Disabled
Wink


Quote:
Originally Posted by knudfl View Post
# 43 : Simulation.

Start examples here http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html
And an LQ thread about the examples :
http://www.linuxquestions.org/questi...roblem-726993/
( Some of the examples are attached, example1b.tcl.txt, etc.)

More info : LQ Search → Keyword = ns-allinone
And LQ Search → Tag = ns2

Also : http://nsnam.isi.edu/nsnam/index.php/User_Information

..
I really appreciate your help..
Now I am done.. thanks for everything.
 
Old 04-08-2011, 10:18 PM   #47
Yugesh Gowda
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by Yugesh Gowda View Post
I really appreciate your help..
Now I am done.. thanks for everything.
I have installed ns-allinone-2.34 in linux mint..
NS is working properly.. but nam is not working..
I am getting an error when type " nam <filename>.nam "..
Code:
The program 'nam' is currently not installed.  You can install it by typing:
sudo apt-get install nam
 
Old 04-09-2011, 07:07 AM   #48
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 47 : cd ns-allinone-2.34/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch &&
cd ../nam-1.14/ && make clean && make && sudo make install

( 'sudo make install' will copy 'nam' to /usr/local/bin/ ).

..

Last edited by knudfl; 04-09-2011 at 09:11 AM.
 
Old 04-09-2011, 07:49 AM   #49
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Moved: This thread is more suitable in Linux Software and has been moved accordingly to help your question get the exposure it deserves.
 
Old 04-09-2011, 11:38 AM   #50
Yugesh Gowda
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 47 : cd ns-allinone-2.34/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch &&
cd ../nam-1.14/ && make clean && make && sudo make install

( 'sudo make install' will copy 'nam' to /usr/local/bin/ ).

..
Thanks Problem Solved..
 
Old 11-05-2013, 05:34 AM   #51
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
hi , after AODV.cc modification in ns2.35 i tape
"make" with no error
but when i do" make install "an error occur :

for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1


when i type ./install this error appear:

-bash: ./install: no file or directory with this type

i have otcl-1.14 , can i patch it according to post #4

thx for any help

Last edited by info_mimi; 11-05-2013 at 09:48 AM.
 
Old 11-05-2013, 08:58 AM   #52
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 51 .
Quote:
.. when i do" make install "an error occur :
No errors are shown. Just the normal 'make install' result.


Quote:
when i tape ./install this error appear:
I guess you mean : " When I type ./install ".

No file 'install' : You are in the wrong location.
The file install is in 'ns-allinone-2.35/'.

-
 
1 members found this post helpful.
Old 11-06-2013, 03:13 AM   #53
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
hi , thx for your reply , after the modification of the AODV.cc file, normally i need a new binary ns to use it for my tcl script.

so i rename the old binary ns placed in usr/local/bin to get the new one after the installation of ns2 .

after the installation i type "ns script.tcl"

my problem i didnt get a result with my modification i get the old result and the new binary ns didn't exist in usr/local/bin

i redo the installation maybe 4 times but same problem.
plz tell me if you can what wrong with that ? how can i get the new binary ns in every modification of my AODV.cc

thx so much.
 
Old 11-06-2013, 03:35 AM   #54
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 53 .
Quote:
? how can I get the new binary ns in every modification of my AODV.cc
Howto recompile 'ns' : $ cd ns-2.35/ ; $ make clean && make
... And : Every new 'ns' should be copied to a new name, like
ns-aodv1, ns-aodv2, ns-aodv3, ns-aodv4, etc.

Simulations can usually be run with any ns-name :
$ ns-aodv2 file.tcl

-
 
1 members found this post helpful.
Old 11-06-2013, 03:54 AM   #55
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
thx for your reply , i just wonder if in every installation of a modified ns2, should i set the environment variables in file bashrc ?

like in this tutorial? http://princeabhinav.blogspot.com/
 
Old 11-06-2013, 04:15 AM   #56
info_mimi
Member
 
Registered: Dec 2012
Posts: 31

Rep: Reputation: Disabled
#54

i do "make clean" and "make" before "./install"

but what i dont understand where is the binary ns? i check the usr/local/bin folder i dont find an executable ns2 with the name ns (a new one, cause the others i rename them all)

and when i execute the script tcl with "ns script.tcl" the old results appear without consideration of my modifications.

that mean the ns binary called ns is the old one , where is the new one? i'm stack with this issue plz help me
 
Old 11-06-2013, 05:19 AM   #57
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,522

Rep: Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503Reputation: 2503
# 56 .

1) cd ns-allinone-2.35/ns-2.35/
2) sudo cp ns-<new-name> /usr/local/bin/


Quote:
when I execute the script tcl with "ns script.tcl"
Wrong. You will have to do $ ns-<new-name> script.tcl

-
 
1 members found this post helpful.
Old 02-10-2014, 06:02 PM   #58
abenmariem
LQ Newbie
 
Registered: Feb 2014
Posts: 19

Rep: Reputation: Disabled
Solution of the problem hidden symbol __stack_chk_fail_local for ns2.33 on ubuntu 13.10 32 bits

I am on ubuntu 13.10 and i am installing ns2.33.
I managed to solve the problem of : /usr/bin/ld: ns: hidden symbol `__stack_chk_fail_local' in /usr/lib/libc_nonshared.a(stack_chk_fail_local.oS) is referenced by DSO

The solution is in those links:
http://ubuntuforums.org/showthread.php?t=1444664
http://ramakrishnamundugar.blogspot....untu-1204.html

I am compiling with gcc 4.8 so another error not mentioned in the second link occurred in the file ns2.33/linkstate/ls.h and i fixed it by the solution proposed by GCC:
the fix is : replace line 137 by : void eraseAll() { this->erase(baseMap::begin(), baseMap::end()); }
replace line 114 by : this->erase(baseList::begin(), baseList::end());
I hope that it will help people to save time.

Last edited by abenmariem; 02-10-2014 at 06:06 PM.
 
  


Reply

Tags
ns2, ns234


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
slackware installation wont install. xlordt Slackware 9 02-21-2008 09:48 AM
Installation wont work with 6800 GS scripts Linux - Hardware 1 06-16-2006 10:15 AM
New installation cd's wont boot BACTRATE Suse/Novell 7 12-05-2005 09:15 AM
RH9 wont boot after installation FrancoisRabe Linux - Software 1 01-24-2005 01:40 AM
Linux wont boot after installation Sporndog Linux - Newbie 2 03-24-2004 02:08 AM


All times are GMT -5. The time now is 10:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration