Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gustavoQ

macrumors newbie
Original poster
Apr 15, 2010
23
0
Hello,

i'm having problems running and installing the Wireshark for Mac OS X.

I download Wireshark 1.4.4 Intel 64.dmg file put the appliction in app folder and try to run it, but nothing happens. I try run it by the X11 terminal and appear this error:

dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib
Referenced from: /Applications/Wireshark.app/Contents/Resources/bin/wireshark-bin
Reason: Incompatible library version: wireshark-bin requires version 45.0.0 or later, but libpng12.0.dylib provides version 42.0.0

I have this version of the xQuartz: XQuartz 2.3.6 (xorg-server 1.4.2-apple56).

Than i try to install using the macport.
In the terminal i put: port install wireshark. But the installation does not finish.
This error appears:
---> Configuring gnome-doc-utils
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Error: Failed to install gnome-doc-utils
Log for gnome-doc-utils is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org _release_ports_gnome_gnome-doc-utils/main.log
Error: The following dependencies were not installed: gtk2 atk gtk-doc gnome-doc-utils gdk-pixbuf2 jasper pango Xft2 xrender xorg-libX11 xorg-libxcb xorg-libpthread-stubs xorg-xcb-proto xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto cairo libpixman shared-mime-info xorg-libXcomposite xorg-compositeproto xorg-libXext xorg-libXfixes xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto libpcap
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

I don't know what to do anymore.
Does anyone know what could be?

Thank you
 
Worked for me

Installation of WireShark V1.0 on Mac OS XWith V1.0 the WireShark project supports Mac OS X. The installation is not difficult, but mostly undocumented. This page shows, how I did it.
Previously this page contained a launcher for WireShark, when installed via Fink or MacPorts. This is still available here.
DownloadingFor Macs with Intel processor a binary package is available on the WireShark download page http://www.wireshark.org/download.html.
Older Macs with PPC processor have to install it via Fink or MacPorts.
Installation of Wireshare PackageThe base installation process is very Mac like. Open the downloaded .dmg disk image and move the WireShark application to your Applications folder (or anywhere else).
After the first installation you currently have to do some additional stuff. This has to be done only once.
Don't be confused by an eror message, when you try to open the "Read me first.rtf". Everything is fine with your download. This file is currently only a placeholder. It's empty, 0 bytes long.
Fixing PermissionsIn previous versions WireShark was started with administrator priviledge through special launchers. In V1.0 it's no longer necessary to start it with special priviledges. You even get a warning when you do.
The new (unpriviledged) WireShark application won't work properly, when preference files of an older (priviledged) WireShark are found. You have either delete the old preferences or give them "normal" access permissions.
I prefer to keep my old preferences, so I change the file ownership of .wireshark from root back to my normal username.
The following command in Terminal changes it:

sudo chown -R <username> .wireshark
You, of course, need this only, when you used WireShark before.
Allowing Access to the Network InterfacesWhen starting the new WireShark you will notice that you can't do any sniffing, as there are no network interfaces available.
To allow this, the BPF devices need to be accessable by WireShark. For more details have a look into Utilities → Startup → README.macosx on the WireShark disk image.
The following commands in Terminal will install the necessary files to set the BPF permissions. Then all users with administrator rights will be able to sniff packets.

sudo -s
cd /Library/StartupItems
cp -pR /Volumes/Wireshark/Utilities/Startup ChmodBPF
chown -R root:wheel ChmodBPF
exit
After a reboot, WireShark should be able to access all network interfaces.
Optional: Installing Command Line Versions of WireSharkIf you want to be able to use the WireShark utilities on the command line (Terminal), install some small scripts on your system.

sudo install -p /Volumes/Wireshark/Utilities/Command\ Line/* /usr/local/bin
If you haven't installed the WireShark application into /Applications, you have to tell the command line scripts, where to find it.
Open .profile with an editor and add the line

export WIRESHARK_APP_DIR="<Directory, where WireShark resides>/Wireshark.app"
Then close all existing Terminal windows. With a new Terminal session you should be able to access WireShark utilities.


taken from http://www.bernhard-ehlers.de/projects/Wireshark.html

this method worked for me on my macbook 5,1 intel. Good luck
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.