Solved

installing wireshark in AIX  6.1

Posted on 2010-08-29
5
1,886 Views
Last Modified: 2012-05-10
I am trying to install wireshark in AIX 6.1 server. For this to install, there are so many packages i need to install and did most of them that are required(i think).

when i tried to install wireshark, it is giving the followin error:

checking for GTK+ - version >= 2.4.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error: GTK+ 2.4 or later isn't available, so Wireshark can't be compiled

I tried to install gtk+-2.4.0 and, it is giving the following error:

checking for glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0... Package pango was not found in the pkg-config search path. Perhaps you should add the directory containing `pango.pc' to the PKG_CONFIG_PATH environment variable No package 'pango' found
configure: error: Library requirements (glib-2.0 >= 2.4.0    atk >= 1.0.1    pango >= 1.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.


when i tried to install the pango, it is giving me the following error:

checking pkg-config is at least version 0.9.0... yes
checking for FONTCONFIG... no
no
checking Carbon/Carbon.h usability... no
checking Carbon/Carbon.h presence... no
checking for Carbon/Carbon.h... no
checking for CAIRO... no
no
checking for GLIB... no
configure: error:
*** Glib 2.17.3 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.

i downloaded the Glib package and i am run the ./configure command successfully and now, i am getting  this error:

ECATED                  -DGLIB_COMPILATION              -DPCRE_STATIC -DG_DISABLE_SINGLE_INCLUDES -pthread   -g -O2 -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c -o gconvert.lo gconvert.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I.. -DG_LOG_DOMAIN=\"GLib\" -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGLIB_COMPILATION -DPCRE_STATIC -DG_DISABLE_SINGLE_INCLUDES -pthread -g -O2 -Wall -MT gconvert.lo -MD -MP -MF .deps/gconvert.Tpo -c gconvert.c  -DPIC -o .libs/gconvert.o
gconvert.c:52:2: error: #error GNU libiconv in use but included iconv.h not from libiconv
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.

I am new to this installation and want to find out, how to proceed with this error?


0
Comment
Question by:kalyan_arjun
  • 3
  • 2
5 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 33553299
libiconv is part of AIX, but someone additionally installed GNU libiconv on your system.

So either deinstall GNU libiconv or set your LIBPATH to explicitly contain /usr/lib preceeding any other library (not sure whether the latter will help, however).

wmp
0
 

Author Comment

by:kalyan_arjun
ID: 33557934
i set the path to /usr/lib
# whereis libiconv
libiconv: /usr/lib/libiconv.a

and still getting the same error.

How would i know to find other libiconv.a is installed on this machine so that i could uninstall?
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 500 total points
ID: 33558234
If installed via rpm:
rpm -qa | grep -i libiconv , then rpm -e ...
else search /usr/local/*
Maybe you could try "./configure --without-libiconv" ?
Perhaps it could actually help to get rid of G_DISABLE_SINGLE_INCLUDES. Check config.h(.in), but again, not sure about this!
The ultimate solution could be installing wireshark and all its prerequisites as binary RPMs from here - www.perzl.org , instead of compiling from source!
http://www.perzl.org/aix/index.php?n=Main.Wireshark
wmp
0
 

Author Comment

by:kalyan_arjun
ID: 33559390
# rpm -qa | grep -i libiconv
#
It is part of the /usr/local and i had set the LIBPATH.

Tried /configure --without-libiconv and it failed

checking for iconv_open... no
configure: error: *** No iconv() implementation found in C library or libiconv

I am not sure how to proceed further..


0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 33559459
Which "make" do you use?
It often helps to use GNU make (gmake) instead of AIX's make from "bos.adt"
unset LIBPATH is always a good idea.
Do you  run "make clean" and do you remove "config.cache" before starting a new attempt?
How about installing everything via binary rpm from the site I posted?
 
 
 
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now