LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   patch for Hierarchical media independent handover (MIH) service in ns2.34 (https://www.linuxquestions.org/questions/linux-newbie-8/patch-for-hierarchical-media-independent-handover-mih-service-in-ns2-34-a-902618/)

anamnazir 09-12-2011 11:54 AM

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

knudfl 12-16-2011 01:54 PM

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.

..

anamnazir 12-17-2011 07:05 AM

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
%

knudfl 12-17-2011 07:24 AM

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.

knudfl 12-18-2011 09:21 AM

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.

..

knudfl 12-20-2011 05:22 PM

# 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.


All times are GMT -5. The time now is 07:59 PM.