On Jul 19, 2007, at 11:01 AM, Chris Pickel wrote:
Now, I think the problem you're having is that your build type is coming up as "-apple-darwin8.10.1" when it should be "i686-apple- darwin8.10.1". This is figured out by config.guess, so a couple of commands to try (with their output on my system) would be:
% cd MacPorts-1.5.0 % ./config.guess i686-apple-darwin8.10.1
-apple-darwin8.10.1 There's the problem I bet.
% uname -a Darwin sauvagine.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386
Darwin MacBook.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 unknown MacBook1,1 Darwin (Note the word "unknown" where you have i386!)
% machine i486
ditto
% arch i386
ditto Here's my $PATH /Users/luomat/bin:/opt/local/bin:/sw/bin:/usr/local/bin:/bin:/usr/ X11R6/bin:/usr/bin:/sbin:/usr/sbin I have also installed the gnu coreutils (neither from Fink nor MacPorts, I believe) which I know adds their own commands such as 'ls' to /usr/local/bin/ I wonder.... (Switches to Terminal.app) $ wh -a uname /usr/local/bin/uname /usr/bin/uname $ uname --version uname (coreutils) 5.2.1 Written by David MacKenzie. Copyright (C) 2004 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO $ sudo mv -i /usr/local/bin/uname /usr/local/bin/guname $ rehash; uname -a Darwin MacBook.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386 A-HA! That's what the problem was. GNU stuck its own 'uname' program into the $PATH w/o being smart enough to identify the system. After that, ./configure ran fine. Thank you for helping me figure out the solution. While I could have simply used the DMG (and may still do so), having solved this problem now will probably avoid problems in the future. (I will also try to remember to watch what gets installed with coreutils next time. This isn't the first time one of their programs has been not-Mac-OS-X aware and caused problems.) And next time someone reports a compile problem, we'll know one more thing to suggest. Q: "I tried to run ./configure on my Mac but it failed with this error:" checking build system type... configure: error: /bin/sh ./config.sub - apple-darwin8.10.1 failed A: This can happen if you have installed a different version of 'uname' such as is found in the GNU 'coreutils' package. From the commandline, type "uname -p" and if the response is "unknown" then you have an incompatible version of uname installed on your machine. From the commandline, type "which uname" and if you get anything other than "/usr/bin/uname" (such as /usr/local/bin/uname) try renaming it % mv -i /usr/local/bin/uname /usr/local/bin/guname % rehash And then try ./configure again