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.
Hello, good guys am new to linux and also the issue of NS2, I need to run by the NS2 + WiMAX + LTE, the more I'm in trouble, I did this step by step http://gotoanswer.stanford.edu/?q=in...imax+in+ns2.35, installed straight over at the time I enter / ns2-35 / tcl / wimax and run a script with the $ ns wimax-script.tcl command it returns an error as shown in the image below, if anyone can help me I would be very grateful, hugs.
@obs.:I am using windows to make the simulation more the same error is repeated in linux.
Thank you, I will try to do as your tutorial, greetings from the Brazilian.
@Edit - Appeared these errors
In file included from /home/stefferson/Downloads/ns-allinone-2.35/tk8.5.10/unix/../generic/tkInt.h:19:0,
from /home/stefferson/Downloads/ns-allinone-2.35/tk8.5.10/unix/../generic/tk3d.c:14:
/home/stefferson/Downloads/ns-allinone-2.35/tk8.5.10/unix/../generic/tk.h:76:23: fatal error: X11/Xlib.h: Arquivo ou diretório não encontrado
# include <X11/Xlib.h>
^
compilation terminated.
Makefile:908: recipe for target 'tk3d.o' failed
make: *** [tk3d.o] Error 1
tk8.5.10 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
Could explain them ?
Last edited by stefferson94; 03-01-2015 at 03:35 PM.
Well apparently install, would somehow I run the script and see it running in Nam?
@edit
I managed to run LTE with scripts you left attached, only I could not rotate the Wimax scripts, they give error, the same mistake was giving in windows, to using "we simple.tcl" to run the scripts, I'm doing something wrong?
Last edited by stefferson94; 03-01-2015 at 04:25 PM.
To using ubuntu 14:10 virtualized, Nam would be to display the script on the screen in graphical form, as shown in the picture http://marco.uminho.pt/~joao/pim-ns2/nam-pim-sm.jpg to trying to run scripts of wimax folder that is inside /tcl/wimax/simple.tcl
Wrong Number of Arguments! No arguments in this topology
Syntax: ns test-be.tcl nbMNs
expected integer but got "(1)"
while executing
"exit (1)"
invoked from within
"if {$argc != 1} {
puts ""
puts "Wrong Number of Arguments! No arguments in this topology"
puts "Syntax: ns test-be.tcl nbMNs"
puts ""
exit..."
(file "test-be.tcl" line 33)
stefferson@stefferson-virtual-machine:~/Downloads/ns-allinone-2.35/ns-2.35/tcl/wimax$
Last edited by stefferson94; 03-01-2015 at 04:34 PM.
root@stefferson-pc:/home/stefferson/ns2/ns-allinone-2.35/ns-2.35# ./configure && make clean && make
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... yes
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.6... no
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.6.1... no
checking for tclsh8.6... /usr/bin/tclsh8.6
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
root@stefferson-pc:/home/stefferson/ns2/ns-allinone-2.35/ns-2.35#
I am using the 64-bit version here at work and at home use the 32-bit
You can do `./configure´ in ns-2.2x .. ns-2.34, not in ns-2.35 !
The command to use is : ./install →
takes care of all ./configure && make clean && make
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.