And accordingly also change the version numbers. Remember replace “/opt/” by your installation path like “/home/username”. Try ns or nam to see whether your installation succeeded.Īdd the following lines to the end of it. bash_profile file like thisĮxport LD_LIBRARY_PATH=$LD_LIBRARY_PATH: here. Once installed the PATH information will be provided to you.Ĭopy the PATH and LD_LIBRARY_PATH Variable to /home/madhurpremg/NS2/nsallinone-2.35/.bash_profile (see a dot in the beginning) install and this time the installation will be successful. PATH=$NS_HOME/bin:$NS_HOME/tcl8.4.18/unix:$NS_HOME/tk8.4.18/unix:$PATHĪdd to ~/.cshrc_user if you use c shell setenv NS_HOME "/full/path/to/ns-allinone-2.34" During the install process, specify the CXX compiler we use $ cd ns-allinone-2.34Ĭonfigure the environmental variables for ns-2 and nam, and add the executables to the PATH so that we can use ns and nam directly.Īdd to ~/.bashrc if you use bash NS_HOME=/full/path/to/ns-allinone-2.34 So we install gcc-34 and gcc-34-c++ for it # yum install compat-gcc-34 compat-gcc-34-c++ Install needed pacakges # yum install gcc make libX11-devel libXt-devel libXmu-devel Uncompress the pacakge $ tar xf ns-allinone-2.34.tar.gz
0 Comments
Leave a Reply. |