LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2017, 09:14 AM   #1
count
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Rep: Reputation: Disabled
Arrow ./config.h:60:19: fatal error: tclcl.h: No such file or directory #include <tclcl.h>


I wants to set up a new routing protocol in ns-2.35. I found the below error when i run the command 'make'.
"In file included from tools/random.cc:40:0:
./config.h:60:19: fatal error: tclcl.h: No such file or directory
#include <tclcl.h>
^
compilation terminated.
make: *** [tools/random.o] Error 1 "

I don't know why this error occuring.... I need some help to remove this error. need some urgent help ...

Last edited by count; 03-22-2017 at 09:25 AM.
 
Old 03-22-2017, 09:59 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,918

Rep: Reputation: 176Reputation: 176
It occurs because you have not install the development package that contains the header (.h) file needed. On Debian the file is contained in the following package.

Code:
:~$ apt-file search tclcl.h
apt-file search tclcl.h
libtclcl1-dev: /usr/include/tclcl/tclcl.h
You need to install the libtclcl1-dev package however it is named in your distribution.
 
Old 03-22-2017, 03:30 PM   #3
count
LQ Newbie
 
Registered: Mar 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Lightbulb

Sorry sir, i don't understand you. I am using ubuntu 14.04 . To add a new routing protocol i modified the below files in ns-2.35
-cmu-trace.cc
-cmutrace.h
-ns-packet.tcl
-ns-default.tcl
-ns-agent.tcl
-ns-lib.tcl
-ns-mobilenode.tcl
-packet.h
-priqueue.cc
-Makefile
before modifying these files there was not any error when i run "make" command.
 
Old 03-22-2017, 07:32 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,918

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by count View Post
Sorry sir, i don't understand you. I am using ubuntu 14.04 . To add a new routing protocol i modified the below files in ns-2.35
-cmu-trace.cc
-cmutrace.h
-ns-packet.tcl
-ns-default.tcl
-ns-agent.tcl
-ns-lib.tcl
-ns-mobilenode.tcl
-packet.h
-priqueue.cc
-Makefile
before modifying these files there was not any error when i run "make" command.
When you try to compile anything you need to have installed the required development files for what you are trying to compile. The command returns the error "fatal error: tclcl.h: No such file or directory" it cannot find the file tclcl.h which is in the package I showed you to install so it can find it. You may as well install the apt-file as well when installing the -dev package as I doubt it will be the last error you will see and you will be able to search for the package needed to install on your machine.
 
Old 03-23-2017, 09:15 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,430

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
@count : Welcome to LQ.

ns2 : A new added protocol will sometimes fail with missing headers ( tclcl.h ).

Solution :
1) First run the ./install command in ns-allinone-2.35/
I.e. './install' takes care doing the ns-2.35 configuring and 'make' in the right way.
( Only ns-2.26 - ns-2.34 can do ./configure right. Not ns-2.35 ! )


If 1) fails :
2) Make copies of the missing header(s) to ns-2.35/common/
... "tclcl.h" is in ns-allinone-2.35/tclcl-1.20/.

.
 
Old 03-23-2017, 10:08 AM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Ubuntu 14.04 lacks apt-file, but 16.04 has it now. The package names should be the same (-ish).

$ sudo apt-get install libtclcl1-dev

$ make


./config.h:60:19: fatal error: tclcl.h: No such file or directory

It failed because it couldn't find the file. Install the package that has the file, problem solved.
 
  


Reply

Tags
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
run make command: ./config.h:60:19: fatal error: tclcl.h: No such file or directory mary1001 Linux - Software 5 10-08-2017 07:44 AM
configure: error: Installation of tclcl seems incomplete or can't be found automatica banerjee Ubuntu 48 03-25-2015 07:46 AM
how to build tclcl-1.16 ghani143 Linux - Newbie 1 11-19-2010 12:05 AM
Questions about tclcl when install ns-allinone-2.26 ckflynn Linux - Software 1 04-26-2007 08:35 PM
Questions about tclcl when install ns-allinone-2.26 ckflynn Programming 1 04-26-2007 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 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
Open Source Consulting | Domain Registration