Wireshark

Kok-Yong Tan ktan at realityartisans.com
Tue May 20 16:36:49 PDT 2008


It appears that you're right.  Actually, until I uninstalled the  
+no_x11 variant and re-installed the x11 variant, there was no  
wireshark in /opt/local/bin (i.e., "which wireshark" failed).  I  
must've picked up the nice blue Aqua icon from somewhere else.  Oh well.

Anyway, I did some digging into the package contents that included  
the nice little blue 3D Wireshark icon in /Applications and where the  
executable should be in the package contents is just a Bash shell  
script containing the following lines:

#!/bin/bash
open -a X11 /usr/local/bin/wireshark

so I went in there and edited it to read:

#!/bin/bash
open -a X11 /opt/local/bin/wireshark

after I had reinstalled the X11 wireshark variant.  Now, double- 
clicking it first brings up X11 first before starting wireshark under  
it.  It'll do for now until someone comes up with an Aqua  
variant...  :-)

Thanks for the info.

On May 20, 2008, at 19:12, Mike Savory wrote:

> Hi
>
> The Wireshark Port installs the following binaries
>
> $ port contents wireshark
> Port wireshark contains:
>   /opt/local/bin/capinfos
>   /opt/local/bin/dftest
>   /opt/local/bin/dumpcap
>   /opt/local/bin/editcap
>   /opt/local/bin/idl2wrs
>   /opt/local/bin/mergecap
>   /opt/local/bin/randpkt
>   /opt/local/bin/rawshark
>   /opt/local/bin/text2pcap
>   /opt/local/bin/tshark
>   /opt/local/bin/wireshark
> ....
>
> My understanding of the Wireshark application is that if it is  
> built without X11 support then then the other binaries are still  
> built, but wireshark itself not built as a binary. ie Wireshark  
> only works with a gui
>
> This is supported by examinng the portfile where the variant is  
> defined as
>
> variant no_x11	{
> 	depends_lib-delete	port:gtk2
> 	configure.args-delete	--disable-gtk2
> 	configure.args-append	--disable-wireshark
>        }
>
> It does not attempt to built an Aqua variant.
> See Section GUI item 3 on
> http://wiki.wireshark.org/Development/Wishlist
>
>
> The port does not install anything in /Applications so the  
> "wrapper" you have is not part of macports and probably came from  
> elsewhere (which is why it cant find the binaries).
>
> What do you get when you type
>
> > which wireshark
> > /opt/local/bin/wireshark -v
> > /opt/local/bin/tshark -v
>
> Regards
>
> Mike
>
>
> On May 20, 2008, at 2:47 PM, Kok-Yong Tan wrote:
>
>>
>> On May 19, 2008, at 14:06, Kok-Yong Tan wrote:
>>
>>>
>>> On May 19, 2008, at 12:31, Robert Liesenfeld wrote:
>>>
>>>>
>>>> On May 19, 2008, at 9:27 AM, Avery Rozar wrote:
>>>>
>>>>> Thanks for your reply,
>>>>> I'm new to the mac, is there a difference between xcode 3.0,  
>>>>> and the
>>>>> xfree86 package? Thanks.
>>>>>
>>>>
>>>> Yes, the Xcode package is the suite of developer tools from Apple.
>>>> These tools are required to build ports.  XFree86 is an X11 server,
>>>> prevalent in the Linux world.  If you don't know what an X11 server
>>>> is, you will probably be happy with the +no_x11 variant on ports  
>>>> that
>>>> support it (such as wireshark).
>>>
>>>
>>> Okay, just for giggles, I did:
>>>
>>> sudo port -v install wireshark +no_x11
>>>
>>> Unfortunately, at the end, it complained the another variant was
>>> activated so I deactivated that with:
>>>
>>> sudo port -v deactivate wireshark +darwin_8
>>>
>>> and activated the +no_x11 version with:
>>>
>>> sudo port -v install wireshark +no_x11
>>>
>>> which returned without error.  And
>>>
>>> port -v installed wireshark
>>>
>>> displays the following:
>>>
>>> The following ports are currently installed:
>>>   wireshark @1.0.0_0+darwin_8
>>>   wireshark @1.0.0_0+darwin_8+no_x11 (active)
>>>
>>> However, when I double-clicked the icon in /Applications, I get an
>>> error in Console that reads:
>>>
>>> 2008-05-19 13:54:37.579 open[15218] No such file: /usr/local/bin/
>>> wireshark
>>>
>>> and the new activated wireshark isn't in /opt/local/bin either  
>>> (where
>>> the other wireshark used to reside).  What gives?  Is there anything
>>> I can do to get it to install correctly (either in /usr/local/bin  
>>> or /
>>> opt/local/bin)?
>>
>>
>> I've also tried the following to no avail:
>>
>> sudo port -v uninstall wireshark @1.0.0_0+darwin_8+no_x11
>>
>> and then:
>>
>> sudo port -v install wireshark @1.0.0+no_x11
>>
>> which returned without error but it still keeps looking for wireshark
>> in /usr/local/bin so I guess macports isn't installing wireshark
>> where the non-X11 wrapper seems to want it to be.  I can find the X11
>> version of wireshark in /opt/local/var/macports/software/wireshark/
>> 1.0.0_0+darwin_8/opt/local/bin/wireshark but no non-X11 version of
>> wireshark anywhere.
>>
>> I am running Mac OS 10.4.11 with Xcode 2.4.1 and X11R6 installed from
>> the developer disk.
>>

--
Reality Artisans, Inc.            #   Network Wrangling and Delousing
P.O. Box 565, Gracie Station      #   Apple Certified Help Desk  
Specialist
New York, NY 10028-0019           #   Apple Consultants Network member
<http://www.realityartisans.com>  #   Apple Developer Connection member
(212) 369-4876 (Voice)            #   (212) 860-4325 (Fax)







More information about the macports-users mailing list