On Jul 9, 2007, at 14:47, Joshua MacFie wrote:

On Jul 9, 2007, at 10:51 AM, Ryan Schmidt wrote:

On Jul 9, 2007, at 09:59, Joshua MacFie wrote:

On Jul 9, 2007, at 9:05 AM, Ryan Schmidt wrote:

On Jul 9, 2007, at 05:16, Joshua MacFie wrote:

/usr/bin/ld: can't map file: /opt/local/lib/libgtk- x11-2.0.dylib ((os/kern) invalid argument)

Does that file exist, are its permissions ok and is it of the correct architecture for your computer? Try:

file /opt/local/lib/libgtk-x11-2.0.dylib

and see what it says. Try also:

otool -L /opt/local/lib/libgtk-x11-2.0.dylib

Thank you very much for your help.

The first says

/opt/local/lib/libgtk-x11-2.0.dylib: unreadable symlink `/opt/ local/lib/libgtk-x11-2.0.dylib' (No such file or directory)

The second

otool: can't map file: /opt/local/lib/libgtk-x11-2.0.dylib ((os/ kern) invalid argument)

Sorry I'm sorta new to the Unix environment. Is the sym link break what's causing this? If so how do I fix it?

So it looks like /opt/local/lib/libgtk-x11-2.0.dylib exists but is merely a symlink pointing to something that doesn't exist. That would certainly explain why ld couldn't access it, and why your compile didn't complete.

One good piece of information would be to know where the symlink is pointing:

ls -l /opt/local/lib/libgtk-x11-2.0.dylib

Another would be which port provided that broken symlink:

port provides /opt/local/lib/libgtk-x11-2.0.dylib

Whatever port it identifies, try reinstalling it (sudo port -ncuf upgrade theportname) -- after selfupdating to make sure you have the latest MacPorts and ports tree (sudo port selfupdate). If, after reinstalling the latest version of that port, you still have a broken symlink, you may need to contact the port's maintainer (port info theportname).

Ok so here's the first

joshuamacfie$ ls -l /opt/local/lib/libgtk-x11-2.0.dylib
lrwxr-xr-x 1 root admin 0 Jul 9 04:20 /opt/local/lib/libgtk- x11-2.0.dylib ->

Does this mean it pints to itself?

No, if it pointed to itself it would say "/opt/local/lib/libgtk- x11-2.0.dylib -> libgtk-x11-2.0.dylib"

Are you sure there's nothing after the -> ? Nothing continued on the second line for example? I've never seen a symlink that pointed to nothing. I don't even know how to create such a thing.

and the second

joshuamacfie$ port provides /opt/local/lib/libgtk-x11-2.0.dylib
/opt/local/lib/libgtk-x11-2.0.dylib is a directory.

Does not give me a port name just says its a directory.

That's peculiar.

Or should I try to reinstall libgtk-x11-2.0.dylib

By all means, reinstall it, if you know what port provides it. Perhaps the gtk2 port provides it. I'm not sure because I don't have any libgtk-x11-2.0.dylib and I don't use gtk.


_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to