The nam or the Network Animator found in ns2 is built for visualizing the simulations of wired-networks. So it is better to use some other specialised visualization tools built to support wireless-network simulations. One such tool that is built for visualizing Wireless simulations on ns2 is iNSpect which is freely available on request. The tool can be available by sending a request mail to Tracy Camp (email@example.com).For more information on this tool visit this web-site
I tried to install the iNSpect-release 3.5 on my system which has the following configuration
OS: Red Hat Enterprise Linux release 4
GCC Version: 3.4.6
and the installation failed.
I tried to figure out the problem and found out that the iNSpect needs at-least GCC version 4.
I tried to update my GCC.....but my net connection was slow and it was taking a hell lot of time...and one of my friend told me that the Linux kernel depends on the GCC and if you try to modify the GCC the OS may give you some problems......
I dont want to change my OS, so was looking for any fixes by which I could install this package....
After spending some time on Google, I realized that GCC version 4 added a new feature called
in-order to comply with new ANSI-standards.
Now I observed that I was getting the error because of this new feature......GCC 3.4.6 is not able to recognize ffriend-injection.
Then a post in one of the Help-Forums helped me.......
It said that by disabling the ffriend-injection flag in the installation script you can successfully install the software....
Now these are the steps I tried and successfully installed the iNSpect-release 3.5 on my GCC 3.4.6 system, I think the same steps can be followed to install this package on systems with GCC version less than 4.
1) Open the file install present in package iNSpect-release 3.5, in any editor
2) Search for the line containing -ffriend-injection (I think it is line no 93)
It appears like this
g++ -g -c \$(CFLAGS) \$(gtkCFLAGS) -ffriend-injection \$<
3) Now delete "-ffriend-injection", after deleting the resultant line looks like this
g++ -g -c \$(CFLAGS) \$(gtkCFLAGS) \$<
4) Now save the file and close it.
5) Now try to install the package......
It worked for me.......
Hope it helps