Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
After adding patchfile according to the instructions given by you,am getting following error when i run make after make clean.
In file included from tools/random.cc:40:
./config.h:60:19: error: tclcl.h: No such file or directory
In file included from tools/random.h:42,
from tools/random.cc:41:
tools/rng.h:343: error: ‘FILE’ has not been declared
make: *** [tools/random.o] Error 1
please give me solution to this problem...
THANQ...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch
Installing ns-allinone-2.29.3 + the GPSR-hls patch on Fedora :
1) tar xvf ns-allinone-2.29.3.tar.gz
2) cd ns-allinone-2.29/ns-2.29/
3) zcat ns2-hls-patch.tar.gz | patch -p1 : EDIT : See post # 11.
4) cd ../
5) export CC=gcc34 CXX=g++34 && ./install
... and the binary "ns" is created.
when I entered ./install from ns-allinone2.29 folder,following error is occured
Tcl.cc: In member function ‘void Tcl::eval(char*)’:
Tcl.cc:182: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:421: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:509: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:511: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In static member function ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:566: error: invalid conversion from ‘const char*’ to ‘char*’
Tcl.cc:571: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc: In member function ‘virtual void TclClass::bind()’:
Tcl.cc:603: warning: deprecated conversion from string constant to ‘char*’
Tcl.cc:605: warning: deprecated conversion from string constant to ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.17 make failed! Exiting ...
will u plz give me the correct link from where I have to download ns2.29.3. the file which i was downloaded was getting 3errors at the the time of extract.
one more doubt is.... is it possible to install gpsr from the given procedure.you said that both gpsr and ns2 will get installed.is it possible????
is there any other simple procedure to install gpsr along with ns2???
when i entered "export CC=gcc34 CXX=g++34 && ./install" from ns-allinone-2.29 folder am getting following error
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc34
checking whether the C compiler (gcc34 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 8
Quote:
checking whether the C compiler (gcc34 ) works... no
configure: error: installation or configuration problem:
C compiler cannot create executables
The compiler is not installed (correctly). Please try again :
# yum install gcc-c++ compat-gcc-34-c++
... and afterwards check that the g++, gcc34, g++34 binaries are present :
1) $ rpm -qa | grep gcc-34
2) $ which gcc34
3) $ which g++34
4) $ ls /usr/bin/gcc*
5) $ ls /usr/bin/g++* ( Both g++ and g++34 must be present.)
And : Please tell if you are not installing with yum.
A dependency could be missing ?
( glibc-devel, glibc-common, glibc-headers, kernel-headers ? )
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 9, # 10.
Better : patch -p1 < <path to ns-2.29-hls.patch>
I guess that it was pure luck that I got no errors,
as the ns2-hls-patch.tar.gz contains 3 files.
Suggest : Do not try to patch the same ns-allinone-2.29/ more than one time.
Delete ns-allinone-2.29/ or use a new directory for a new unpacked ns-allinone-2.29.3.tar.gz
I added gpsr patch file successfully in ns2.29.how can I generate graphs for .tcl files.I executed hls.tcl file which is in ns2.29 folder.I got hls.tr file as output file.But I have to generate graphs for that files.what's the procedure for generating graphs????
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.