X11-Error installing wireshark, using Apple's X11

Ryan Schmidt ryandesign at macports.org
Tue May 15 00:12:25 PDT 2007


On May 15, 2007, at 00:46, Sebastian Hahn wrote:

> On May 15, 2007, at 12:44 AM, Ryan Schmidt wrote:
>
>> On May 14, 2007, at 16:14, Sebastian Hahn wrote:
>>
>>> I've just searched the list archives for a similar problem and  
>>> came up with http://lists.macosforge.org/pipermail/macports-users/ 
>>> 2007-April/002294.html. The error-message I receive is absolutely  
>>> the same, the only difference is that I'm not actually trying to  
>>> install XFree86, as I have Apples X11 already installed. I  
>>> checked /Library/Receipts, and both the X11User.pkg and the  
>>> X11SDK.pkg are installed...
>>
>> The error from the above message:
>>
>> On Apr 1, 2007, at 12:12, Fred Bauder wrote:
>>
>> > --->  Installing XFree86 4.5.0_2
>> > --->  Activating XFree86 4.5.0_2
>> > Error: Target com.apple.activate returned: Image error: /usr/X11R6/
>> > bin/appres already exists and does not belong to a registered
>> > port.  Unable to activate port XFree86.
>> > Error: Status 1 encountered during processing.
>>
>> So... you're also getting the error message that "/usr/X11R6/bin/ 
>> appres already exists and does not belong to a registered port"?  
>> What port is being activated at the time?
>
> Thanks for the reply, I don't know exactly what you mean, this is  
> what I did including output:
>
> port install wireshark

[snip]

> --->  Fetching XFree86
>
> Error:
>                     You have an Apple X11 installation already.
>                         MacPorts will not overwrite it.
>
>                     If you really want to use XFree86 instead,
>                         please move it aside first :
>
>                             sudo mv /usr/X11R6 /usr/X11R6.apple
>
> --->  Attempting to fetch XFree86-4.6.0-src-1.tgz from http://ftp- 
> stud.fht-esslingen.de/pub/Mirrors/ftp.xfree86.org/XFree86/4.6.0/ 
> source/
> --->  Attempting to fetch XFree86-4.6.0-src-2.tgz from http://ftp- 
> stud.fht-esslingen.de/pub/Mirrors/ftp.xfree86.org/XFree86/4.6.0/ 
> source/
> --->  Attempting to fetch XFree86-4.6.0-src-3.tgz from http://ftp- 
> stud.fht-esslingen.de/pub/Mirrors/ftp.xfree86.org/XFree86/4.6.0/ 
> source/
> --->  Attempting to fetch XFree86-4.6.0-src-4.tgz from http://ftp- 
> stud.fht-esslingen.de/pub/Mirrors/ftp.xfree86.org/XFree86/4.6.0/ 
> source/
> --->  Attempting to fetch XFree86-4.6.0-src-5.tgz from http://ftp- 
> stud.fht-esslingen.de/pub/Mirrors/ftp.xfree86.org/XFree86/4.6.0/ 
> source/
> --->  Verifying checksum(s) for XFree86
> --->  Extracting XFree86
> --->  Applying patches to XFree86
> --->  Configuring XFree86
> --->  Building XFree86 with target World
> --->  Staging XFree86 into destroot
> --->  Installing XFree86 4.6.0_0+macosx
> --->  Activating XFree86 4.6.0_0+macosx
> Error: Target com.apple.activate returned: Image error: /usr/X11R6/ 
> bin/appres already exists and does not belong to a registered  
> port.  Unable to activate port XFree86.
> Error: The following dependencies failed to build: gtk2 pango Xft2  
> xrender XFree86 render cairo tiff jpeg libpcap openssl
> Error: Status 1 encountered during processing.

Oh, so you meant you're not *intentionally* installing XFree86. You  
are, however, still installing XFree86, and it is the attempted  
activation of XFree86 that is producing the error message.

Yves: It's unfortunate that it prints out a friendly message  
explaining why XFree86 will not work, but then proceeds to download  
and compile the universe anyway and finally ends with the hard-to- 
understand error message anyway. It would be better for it to exit  
after discovering and informing the user about the initial problem.

Sebastian: Do you have /usr/X11R6/lib/libX11.6.dylib? I believe  
that's the file that's being looked for by the ports you're  
installing, and it should be there as part of Apple's X11. If it's  
not there, reinstall X11User.pkg and X11SDK.pkg. I know you said you  
already have them installed, but maybe the installation got damaged  
somehow. Reinstalling from the original packages would ensure it's  
working correctly.

Unless you want to use XFree86 instead, which you could do. In that  
case, do what the message says and move /usr/X11R6 out of the way  
first, or delete it. If you go this route, delete the X11 receipts  
too, and X11.app.




More information about the macports-users mailing list