• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Expanding "this" kills my application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding "this" kills my application


  • Subject: Re: Expanding "this" kills my application
  • From: Jim Ingham <email@hidden>
  • Date: Fri, 14 Dec 2007 11:01:18 -0800

When you install Xcode 2.5 or 3.0, one of the installation options is to install the "Unix command line tools" or something like that. This puts copies of all the tools that were in /Developer/usr/bin into /usr/ bin so that you can use ordinary Makefiles. You can make most Makefile projects work just by changing your path to include / Developer/usr/bin but some really bad Makefiles actually call out /usr/ bin/gcc explicitly! IIRC, it is on by default, so maybe Larry unchecked it.

Jim

On Dec 14, 2007, at 9:06 AM, Ethan Tira-Thompson wrote:

On 08/12/2007, at 9:31 PM, Laurence Harris wrote:
Macintosh:~ Larry$ sudo gdb /usr/libexec/gdb/gdb-i386-apple-darwin
...
Password:
sudo: gdb: command not found

Well, that's a little weird...
There's a couple followups about gdb in /Developer/usr/bin, but I have an additional copy in regular /usr/bin:


$ ls -l /usr/bin/gdb /usr/libexec/gdb/gdb-i386-apple-darwin / Developer/usr/bin/gdb /Developer/usr/libexec/gdb/gdb-i386-apple-darwin
-rwxr-xr-x 1 root wheel 4867 Oct 2 00:19 /Developer/usr/bin/ gdb
-rwxr-sr-x 1 root procmod 6073712 Oct 2 00:19 /Developer/usr/ libexec/gdb/gdb-i386-apple-darwin
-rwxr-xr-x 1 root wheel 4867 Oct 2 00:19 /usr/bin/gdb
-rwxr-sr-x 1 root procmod 6073712 Oct 2 00:19 /usr/libexec/gdb/ gdb-i386-apple-darwin


I'm guessing this is also the case for Jim Ingham who suggested the command... so it might be a good question why it's not true for Laurence... might be a broken install? /usr got deleted on his system or something? Or do I (we) have an extra unintentional copy in /usr that's going to be ignored by future updates and eventually go out of date and bite me later? :)

Also, I was going to say 'sudo' isn't necessary, but apparently it is in the specific case of attaching gdb to gdb. Cute trick, I would've seen the error it gives without 'sudo' and just thought it's something that can't be done. (that would suck for the gdb developers! ;)

-ethan

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: Expanding "this" kills my application (From: Ethan Tira-Thompson <email@hidden>)

  • Prev by Date: Re: documentation window and "Previous"
  • Next by Date: Re: Expanding "this" kills my application
  • Previous by thread: Re: Expanding "this" kills my application
  • Next by thread: Re: Expanding "this" kills my application
  • Index(es):
    • Date
    • Thread