LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2011, 11:54 AM   #1
anamnazir
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Rep: Reputation: Disabled
patch for Hierarchical media independent handover (MIH) service in ns2.34


hey everybody !
i want the source code for patch of media independent handover used in ns2.2 or previous version...please any body tell me from where i can find it...i have to modify it for adding patch for MIH in ns2.34
thankyou

Last edited by anamnazir; 11-15-2011 at 08:45 AM. Reason: no reply for previous post
 
Old 12-16-2011, 01:54 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,293

Rep: Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164
This is an answer to your question here ..
http://www.linuxquestions.org/questi...489/page2.html
> post # 18 :

You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time.
Just don't add any of them to a PATH, LD_LIBRARY_PATH.

So to use ns-2.31 :
The entries you made in the ~.bashrc must be removed.
No path entries are required for any ns2 versions 2.27 .. 2.34.
The text about it is just : A ten year old text.
May have been required for some very old ns2.

The proof method is :
cd ns-allinone-2.31/ns-2.31/ ; su ; make install
The same for nam.
The binaries, 'ns' and 'nam' will be copied to /usr/local/bin/.
And thus be in a system path.

..

Last edited by knudfl; 12-16-2011 at 02:00 PM.
 
1 members found this post helpful.
Old 12-17-2011, 07:05 AM   #3
anamnazir
LQ Newbie
 
Registered: Sep 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
thank you sir
i have made no entries for ns2.31 in anywhere and i have still facing the same problem..

[root@wasim ns-allinone-2.31]# ns
application-specific initialization failed: Can't find a usable init.tcl in the following directories:
/home/Test/Documents/ns-allinone-2.34/lib/tcl8.4 /usr/local/lib/tcl8.4 /usr/lib/tcl8.4 /usr/local/library /usr/library /usr/tcl8.4.18/library /tcl8.4.18/library /home/Test/Documents/ns-allinone-2.34/lib/tcl8.4



This probably means that Tcl wasn't installed properly
%

Last edited by anamnazir; 12-17-2011 at 07:09 AM.
 
Old 12-17-2011, 07:24 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,293

Rep: Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164
It looks like you are using an ns from ns-allinone-2.34 :

""Can't find a usable init.tcl in the following directories:
/home/Test/Documents/ns-allinone-2.34/lib/tcl8.4""

Why else wouldn't it look for tcl in ns-allinone-2.31 ?

And why are you using "root" ? Not safe, not recommended.
Suggest : Delete everything, also /usr/local/bin/ns
.. and reinstall ns-allinone-2.31 as unprivileged user.
 
Old 12-18-2011, 09:21 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,293

Rep: Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164
Mail today from anamnazir :
Will you please email me the whole instruction you have told me
..to install more than 1 versions of ns2

Answer :
It's the same for all ns-allinone-2.xx :
cd ns-allinone-2.xx/ns-2.xx/ ; cp ns ns<version> ( Like 'cp ns ns231' )
su ; cp ns231 /usr/local/bin/
cd ../nam-* ; make install ( One nam can be used for all ns2.)

If you have a situation where plain 'ns' is required, you can copy
one at a time to /usr/local/bin/ . Or use ./ns inside ns-2.xx
( The binary ns can be linked to any folder, where it may be required.)

All nam and ns are hard coded to know where their own libraries are.
Thus no reason to set any extra ***PATH.

..

Last edited by knudfl; 12-18-2011 at 09:24 AM.
 
Old 12-20-2011, 05:22 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,293

Rep: Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164
# 1

Something here ( Google .. ns2 MIH .. )
http://www.hindawi.com/journals/jcnc/2010/794749/

? ? http://www.av.it.pt/ssargento/802_21_web/main.html
And ? http://boardreader.com/thread/Simula...qos-80221.html

http://search.codesoso.com/Search?q=mih+ns-2
> 1 : Open MIH http://sourceforge.net/projects/openmih/
> 2 : myMIHlib http://sourceforge.net/projects/mymihlib/

etc. etc.
 
1 members found this post helpful.
  


Reply


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
Issue with NS2.34 with BGP patch TLa Linux - Networking 49 02-15-2015 02:24 PM
need 802.11e patch for ns2 stud17 Linux - Software 1 03-09-2011 06:54 AM
integrating patch in ns2 MLinux Linux - Networking 2 11-30-2010 08:26 AM
Desktop independent service start/stop GUI for 13? linus72 Slackware 4 03-04-2010 11:12 AM
LXer: The Rise of Independent Media LXer Syndicated Linux News 0 05-10-2006 09:21 AM


All times are GMT -5. The time now is 01:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration