Re: Fixed: C compiler cannot create executables
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 27.09.2008 um 23:45 schrieb Jeffrey Goldberg: On Sep 26, 2008, at 4:07 PM, Michel Salim wrote: Wonder if at some point /usr/local got erased, and then some script did a 'touch /usr/local' on your system, recreating it as a file. He said it was 13MB. So my guess is that some script did a cp foo /usr/local expected that /usr/local already existed as a directory. This is why the --target-directory was invented (at least for gnu's cp). Very helpful for scripts. Also very helpful is setopt Err_Exit (Z-Shell - for bash some obscure command with -e). Just imagine the cd goes wrong in: cd /tmp grm --force --recursive *(U) and Err_Exit is off. (Again Z-Shell - bash does not know about (U) - which would make the command combination even more disastrous). Regards Martin - -- Martin Krischik [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (Darwin) iD8DBQFI3yMUijwKaHyem9cRAuWLAKCX5YT56fIW/F+D+tiRu2F3sFbChACbBarg uCvemJPA2Yletuufw4zWBa4= =YnGi -END PGP SIGNATURE- ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Fixed: C compiler cannot create executables
Martin Krischik wrote: He said it was 13MB. So my guess is that some script did a cp foo /usr/local expected that /usr/local already existed as a directory. This is why the --target-directory was invented (at least for gnu's cp). Very helpful for scripts. Also very helpful is setopt Err_Exit (Z-Shell - for bash some obscure command with -e). Just imagine the cd goes wrong in: cd /tmp grm --force --recursive *(U) and Err_Exit is off. (Again Z-Shell - bash does not know about (U) - which would make the command combination even more disastrous). The Portable Paranoid's version is to use e.g. cp foo /usr/local/ That will complain if not existing, and use /usr/local// otherwise. But one can't get carried away and use that workaround everywhere... http://trac.macports.org/ticket/13789 (problems with prefix slash) The best is usually if the installation scripts make sure that the directories are created first, which also helps when using DESTDIR: mkdir -p /usr/local cp foo /usr/local --anders ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Fixed: C compiler cannot create executables
On Sep 26, 2008, at 4:07 PM, Michel Salim wrote: Wonder if at some point /usr/local got erased, and then some script did a 'touch /usr/local' on your system, recreating it as a file. He said it was 13MB. So my guess is that some script did a cp foo /usr/local expected that /usr/local already existed as a directory. Cheers, -j ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
Re: Fixed: C compiler cannot create executables
On Fri, Sep 26, 2008 at 5:45 AM, Otto Roberson Bertsch [EMAIL PROTECTED] wrote: Thanks to Ryan for his very rapid and effective response! The culprit was that /usr/local/ was not a directory but instead a file. That's very strange, but a sudo mv /usr/local /usr/local-off got me going again. Wonder if at some point /usr/local got erased, and then some script did a 'touch /usr/local' on your system, recreating it as a file. -- miʃel salim • http://hircus.jaiku.com/ IUCS • [EMAIL PROTECTED] Fedora • [EMAIL PROTECTED] MacPorts • [EMAIL PROTECTED] ___ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users