Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#20451 closed defect (invalid)

Zim port installs, but fails to run

Reported by: kelly.harding@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc:
Port: zim

Description

Having solved the P5-gtk2 problem I previously had, Zim built/installed from ports.

However, when running i get the following:

Unable to load image-loading module: /Library/Frameworks/Gtk.framework/Resources/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so: dlopen(/Library/Frameworks/Gtk.framework/Resources/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so, 1): no suitable image found.  Did find:
	/Library/Frameworks/Gtk.framework/Resources/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so: mach-o, but wrong architecture at /opt/local/lib/perl5/site_perl/5.8.9/Zim/GUI/Component.pm line 32.
Compilation failed in require at /opt/local/lib/perl5/site_perl/5.8.9/Zim/GUI.pm line 14.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/site_perl/5.8.9/Zim/GUI.pm line 14.
Compilation failed in require at (eval 19) line 3.
BEGIN failed--compilation aborted at (eval 19) line 3.

Change History (5)

comment:1 Changed 15 years ago by tobypeterson

What is /Library/Frameworks/Gtk.framework ? I don't think there's any port that installs that.

Please provide the output of the following commands:

lipo -info /Library/Frameworks/Gtk.framework/Resources/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
lipo -info /opt/local/bin/perl

comment:2 Changed 15 years ago by kelly.harding@…

lipo -info /Library/Frameworks/Gtk.framework/Resources/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so 
Non-fat file: /Library/Frameworks/Gtk.framework/Resources/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so is architecture: i386

lipo -info /opt/local/bin/perl
Non-fat file: /opt/local/bin/perl is architecture: ppc7400

I think I've spotted the problem. First of all I installed a binary package of GTK+ before MacPorts. Maybe thats the problem/conflict? how to remove a binary package I've installed?

I used this link as the guide first of all to get zim to work.

comment:3 Changed 15 years ago by tobypeterson

Resolution: invalid
Status: newclosed

There isn't a particularly good way to remove a binary package - you have to know what it installed. Anyway, not really a problem with MacPorts - you may want to request assistance from whoever provided the Gtk.framework package.

comment:4 Changed 15 years ago by kelly.harding@…

I've managed to remove the binary package (a google search helped with that).

So I just need to export the correct paths to point to the MacPorts equivelant files it needs and I think it should be sorted.

comment:5 Changed 15 years ago by kelly.harding@…

Removed the exports and all works now.

Note: See TracTickets for help on using tickets.