tclPort。h:23:致命错误:tclUnixPort。h:没有这样的文件或目录

时间:2021-02-14 22:51:44

I am trying to install ns2 simulator on Ubuntu 16.04 LTS by following steps mentioned at The Network Simulator: Building Ns.

我正在尝试在Ubuntu 16.04 LTS上安装ns2模拟器,方法是按照网络模拟器中提到的步骤:构建Ns。

I downloaded tcl8.6.7-src.tar.gz and tk8.6.7-src.tar.gz from link.

我下载tcl8.6.7-src.tar。广州和tk8.6.7-src.tar。广州从链接。

Installed tcl and tk properly by following steps mentioned in link.

通过以下链接中提到的步骤正确安装tcl和tk。

Downloaded otcl-1.14 from here.

从这里下载otcl - 1.14。

But when I tried installing otcl , it gives following error when I fire make command

但是当我尝试安装otcl时,当我启动make命令时,它会出现以下错误

tclPort。h:23:致命错误:tclUnixPort。h:没有这样的文件或目录

When I checked my tcl installation directory I found the tclUnixPort.h file in /home/danny/ns2/tcl8.6.7/unix. So I modified gcc INCLUDE path in Makefile to include above path. But still no success in compiling source code of otcl. Getting following error..

当我检查tcl安装目录时,我找到了tclUnixPort。h文件/home/danny/ns2/tcl8.6.7/unix.因此我修改了Makefile中的gcc INCLUDE路径以包含上面的路径。但是在otcl的源代码编译上仍然没有取得成功。得到以下错误. .

tclPort。h:23:致命错误:tclUnixPort。h:没有这样的文件或目录

Kindly suggest possible solution to resolve this error. Thanks in advance

请建议可能的解决方案来解决这个错误。谢谢提前

1 个解决方案

#1


0  

ns-2.35 (otcl ?) cannot use tcl, tk version 8.6.x, I think. Besides that, if you ever need a system wide tcl8.5 - tk8.5 , Ubuntu packages must be used : sudo apt install tcl8.5-dev tk8.5-dev

ns-2.35 (otcl ?)不能使用tcl, tk版本8.6。我认为x。此外,如果您需要一个系统范围的tcl8.5- tk8.5,必须使用Ubuntu包:sudo apt安装tcl8.5-dev tk8.5-dev

Your link : old year 2011 text https://www.isi.edu/nsnam/ns/ns-build.html : No good !

你的链接:旧年2011文本https://www.isi.edu/nsnam/ns/ns-build.html:不好!

Latest : Get the "2014 - 2017 update" ns-allinone-2.35_gcc5.tar.gz → Right versions of tcl tk otcl tclcl are included → https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing

最新消息:获得“2014 - 2017年度更新”ns-allinone-2.35_gcc5.tar。广州→正确版本的tcl tk otcl tclcl包括→https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing

The build :

构建:

tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
./install
cd ns-2.35/
sudo make install
cd ../nam-1.15/
sudo make install

That's it. And you now have /usr/local/bin/{ nam, ns }

就是这样。现在有/usr/local/bin/{nam, ns}

Note : The Ubuntu 16* nam package is corrupt. Don't use.

注意:Ubuntu 16* nam包损坏。不要使用。

P.S. : Images with text will not be read. Please use copy-paste for text!

附注:文字图像不会被读取。请使用复制粘贴的文本!

#1


0  

ns-2.35 (otcl ?) cannot use tcl, tk version 8.6.x, I think. Besides that, if you ever need a system wide tcl8.5 - tk8.5 , Ubuntu packages must be used : sudo apt install tcl8.5-dev tk8.5-dev

ns-2.35 (otcl ?)不能使用tcl, tk版本8.6。我认为x。此外,如果您需要一个系统范围的tcl8.5- tk8.5,必须使用Ubuntu包:sudo apt安装tcl8.5-dev tk8.5-dev

Your link : old year 2011 text https://www.isi.edu/nsnam/ns/ns-build.html : No good !

你的链接:旧年2011文本https://www.isi.edu/nsnam/ns/ns-build.html:不好!

Latest : Get the "2014 - 2017 update" ns-allinone-2.35_gcc5.tar.gz → Right versions of tcl tk otcl tclcl are included → https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing

最新消息:获得“2014 - 2017年度更新”ns-allinone-2.35_gcc5.tar。广州→正确版本的tcl tk otcl tclcl包括→https://drive.google.com/file/d/0B7S255p3kFXNVVlxR0ZNRGVORjQ/view?usp=sharing

The build :

构建:

tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
./install
cd ns-2.35/
sudo make install
cd ../nam-1.15/
sudo make install

That's it. And you now have /usr/local/bin/{ nam, ns }

就是这样。现在有/usr/local/bin/{nam, ns}

Note : The Ubuntu 16* nam package is corrupt. Don't use.

注意:Ubuntu 16* nam包损坏。不要使用。

P.S. : Images with text will not be read. Please use copy-paste for text!

附注:文字图像不会被读取。请使用复制粘贴的文本!