automoc install failed on OSX 10.4 intel

Ryan Schmidt ryandesign at macports.org
Sat Feb 6 12:07:07 PST 2010


On Feb 6, 2010, at 09:06, Joachim Osnabryg wrote:

> Am 06.02.2010, 11:52 Uhr, schrieb Ryan Schmidt:
>> It looks like you're running into this issue; a workaround is suggested in the ticket:
>> http://trac.macports.org/ticket/21708
> 
> Thank you Ryan for being helpful!
> I hope that you or other can give me further help!

It looks like the relevant error in your log is:

can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local/lib/libz.1.dylib

This is a problem unique to Tiger that affected many ports. I think the proper fix had to do with making sure the library is named on the link line (e.g. making sure "-lzlib" is specified in LDFLAGS). But that would involve editing the Portfile or maybe the Makefile, and a simpler fix is to just go into /Developer/SDKs/MacOSX10.4u.sdk and make a symlink "opt" there pointing to /opt, like this:

sudo ln -s /opt /Developer/SDKs/MacOSX10.4u.sdk/opt

Once you're done building the port, it would be cleanest to remove these symlinks again, but keep this trick in mind as you may need it for other ports if you encounter a message beginning with "can't open dynamic library: /Developer/SDKs/MacOSX10.4u.sdk/opt/local" again. Or I suppose you could leave the symlink there. It probably won't hurt anything.



More information about the macports-users mailing list