আমাদের কথা খুঁজে নিন

   

NS2 - part 1



I am still struggling with ns2. So I am writing down the steps needed ( might be helpful ) to install ns2. $ sudo apt-get install axel $ axel http://www.isi.edu/nsnam/dist/ns-allinone-2.30.tar.gz axel is just a download accelerator, anyone can use whatever they like , wget or whatever. I like axel $ sudo apt-get install build-essential autoconf automake libxmu-dev $ tar -xzvf ns-allinone-2.30.tar.gz $ cd ns-allinone-2.30 $ ./install so now comes the enormous error & warning I am facing... I think this troubleshooting part is more or less same for ns2.27/2.28/2.29 etc. for me, I am doing it with ns2.28 # tcl building error... apply the following patch: Click This Link so, $ axel http://www.ece.uc.edu/~cdmc/ucbt/src/ns2292-gcc410.patch now open the patch in text editor and edit the version according to what version of ns2 you are using i.e. replace ns-2.XX, tcl8.4.XX, tk8.4.XX,otcl-XX,namXX with your own. now apply : $ patch -p1 < ns2292-gcc410.patch {The TCL building error can be solved manually also, without the patch:

the following files will have to be modified.

tcl: file tcl8.x.x/unix/tcl.m4
tcl: file tcl8.x.x/unix/configure
tk: file tk8.x.x/unix/tcl.m4

tk: file tk8.x.x/unix/configure
otcl: file otcl-1.x/configure.in

The line generating the problem was :

system=MP-RAS-`awk ' { print $3 } '/etc/.relid'` I changed the above line to: system=MP-RAS-`awk ' { print $3 } '/etc/.relid` SO: Remove the second last character ( ' ) from the line and do this for all the files above ; delete older configure file in the respective folders. Then run in the respective directories , $ autoconf to generate a fresh configure file which were deleted earlier.} #error queue/cbq.cc:1002: error: ‘cbq_’ was not declared in this scope make: *** [queue/cbq.o] Error 1 Solution: edit ns-2.27/queue/cbq.cc #define LEAF_LEVEL 1 /* level# for leaves */ #define POWEROFTWO 16 +class CBQueue; + class CBQClass : public Connector { public: friend class CBQueue /// to be continued.....

সোর্স: http://www.somewhereinblog.net     দেখা হয়েছে ২১ বার

অনলাইনে ছড়িয়ে ছিটিয়ে থাকা কথা গুলোকেই সহজে জানবার সুবিধার জন্য একত্রিত করে আমাদের কথা । এখানে সংগৃহিত কথা গুলোর সত্ব (copyright) সম্পূর্ণভাবে সোর্স সাইটের লেখকের এবং আমাদের কথাতে প্রতিটা কথাতেই সোর্স সাইটের রেফারেন্স লিংক উধৃত আছে ।