How do I get etherape to work in OS X 10.6.6?
Zack Perry
zack.perry at sbcglobal.net
Sun Mar 6 11:49:35 PST 2011
Recently, to test a network software I need to use OS X on a MacBook Pro2,1, which runs OS X 10.6.6, has two GB RAM, 2.33Ghz Intel Core 2 Due CPU, and 160GB HD. The MacBook is always updated via Apple's software update, and I have installed the latest XCode just a few days ago from Apple's developer site.
I have been using UNIX/Linux for a few years (although relatively new to OS X, just a couple of weeks), and like to use the following two tools:Wireshark (formally ethereal)Etherape So, I wanted to get both on this MacBook Pro.
As preparation, I installed the MacPorts installer per http://www.macports.org/install.php. I reviewed some other associated projects, and decided to install XQuartz 2.6.0 too. See below xdpyinfo output:
name of display: /tmp/launch-T3bXXB/org.macosforge.xquartz:0version number: 11.0vendor string: The X.Org Foundationvendor release number: 10903000X.Org version: 1.9.3[...]
It works fine. When I launch a xterm from Terminal.app, the XQuartz icon (rather than the white X box from Apple) appears on the dock automatically.
Getting 1. to work took only a bit of fiddling. I first downloaded Wireshark_1.4.4_inel_64.dmg from http://wireshark.org/download.html, and did the /Library/StartupItems adjustments, including editing the /Library/StartupItems/ChmodBPF/ChmodBPF shell script so that I (rather than the 'root') can run it. This version, other than shows an information window with an ( ok ) button, doesn't do anything.
So, I immediately did a sudo port install wireshark. This one works OOTB.
Moving on to 2, it has many dependencies, so downloading all sources, and building took a long time. Once done, in a xterm, I did sudo etherape to test, and promptly got the following:
Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!Dynamic session lookup supported but failed: launchd did not provide a socket path, verify that org.freedesktop.dbus-session.plist is loaded!
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
(etherape:1066): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
Furthermore, a warning window also appeared, and informed me:
An error occured while loading or saving configuration information for etherape. Some of your configuration settings may not work properly.
And, a [ Details ] button. Clicking on it, there is a message:
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory)Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory)Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory)Failed to contact configuration server; some possible causes are that you need to
enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory)Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details - 1: Failed to get connection to session: Not enough memory)
Not enough memory? According to htop (which I installed via sudo port install htop), at this time, I had 891/2048MB. So, that assertion is unlikely to be true.
I also have two dbus sessions (one launched with sudo, one under my own user id):
263 52 1 0 0:00.01 ?? 0:00.01 /opt/local/bin/dbus-daemon --system --nofork 501 250 225 0 0:00.00 ?? 0:00.00 /opt/local/bin/dbus-daemon --nofork --session
The Etherape windows just sits there, with a dark display not showing anything. Futhermore, clicking on its Help (Cntl-H), no help info appears either. Although About does show it's Etherape 0.9.9.
Under Capture -> Interfaces, I do see four interfaces, en0, fw1, en1, and lo0.
The installation seems to be ok.
$ port info etherapeetherape @0.9.9, Revision 1 (net)Variants: universal
Description: EtherApe is a graphical network monitor for Unix modeled after etherman. Featuring link layer, ip and TCP modes, it displays network activity graphically. Hosts and links change in size with traffic. Color coded protocols display. It supports Ethernet, FDDI, Token Ring, ISDN, PPP and SLIP devices. It can filter traffic to be shown, and can read traffic from a file as well as live from the network.Homepage: http://etherape.sourceforge.net/
Build Dependencies: gnome-doc-utilsLibrary Dependencies: libgnomeui, libpcapPlatforms: darwinLicense: unknownMaintainers: nomaintainer at macports.orgmacbook-0:~ fangchin$ port info gnome-doc-utilsgnome-doc-utils @0.20.4 (gnome)
The etherape binary's library dependency seems to be fine too:
$ otool -L `which etherape`/opt/local/bin/etherape: /opt/local/lib/libglade-2.0.0.dylib (compatibility version 1.0.0, current version 1.7.0) /opt/local/lib/libgnomeui-2.0.dylib (compatibility version 2401.0.0, current version 2401.4.0) /opt/local/lib/libgnome-keyring.0.dylib (compatibility version 2.0.0, current version 2.1.0) /opt/local/lib/libeggdbus-1.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libgcrypt.11.dylib (compatibility version 18.0.0, current version 18.0.0) /opt/local/lib/libgpg-error.0.dylib (compatibility version 9.0.0, current version 9.0.0) /opt/local/lib/libbonoboui-2.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current version 7.1.0) /opt/local/lib/libICE.6.dylib (compatibility version 10.0.0, current version 10.0.0) /opt/local/lib/libgnomecanvas-2.0.dylib (compatibility version 3001.0.0, current version 3001.2.0)
/opt/local/lib/libgailutil.18.dylib (compatibility version 19.0.0, current version 19.1.0) /opt/local/lib/libgnome-2.0.dylib (compatibility version 3001.0.0, current version 3001.0.0) /opt/local/lib/libgnomevfs-2.0.dylib (compatibility version 2401.0.0, current version 2401.4.0) /opt/local/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.8.0) /opt/local/lib/libssl.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libcrypto.1.0.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libesd.0.dylib (compatibility version 3.0.0, current version 3.39.0) /opt/local/lib/libaudiofile.0.dylib (compatibility version 1.0.0, current version 1.2.0) /opt/local/lib/libpopt.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libbonobo-2.0.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/libbonobo-activation.4.dylib (compatibility version 5.0.0,
current version 5.0.0) /opt/local/lib/libORBitCosNaming-2.0.dylib (compatibility version 2.0.0, current version 2.0.0) /opt/local/lib/libart_lgpl_2.2.dylib (compatibility version 6.0.0, current version 6.21.0) /opt/local/lib/libgtk-x11-2.0.0.dylib (compatibility version 2201.0.0, current version 2201.1.0) /opt/local/lib/libgdk-x11-2.0.0.dylib (compatibility version 2201.0.0, current version 2201.1.0) /opt/local/lib/libatk-1.0.0.dylib (compatibility version 3210.0.0, current version 3210.1.0) /opt/local/lib/libpangocairo-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.3.0) /opt/local/lib/libXinerama.1.dylib (compatibility version 2.0.0, current version 2.0.0) /opt/local/lib/libXi.6.dylib (compatibility version 8.0.0, current version 8.0.0) /opt/local/lib/libXrandr.2.dylib (compatibility version 5.0.0, current version 5.0.0) /opt/local/lib/libXext.6.dylib (compatibility version 11.0.0, current version 11.0.0)
/opt/local/lib/libXcursor.1.dylib (compatibility version 2.0.0, current version 2.2.0) /opt/local/lib/libXcomposite.1.dylib (compatibility version 2.0.0, current version 2.0.0) /opt/local/lib/libXdamage.1.dylib (compatibility version 3.0.0, current version 3.0.0) /opt/local/lib/libgdk_pixbuf-2.0.0.dylib (compatibility version 2201.0.0, current version 2201.1.0) /opt/local/lib/libpangoft2-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.3.0) /opt/local/lib/libgio-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0) /opt/local/lib/libXfixes.3.dylib (compatibility version 5.0.0, current version 5.0.0) /opt/local/lib/libcairo.2.dylib (compatibility version 11003.0.0, current version 11003.2.0) /opt/local/lib/libpixman-1.0.dylib (compatibility version 21.0.0, current version 21.2.0) /opt/local/lib/libXrender.1.dylib (compatibility version 5.0.0, current version 5.0.0) /opt/local/lib/libX11.6.dylib (compatibility version
10.0.0, current version 10.0.0) /opt/local/lib/libxcb.1.dylib (compatibility version 3.0.0, current version 3.0.0) /opt/local/lib/libXau.6.dylib (compatibility version 7.0.0, current version 7.0.0) /opt/local/lib/libXdmcp.6.dylib (compatibility version 7.0.0, current version 7.0.0) /opt/local/lib/libpango-1.0.0.dylib (compatibility version 2801.0.0, current version 2801.3.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.1) /opt/local/lib/libfontconfig.1.dylib (compatibility version 6.0.0, current version 6.4.0) /opt/local/lib/libfreetype.6.dylib (compatibility version 13.0.0, current version 13.2.0) /opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current version 7.2.0) /opt/local/lib/libpng14.14.dylib (compatibility version 20.0.0, current version 20.0.0) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5) /opt/local/lib/libgconf-2.4.dylib (compatibility version 6.0.0, current
version 6.5.0) /opt/local/lib/libORBit-2.0.dylib (compatibility version 2.0.0, current version 2.0.0) /opt/local/lib/libdbus-glib-1.2.dylib (compatibility version 4.0.0, current version 4.0.0) /opt/local/lib/libdbus-1.3.dylib (compatibility version 8.0.0, current version 8.0.0) /opt/local/lib/libgmodule-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0) /opt/local/lib/libgobject-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0) /opt/local/lib/libgthread-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0) /opt/local/lib/libglib-2.0.0.dylib (compatibility version 2801.0.0, current version 2801.1.0) /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current version 41.0.0) /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.1.0) /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0) /opt/local/lib/libpcap.A.dylib (compatibility
version 1.0.0, current version 1.1.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 152.0.0)
I even recompiled etherape using source downloaded directly from the Etherape sourceforget site. Same result.
I am quite puzzled and would appreciate a hint as to how I can get etherape work "correctly".
Thanks,
-- Zack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20110306/8816b234/attachment.html>
More information about the macports-users
mailing list