LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 03-27-2014, 02:14 AM   #1
nipunsmvdu
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
installing ns2.31 on ubuntu 13 error


hi
I am new to ubuntu and want to install ns2.31 on ubuntu 13. After using ./install command, I get following error.


make: *** No rule to make target `/home/nipun/Desktop/ns-allinone-2.31/tk8.4.14/unix/Makefile.in', needed by `Makefile'. Stop.
loading cache ./config.cache
checking for Tcl configuration... (cached) found /home/nipun/Desktop/ns-allinone-2.31/tcl8.4.14/unix/tclConfig.sh
checking for existence of /home/nipun/Desktop/ns-allinone-2.31/tcl8.4.14/unix/tclConfig.sh... could not find /home/nipun/Desktop/ns-allinone-2.31/tcl8.4.14/unix/tclConfig.sh
checking for tclsh... (cached) No tclsh found on PATH
checking for tclsh in Tcl build directory... /home/nipun/Desktop/ns-allinone-2.31/tcl8.4.14/unix/tclsh
configure: error: /home/nipun/Desktop/ns-allinone-2.31/tcl8.4.14/unix/tclConfig.sh is for Tcl .
Tk 8.4.14 needs Tcl 8.4.
Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.4.
tk8.3.2 configuration failed! Exiting ...
Tk is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.

please suggest solution. thanks
 
Old 03-27-2014, 04:42 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

Why "ns-allinone-2.31" ? Is it about FHMIP, FSR, nist-mob or CRCN ? Or ?

Quote:
No rule to make target `......ns-allinone-2.31/tk8.4.14/unix/Makefile.in'
Looks like a corrupt `ns-allinone-2.31.tar.gz'.
Please delete the one you downloaded. And get a new one here
http://sourceforge.net/projects/nsna...allinone-2.31/

* How to build ns231 with the 32bits (i686) Ubuntu 13.04 .. 13.10 :
$ tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/ && export CC=gcc41 CXX=g++41 && ./install
$ cd ns-2.31/ && sudo make install
.... That's it. Don't do anything else.
Like adding text to .bashrc: Never required.

* ns231 prerequisites, Ubuntu 13.xx - i686 : gcc41 / g++41, post #47 :
http://www.linuxquestions.org/questi...532/page4.html

-

Last edited by knudfl; 03-27-2014 at 04:44 AM.
 
Old 03-27-2014, 05:06 AM   #3
fabe856
Member
 
Registered: Apr 2012
Posts: 104

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Why "ns-allinone-2.31" ? Is it about FHMIP, FSR, nist-mob or CRCN ? Or ?
-
Is it neccessary to use ns 2.31 for CRCN?
Any other version better for Cognitive radio?


Regards
Fabe
 
Old 03-27-2014, 05:27 AM   #4
nipunsmvdu
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Welcome to LQ.



* How to build ns231 with the 32bits (i686) Ubuntu 13.04 .. 13.10 :
$ tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/ && export CC=gcc41 CXX=g++41 && ./install


-
after execuitng above command, i got the following error

Building static library libz.a version 1.2.3 with gcc41.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
gcc41 -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
make: gcc41: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.14
============================================================
loading 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... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
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.

i am using 64 bit processor
please suggest what to do.... thanks

Last edited by nipunsmvdu; 03-27-2014 at 05:29 AM.
 
Old 03-27-2014, 06:17 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 4 .

No reason to show a lot of error output showing that you didn't install gcc41 / gcc41.
! You cannot use a tool unless you have the tool !

Quote:
please suggest what to do.... thanks
! Your OS must be specified : Please show the outputs from these commands:
a) uname -m <Enter>
b) cat /etc/issue <Enter>

Quote:
I am using 64 bit processor
Hopefully you have a 32bits OS : All ns2 is for a 32bits OS.
Some ns2 protocols will work with a 64bits OS :
Not crcn : CRCN requires a 32bits OS.

-
 
Old 03-27-2014, 07:08 AM   #6
nipunsmvdu
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 4 .


! Your OS must be specified : Please show the outputs from these commands:
a) uname -m <Enter>
b) cat /etc/issue <Enter>



-
with refernce to these commands, the output is

nipun@nipun-Linux:~$ uname -m
x86_64
nipun@nipun-Linux:~$ cat /etc/issue
Ubuntu 13.10 \n \l
 
Old 03-27-2014, 10:07 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 6 .
Quote:
nipun@nipun-Linux:~$ uname -m
x86_64
The only supported OS, where you can build and {use ns-2.31+crcn fully} is :
The 32bits CentOS 6.5 → → http://www.centos.org/
http://ftp.fau.de/centos/6.5/isos/i3...386-LiveCD.iso
>>> CentOS-6.5-i386-LiveCD.iso

Building ns2+crcn in CentOS 6.5 :
$ tar xvf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.31/
$ tar xvf crcn-ns2.31.tar.gz https://drive.google.com/file/d/0B7S...it?usp=sharing
$ export CC=gcc34 CXX=g++34 && ./install

CRCN ns2 info http://www.linuxquestions.org/questions/tags/crcn/
And https://groups.google.com/forum/?fro...rs/KlkfZ2-GXtk

OMNeT++, see posts by @Ejaz Ahmed http://www.researchgate.net/post/Wha..._radio_network

-

Last edited by knudfl; 03-27-2014 at 10:40 AM.
 
Old 01-02-2016, 11:06 AM   #8
randnabeel
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
tcl error

hi ,im using ubuntu 14.4 i686 OS and i want to install aqua sim in ns2.34 and while i install it there is an error in :
c compiler cannot creat executables
tcl8.4.14 configuration faild! existing


plz how can i solve this error

Last edited by randnabeel; 01-02-2016 at 02:07 PM.
 
Old 01-02-2016, 01:14 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,933

Rep: Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692Reputation: 3692
Quote:
Originally Posted by randnabeel View Post
hi ,im using 32 bit os and i want to install aqua sim in ns2.34 and while i try to install it there is an error in :
c compiler cannot creat executables
tcl8.4.14 configuration faild! existing

plz help me to solve this error
First, you need to read the LQ Rules. You not only re-opened an old thread, but hijacked it with your own question, and used text-speak. NONE of these are good things. Read the "Question Guidelines" link in my posting signature too...unless you provide actual details, there's not much we can tell you. Saying "32 bit os" tells us nothing..."try to install" (how, exactly?) tells us nothing.

Open your own thread for your own question.
 
Old 01-06-2016, 07:45 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Post #8, @randnabeel.

First : Aqua-Sim is ns-allinone-2.30 ! ns-2.34 cannot be used !

ns2 prerequisites : $ sudo apt-get update && sudo apt-get install \
g++ g++-4.4 autoconf libtool libxmu-dev

By the way, Ubuntu 14.04 cannot be used for Aqua-Sim (and many other protocols) any more.
See http://www.linuxquestions.org/questions/tags/aquasim/

P.S. : This thread is about CRCN only. Do not ask any other off topic questions.
Off topic questions will not be answered !
And read the rules http://www.linuxquestions.org/linux/rules.html


-

Last edited by knudfl; 01-06-2016 at 07:48 PM.
 
1 members found this post helpful.
  


Reply

Tags
crcn, crcn#7, crcn-el6, ns2


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in installing ns2.31 ines8989 Linux - Networking 9 06-19-2013 12:41 PM
Installing ns2.33 in Ubuntu 11.04 priyanka.moon14 Linux - Software 10 02-13-2013 08:49 AM
installing ns2.28 on ubuntu 10.04 nzny Linux - Software 3 03-01-2012 09:41 PM
i have problem in installing ns2.34 on ubuntu. error is aotoconf is unable to locate nitin4c Linux - Software 1 09-23-2011 05:38 AM
urgent -- error installing ns2 on ubuntu 7.04 king2k Linux - Newbie 8 02-02-2011 06:28 AM


All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration