Networking 在fedora 17上安装NS2.35时出错

Networking 在fedora 17上安装NS2.35时出错,networking,simulation,ns2,Networking,Simulation,Ns2,我正在尝试使用allinone软件包在fedora 17上安装NS2.35。 我是linux环境的新手,已经花了很多时间尝试这个。到目前为止,我发现依赖包存在问题。但我无法找出下面的错误。 请帮忙 =========================================================== * Build Tclcl-1.20 ============================================================ No .configu

我正在尝试使用allinone软件包在fedora 17上安装NS2.35。 我是linux环境的新手,已经花了很多时间尝试这个。到目前为止,我发现依赖包存在问题。但我无法找出下面的错误。 请帮忙

===========================================================
* Build Tclcl-1.20
============================================================
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... 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 for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 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 standard STL is available... no
checking for ranlib... ranlib
checking for snprintf... yes
checking for ANSI C header files... (cached) yes
checking for strtoq... yes
checking for strtoll... yes
checking size of long... 8
checking for strtol... yes
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.5... -L../lib -ltcl8.5
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.5.10... no
checking for tclsh8.5... ../bin/tclsh8.5
checking for tk.h... -I../include
checking for libtk8.5... -L../lib -ltk8.5
checking for tk.tcl... ../lib/tk8.5
checking for otcl.h... -I../otcl-1.14
checking for libotcl1.14... -L../otcl-1.14 -lotcl
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for zlib.h... -I/usr/include
checking for libz1.1.3... no
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking system version (for system-dependent libraries)... Linux-3.3.4-5.fc17.x86_64
checking for unistd.h... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
rm -f tcl2c++
g++   -o tcl2c++ tcl2c++.o
make: g++: Command not found
make: *** [tcl2c++] Error 127
tclcl-1.20 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
非常感谢
- Uday

<代码> G+:命令未找到——您需要安装(GCC C++编译器),谢谢快速回复。是否安装了GCC,GCC版本是否存在问题?只要读一下NS2.35旧版本的GCC就可以了,是这样吗?(我刚刚检查过,GCC 4.7现在安装了)它看起来不像你安装了C++编译器。一些发行版有多个GCC软件包,可能您没有正确的。是的,我现在使用yum install GCC-c++安装了它,然后尝试了,它显示了以下错误!linkstate/ls.cc:396:28:此处必需linkstate/ls.h:137:20:错误:“erase”未在此范围内声明,并且在实例化点[-fpPermissive]通过依赖参数的查找未找到任何声明linkstate/ls.h:137:20:注意:非限定查找linkstate/ls未找到依赖基'std::map'中的声明。h:137:20:注意:使用'this->erase'代替make:**[linkstate/ls.o]错误1 Ns make失败!你好,我找到答案了。在下面的文件中,需要对语法进行一些小的修改,它就成功了。1.转到ns-allinone-2.35/ns-2.35/linkstate/2。编辑第137行中的ls.h,代替void eraseAll(){erase(baseMap::begin(),baseMap::end());}使其无效eraseAll(){this->erase(baseMap::begin(),baseMap::end());}3。保存文件并再次运行。/install