[SOLVED] TCP-freeze patch installation problem in ns2- 2.34
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
TCP-freeze patch installation problem in ns2- 2.34
hello,
my ns2 is working fine but im facing problem in installing tcp-freeze patch in ns2 ,i have used command :
$ ./configure --with-ns=/usr/src/ns-2.34
or
$ ./configure --with-ns-allinone=/usr/src/ns-allinone-2.34
but getting error : configure:error:ns-allinone path /usr/src/ns-allinone-2.34 is not valid
.. the path to the ns-2 source tree, e.g.
$ ./configure --with-ns=/usr/src/ns-2.33
The example ( e.g. ) is only valid with an installed ns-allinone-2.34 in /usr/src/.
( Not a good example, as all ns2 usually should be located in /home/<user-name> ).
Another example. It's working !
cd nsfreezetcp-1.0/ && tar xvf ns-allinone-2.34.tar.gz
cd ns-allinone-2.34/ && ./install
cd ../nsfreezetcp-1.0/ &&
./configure \
--with-ns-allinone=ns-allinone-2.34/ --with-ns=ns-allinone-2.34/ns-2.34/ \
--with-tcl=ns-allinone-2.34/tcl8.4.18 --with-tk=ns-allinone-2.34/tk8.4.18 \
--with-otcl=ns-allinone-2.34/otcl-1.13/ --with-tclcl=ns-allinone-2.34/tclcl-1.19/
thanks knudfl for ur help but im still facing problem and error coming is indicated below:
[anum@localhost nsfreezetcp-1.0]$ ./configure \--with-ns-allinone=ns-allinone-2.34/ --with-ns=ns-allinone-2.34/ns-2.34/ \--with-tcl=ns-allinone-2.34/tcl8.4.18 --with-tk=ns-allinone-2.34/tk8.4.18 \--with-otcl=ns-allinone-2.34/otcl-1.13/ --with-tclcl=ns-allinone-2.34/tclcl-1.19/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking whether make sets $(MAKE)... (cached) yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: error: ns-allinone path ns-allinone-2.34/ is not valid
[anum@localhost nsfreezetcp-1.0]$
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513
Rep:
Which OS are you using ? ?
Like Ubuntu 10.10, Ubuntu 12.04, Fedora 17, CentOS 6, etc. etc.
Before you start with nsfreezetcp-1.0 :
A lot of "ns-allinone-2.34 headers" are required in nsfreezetcp-1.0/src/.
I have copied all the headers into nsfreezetcp-1.0/src/
and packed a new "nsfreezetcp-1.0-ns234-1.tar.gz" : https://docs.google.com/open?id=0B7S...FZhVXNESzVsQUU
Ubuntu example ..
Code:
cd nsfreezetcp-1.0/ && tar xvf ns-allinone-2.34.tar.gz && cd ns-allinone-2.34/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install && cd ../nsfreezetcp-1.0/ && ./configure --with-ns-allinone=ns-allinone-2.34/ --with-ns=ns-allinone-2.34/ns-2.34/ --with-tcl=ns-allinone-2.34/tcl8.4.18 --with-tk=ns-allinone-2.34/tk8.4.18 --with-otcl=ns-allinone-2.34/otcl-1.13/ --with-tclcl=ns-allinone-2.34/tclcl-1.19/
i have been able to install tcp-freeze patch but if im using it in my tcl file it gvng error at tht line and how to check whether tht patch installed working fine or not ??
its Red Hat Enterprise Linux Server release 5.4(Tikanga)
its 64 bits OS(x86_64)
and after running "yum install kernel kernel-devel" reply came :
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package kernel-devel available.
Nothing to do
and how to check that libraries in ///src/.libs were built?
and what is nash version?
thanks knudfl for your help.
I have done with tcp freeze installation ,now I want perl file to calculate throughput of trace file which is generated from wireless nodes and they have mobility also .
knudfl i want to ask that ,im doing simulation of wireless scenario using AODV but im facing problem that wen i link down between node 0 and node 1 and node 0 and node 2 i can still see the packets received by node 1 and two and im using this command :
$ns rtmodel-at 5.000 down $node_(0) $node_(1)
$ns rtmodel-at 7.000 down $node_(0) $node_(2)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.