Sunday, October 26, 2008

How to install iNSpect-3.5 on systems with GCC version 3.4.6

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 (tcamp@mines.edu).For more information on this tool visit this web-site

http://toilers.mines.edu/Public/NsInspect

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
ffriend-injection
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
Good Luck
:)

8 comments:

Lipur - Deka said...

Dear Chandra,

I found problem when installing iNSpect-release3.5. The installation process just stop when checking GL library
…………………………
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glNewList in -lopengl32... no
configure: error: Cannot find GL library
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.

Was not able to install GtkGLext. Make sure that you have the gtkglext tar file
in the current directory.

I have checked that gtkglext-1.2.0.tar.gz was exist. How to solve the problem?

Thank you for your help.

Anonymous said...

Dear Chandra,
I found problem when installing iNSpect-release3.5. The installation process just stop when checking GL library
…………………………
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking for glNewList in -lopengl32... no
configure: error: Cannot find GL library
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.

Was not able to install GtkGLext. Make sure that you have the gtkglext tar file
in the current directory.

I have checked that gtkglext-1.2.0.tar.gz was exist. How to solve the problem?


here is my mail id : g_c_praveen@yahoo.com.

pls send the suggestion to my mail id.

Thank u in advance...

Chandra said...

Apologies for the delay!!!
This may help
http://toilers.mines.edu/Public/INSpectInstallation

Anonymous said...

Dear Chandra ,
During inspect installation i am getting error when i type the make command to complete the installation ,i have done evrything ,removed ffriend-injection,but still not working for me.I am getting the following error
g++:no inputfiles
mymailid:rupesh.globeit@gmail.com

Ravi Teja said...

Hi
my linux version is redhat enterprise linux server 5.5 i386
i tried to install iNSpect toolkit 3.5 on my system
but it is giving errors


checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... Invalid configuration `i686-pc-linux-': machine `i686-pc-linux' not recognized
configure: error: /bin/sh ./config.sub i686-pc-linux- failed
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.
make: *** No targets specified and no makefile found. Stop.

Was not able to install GtkGLext. Make sure that you have the gtkglext tar file in the current directory.

guys please help me out
its very urgent for me

Anonymous said...

Hello Sir

I am using ubuntu 12.04 and installed iNSpect_4_beta_3. The installation is running properly. But after I executed: /iNSpect_4_beta_3# ./iNSpect -l2 sample/wireless/wireless1-out.tr

I got error like this:
g_thread NOT supported

I used NS2.34. How to fix my problem? Please give me a help.

Thank You.

Anonymous said...

Hello Sir,

I have the same problem "g_thread NOT supported"

Is there any solution how to fix this problem?

Thank You!

Tô Hoàng Linh said...

g_thread NOT supported, occurs with both iNSpect 4 beta 3 and iNSpect 3.5 (stable)

Searching through Internet, but only see suggestions of installing some packages. I did but nothing was improved.

Anybody helps will be appreciated.