LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 04-01-2014, 12:17 AM   #1
kunal0807
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Rep: Reputation: Disabled
can anyone help me to solve this problem?


i am having problem to run leach protocol in ns-2.34-allinone,i follow the step that described in forum ,but when i excute ./configure it gives me error that attach below..







root@kunal-VirtualBox:/home/kunal/ns-allinone-2.34/ns-2.34# ./configure
checking for gcc... gcc
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 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... no
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../tcl8.4.18/generic
checking for tclInt.h... -I../tcl8.4.18/generic
checking for libtcl8.4... no
checking for init.tcl... ../tcl8.4.18/library
checking for http.tcl... ../tcl8.4.18/library/http
checking Tcl http.tcl library... yes
checking for tclsh8.4.18... 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.
root@kunal-VirtualBox:/home/kunal/ns-allinone-2.34/ns-2.34# make clean
Makefile.in is newer than Makefile.
You need to re-run configure.
false
make: *** [Makefile] Error 1
root@kunal-VirtualBox:/home/kunal/ns-allinone-2.34/ns-2.34#
 
Old 04-01-2014, 12:49 AM   #2
bcwagne
Member
 
Registered: Feb 2008
Distribution: Debian Testing
Posts: 169

Rep: Reputation: 32
These lines seem to be the problem:

Quote:
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.
It seems that tcl is not installed, or the compiler cannot find it. I would first check to see that it is installed. Check the repositories of your distribution and search for tcl. A few packages should come up. Installing tcl and tcl-dev (or similar, depending on distribution) should at least get you to the next step hopefully. Make sure those packages are installed and try again.

If you're absolutely sure those packages are installed, using the tag (according to the above error)
Code:
configure --with-tcl=/path/to/package
should tell the configure script where the necessary libraries are located on your system.

Good luck!

Last edited by bcwagne; 04-01-2014 at 12:50 AM.
 
Old 04-01-2014, 12:53 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,950

Rep: Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326Reputation: 7326
in general do not use root to build software (use normal user to execute configure). In your case you will need to install tcl first and clean up your environment before switching to another user.
 
  


Reply



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
how to solve solve broken shell problem prasanth.george Red Hat 1 01-21-2011 09:48 AM
solve my problem kamalkirat1 Linux - Software 2 12-03-2008 07:47 AM
I need help to solve this problem TheTiger Fedora 1 10-26-2005 01:01 PM
Who can help me to solve this problem? Annie0716 Programming 2 08-09-2004 07:59 PM
No one can solve my problem Sundance Linux - Newbie 5 12-08-2003 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:37 AM.

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
Open Source Consulting | Domain Registration