LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
LinkBack Search this Thread
Old 01-21-2013, 06:40 AM   #1
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Rep: Reputation: Disabled
Unhappy Problem installing wimax module in ns2.28


Hi, I'm having problems in installing wimax module in ns2.28. When I type ./configure, the result shows like this:

No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C preprocessor... gcc -E
checking for egrep... 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 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... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... no
checking if STL works without any namespace... no
checking if STL works with namespace std... no
checking if STL works with namespace stl... no
checking should use STL... no, couldn't find STL
checking for tcl.h... -I../tcl8.4.5/generic
checking for libtcl8.4... no
checking for init.tcl... ../tcl8.4.5/library
checking for tclsh8.4.5... no
checking for tclsh8.4... no
checking for tclsh... /usr/bin/tclsh
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.

How I install the tcl in it? Please do help me because I'm been stuck for a long time with this..Thanks
 
Old 01-21-2013, 10:32 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,196

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Welcome to LQ.

Tcl8.4.5 is included in ns-allinone-2.28 :
Please build everything with : cd ns-allinone-2.28/ && ./install
... The you will have the required tcl.


Which "wimax patch" is it about ? ?

-

Last edited by colucix; 01-21-2013 at 02:59 PM. Reason: Edited accordingly to moved posts.
 
Old 01-21-2013, 11:08 AM   #3
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Problem installing wimax module in ns2.28

Hi knudfl, do I need to type cd ns-allinone-2.28/ && ./install. I mean together with the && ?

Last edited by colucix; 01-21-2013 at 02:59 PM. Reason: Idem
 
Old 01-22-2013, 03:24 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,196

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
# 3

" && " means : Waits until the previous command has finished all actions,
then the next command is executed.
Like : <command 1> && <command 2> && <command 3> && <command 4> ...

→ → You can use 'cd ns-allinone-2.28/ && ./install',
or do : 1) cd ns-allinone-2.28/
2) ./install


-
 
Old 01-22-2013, 03:43 AM   #5
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
# 4

Hi, I've tried cd ns-allinone-2.28/ && ./install',
or do : 1) cd ns-allinone-2.28/
2) ./install

The results shows:

Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
./configure: 423: ./configure: cannot create ./config.log: Permission denied
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c xgraph.c
In file included from xgraph.c:32:0:
xgraph.h:10:21: fatal error: X11/Xos.h: No such file or directory
compilation terminated.
make: *** [xgraph.o] Error 1
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
touch: cannot touch `cweave.c': Permission denied
gcc -g -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o ctangle ctangle.o common.o
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link `cweave': File exists
ln: failed to create symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
cc -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io
cc -g -I/usr/local/sgb/include test_graph.c gb_graph.o -o test_graph
cc -g -I/usr/local/sgb/include test_flip.c gb_flip.o -o test_flip
./test_io
OK, the gb_io routines seem to work!
./test_graph
.................................................................................................... Hey, I allocated 10000000 bytes successfully. Terrific...
OK, the gb_graph routines seem to work!
./test_flip
OK, the gb_flip routines seem to work!
make gb_sort.o
make[1]: Entering directory `/home/zana/ns-allinone-2.28/sgb'
make[1]: `gb_sort.o' is up to date.
make[1]: Leaving directory `/home/zana/ns-allinone-2.28/sgb'
make lib
make[1]: Entering directory `/home/zana/ns-allinone-2.28/sgb'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/home/zana/ns-allinone-2.28/sgb'
make test_sample
make[1]: Entering directory `/home/zana/ns-allinone-2.28/sgb'
cc -g -I/usr/local/sgb/include -L. -L/usr/local/lib test_sample.c -lgb -lgb -o test_sample
make[1]: Leaving directory `/home/zana/ns-allinone-2.28/sgb'
./test_sample > sample.out
diff test.gb test.correct
diff sample.out sample.correct
rm -f test.gb sample.out test_io test_io.exe test_graph test_graph.exe test_flip test_flip.exe test_sample test_sample.exe
echo "Congratulations --- the tests have all been passed."
Congratulations --- the tests have all been passed.
touch certified
touch: cannot touch `certified': Permission denied
make: *** [tests] Error 1
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Checking for gcc...
Building static library libz.a version 1.1.4 with gcc.
Checking for unistd.h... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
make: Nothing to be done for `all'.
Zlib has been installed successfully.
============================================================
* Build tcl8.4.5
============================================================
./configure: 436: ./configure: cannot create ./config.log: Permission denied
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.

Please help me with this..
 
Old 01-22-2013, 07:22 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,196

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
# 5
Quote:
/configure: cannot create ./config.log: Permission denied
Looks like you will have to start from scratch with a new unpacked
ns-allinone-2.28.tar.gz in /home/zana/ns2/
( Or other directory in /home/zana/ ).
And please do not use any commands with sudo <command> !



Quote:
fatal error: X11/Xos.h: No such file or directory
Ubuntu prerequisites for ns2 : sudo apt-get install \
g++ autoconf automake libtool patch xgraph libxmu-dev

And you will have to use a gcc / g++ version 4.1.2 to build ns-2.28.
And add the two patches ns228-gcc40.patch, ns-2.28-gcc410.patch ..
Post #15 here http://www.linuxquestions.org/questi...4-a-842773/#15

-
 
Old 01-22-2013, 07:23 AM   #7
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Unhappy Problem installing wimax module in ns2.29

Hi..then I tried to install the WiMAX module in Ns2.29. The result shows:

/home/zana/ns-allinone-2.29/tk8.4.11/unix/../generic/tk.h:96:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.11 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

Can anyone please help me with this. I really need it urgently. Many thanks..
 
Old 01-22-2013, 07:29 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,196

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
I really need it urgently.
Then read post # 6.

Urgent : Please be patient.
The usual : Two weeks to learn how to build ns2.
And one to three months to learn how to use ns2.


-

Last edited by knudfl; 01-22-2013 at 07:32 AM.
 
Old 01-22-2013, 07:33 AM   #9
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Unhappy Problem with wimax module in ns2.28

#6
Hi..I did not install in ns2.28 using any sudo command.
The files were extracted from sourceforge website.

Can you please suggest me what do to next. I'm totally new to this Ns2.

Secondly, can I install many versions of NS2 in different folders in ubuntu?
 
Old 01-22-2013, 09:48 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,196

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
#9 : The same : Delete ns-allinone-2.28/, and start from scratch with :
1) tar xvf ns-allinone-2.28.tar.gz
2) patch -p0 < ns228-gcc40.patch
3) patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter>
4) export CC=gcc41 CXX=g++41 ( Or whatever gcc/g++ binary name ).
5) cd ns-allinone-2.28/
6) ./install
... Add the wimax patch afterwards, or after 5).

Which version of wimax ? wimax_v2.03.zip ?
( I have a "Makefile.in" for wimax_v2.03/ ).

And which Ubuntu ? Please show the outputs from the two commands :
'uname -m', and 'cat /etc/issue'.


And yes, you can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do not add any of them to a *PATH.

-
 
Old 01-23-2013, 04:05 AM   #11
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi..

I'm using Ubuntu 12.10 in Virtualbox. I've download the Wimax module from this steps:

To install the patch, follow the instructions below:

Download the software ns-allinone-2.28 package
Download the latest ns-2 WiMAX module source code.
Unzip the ns-2 WiMAX module source code file.
Put the files from "mac" directory into ns-allinone-2.28\ns-2.28\mac.
Put the files which are in common and tcl respectively into ns-allinone-2.28\ns-2.28\common and ns-allinone-2.28\ns-2.28\tcl.
Modify the Makefile.in as follows
After the sentence mac/mac-802_3.o add:
mac/mac-802_16-base.o mac/mac-802_16-ss.o mac/mac-802_16-bs.o \
mac/mac-802_16-FSM.o mac/mac-802_16-timers.o \
Go to the ns-allinone-2.28/ns-2.28 directory and execute "./configure", "make clean" and "make".
 
Old 01-23-2013, 04:36 AM   #12
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Hi..

these are answers when after the 1st step:

ns-allinone-2.28/otcl-1.9/lib/test.tcl
ns-allinone-2.28/otcl-1.9/makefile.vc
ns-allinone-2.28/otcl-1.9/otcl.c
ns-allinone-2.28/otcl-1.9/otcl.h
ns-allinone-2.28/otcl-1.9/otclAppInit.c
ns-allinone-2.28/otcl-1.9/otkAppInit.c
ns-allinone-2.28/otcl-1.9/gen/
ns-allinone-2.28/otcl-1.9/bin/
ns-allinone-2.28/tclcl-1.16/
ns-allinone-2.28/tclcl-1.16/CHANGES.html
ns-allinone-2.28/tclcl-1.16/compat/
ns-allinone-2.28/tclcl-1.16/compat/gettod.c
ns-allinone-2.28/tclcl-1.16/compat/win32.c
ns-allinone-2.28/tclcl-1.16/conf/
ns-allinone-2.28/tclcl-1.16/conf/configure.in.audio
ns-allinone-2.28/tclcl-1.16/conf/configure.in.debugopts
ns-allinone-2.28/tclcl-1.16/conf/configure.in.des
ns-allinone-2.28/tclcl-1.16/conf/configure.in.dmalloc
ns-allinone-2.28/tclcl-1.16/conf/configure.in.dynamic
ns-allinone-2.28/tclcl-1.16/conf/configure.in.fns
ns-allinone-2.28/tclcl-1.16/conf/configure.in.head
ns-allinone-2.28/tclcl-1.16/conf/configure.in.int64_t
ns-allinone-2.28/tclcl-1.16/conf/configure.in.jpegwc
ns-allinone-2.28/tclcl-1.16/conf/configure.in.mash
ns-allinone-2.28/tclcl-1.16/conf/configure.in.misc
ns-allinone-2.28/tclcl-1.16/conf/configure.in.nse
ns-allinone-2.28/tclcl-1.16/conf/configure.in.otcl
ns-allinone-2.28/tclcl-1.16/conf/configure.in.perl
ns-allinone-2.28/tclcl-1.16/conf/configure.in.psvp
ns-allinone-2.28/tclcl-1.16/conf/configure.in.srm
ns-allinone-2.28/tclcl-1.16/conf/configure.in.tail
ns-allinone-2.28/tclcl-1.16/conf/configure.in.tcl
ns-allinone-2.28/tclcl-1.16/conf/configure.in.Tcl
ns-allinone-2.28/tclcl-1.16/conf/configure.in.TclCL
ns-allinone-2.28/tclcl-1.16/conf/configure.in.tcldebug
ns-allinone-2.28/tclcl-1.16/conf/configure.in.tk
ns-allinone-2.28/tclcl-1.16/conf/configure.in.video
ns-allinone-2.28/tclcl-1.16/conf/configure.in.x11
ns-allinone-2.28/tclcl-1.16/conf/configure.in.z
ns-allinone-2.28/tclcl-1.16/conf/configure.in.ztrace
ns-allinone-2.28/tclcl-1.16/conf/makefile.win
ns-allinone-2.28/tclcl-1.16/conf/mkdep
ns-allinone-2.28/tclcl-1.16/conf/README
ns-allinone-2.28/tclcl-1.16/config.guess
ns-allinone-2.28/tclcl-1.16/config.sub
ns-allinone-2.28/tclcl-1.16/configure
ns-allinone-2.28/tclcl-1.16/configure.in
ns-allinone-2.28/tclcl-1.16/idlecallback.cc
ns-allinone-2.28/tclcl-1.16/idlecallback.h
ns-allinone-2.28/tclcl-1.16/install-sh
ns-allinone-2.28/tclcl-1.16/iohandler.cc
ns-allinone-2.28/tclcl-1.16/iohandler.h
ns-allinone-2.28/tclcl-1.16/Makefile.in
ns-allinone-2.28/tclcl-1.16/makefile.vc
ns-allinone-2.28/tclcl-1.16/otcldoc
ns-allinone-2.28/tclcl-1.16/rate-variable.cc
ns-allinone-2.28/tclcl-1.16/rate-variable.h
ns-allinone-2.28/tclcl-1.16/README
ns-allinone-2.28/tclcl-1.16/tcl2c++.c
ns-allinone-2.28/tclcl-1.16/Tcl2.cc
ns-allinone-2.28/tclcl-1.16/tclAppInit.cc
ns-allinone-2.28/tclcl-1.16/Tcl.cc
ns-allinone-2.28/tclcl-1.16/tclcl-config.h
ns-allinone-2.28/tclcl-1.16/tclcl.h
ns-allinone-2.28/tclcl-1.16/tclcl-internal.h
ns-allinone-2.28/tclcl-1.16/tclcl-mappings.h
ns-allinone-2.28/tclcl-1.16/tcl-http.tcl
ns-allinone-2.28/tclcl-1.16/tcl-import.tcl
ns-allinone-2.28/tclcl-1.16/tcl-object.tcl
ns-allinone-2.28/tclcl-1.16/timer.cc
ns-allinone-2.28/tclcl-1.16/timer.h
ns-allinone-2.28/tclcl-1.16/tkAppInit.cc
ns-allinone-2.28/tclcl-1.16/tracedvar.cc
ns-allinone-2.28/tclcl-1.16/tracedvar.h
ns-allinone-2.28/tclcl-1.16/VERSION
ns-allinone-2.28/tclcl-1.16/gen/
ns-allinone-2.28/tclcl-1.16/bin/
zana@zana-VirtualBox:~$ patch -p0 < ns228-gcc40.patch
bash: ns228-gcc40.patch: No such file or director

Can you please help me with this..
 
Old 01-23-2013, 05:06 AM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,196

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
# 12 : That's the output from 'tar xvf ns-allinone-2.28.tar.gz', I guess.

When you do "command 2)" in the folder with ns-allinone-2.28/,
please make a copy of 'ns228-gcc40.patch' to the folder.
→ → See post # 6 here ..
http://www.linuxquestions.org/questi...-4175445965/#6


-
 
Old 01-23-2013, 06:10 AM   #14
zana
LQ Newbie
 
Registered: Jan 2013
Posts: 24

Original Poster
Rep: Reputation: Disabled
Question

Hi Knudfl,

I'm so sorry..I could not understand it..Can you please explain further about is please..so sorry again..it is nor easy to me actually..
 
Old 01-23-2013, 08:02 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,196

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
# 14.

Please copy 'ns228-gcc40.patch' and 'ns-2.28-gcc410.patch'
to the directory with ns-allinone-2.28/.

Repeat :
Which version of wimax ? wimax_v2.03.zip ?

And which Ubuntu ? Please show the outputs from the two commands :
'uname -m', and 'cat /etc/issue'.
No more answers until you have answered all three points.
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html


-
 
  


Reply

Tags
wimax, wimax-lwx


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't find file to patch at input line n problem, Installing WiMax module on ns2-29 Narges Linux - Newbie 14 12-15-2012 04:41 AM
WiMax QoS example problem in ns2 Narges Linux - Newbie 0 09-04-2012 10:35 AM
A problem with installing Wimax model in ns2 maha.ahmed Linux - Newbie 4 08-04-2012 03:39 AM
NS2 simulator for Handover in wimax priya12 Linux - Software 0 09-14-2011 05:34 AM


All times are GMT -5. The time now is 05:49 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration