Running gcc when not installed on OS X pops up a gui

Bug #1368959 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Raise
Fix Committed
High
Unassigned

Bug Description

If gcc, clang, java, et cetera, are not installed, and the user types them into a terminal. They are then prompted with a gui that asks if they want to install that program or not.

Obviously this sucks, because we can't do "gcc --version" to test for clang. It also probably uses a symlink, to look like it installed.

Revision history for this message
Matt Jones (workhorsy) wrote :

Looks like the file:

/var/db/receipts/com.apple.pkg.DeveloperToolsCLI.plist

is created when installed.

Check if there is a file for java too:

ls /var/db/receipts/ | grep -i "java"

Revision history for this message
Matt Jones (workhorsy) wrote :

Turns out the java popup just shows how to download it from the web. We can test for dev tools with:

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

Matt Jones (workhorsy)
summary: - Running gcc when not installed on OS X pops up a gui.
+ Running gcc when not installed on OS X pops up a gui
Revision history for this message
Matt Jones (workhorsy) wrote :
Changed in raise:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.