LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ./config.h:60:19: fatal error: tclcl.h: No such file or directory #include <tclcl.h> (https://www.linuxquestions.org/questions/linux-software-2/config-h-60-19-fatal-error-tclcl-h-no-such-file-or-directory-include-tclcl-h-4175602324/)

count 03-22-2017 09:14 AM

./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. :confused: need some urgent help ...

HappyTux 03-22-2017 09:59 AM

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.

count 03-22-2017 03:30 PM

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.

HappyTux 03-22-2017 07:32 PM

Quote:

Originally Posted by count (Post 5686960)
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.

knudfl 03-23-2017 09:15 AM

@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/.

.

Shadow_7 03-23-2017 10:08 AM

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.


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