HomeApplexcode - Light-weight command line instruments for Monterey

xcode – Light-weight command line instruments for Monterey


I am extraordinarily stunned this query wasn’t requested, or no less than I wasn’t capable of finding it.

Is there a technique to set up command line instruments for MacOS with out putting in the complete XCode suite? I am low on storage and I discover it arduous to swallow that I’ve to release 20+ GB simply to have the ability to do:

$ python -m http.server

Particularly since python is already put in…

EDIT: Replying to the commant and why I feel “python is put in”

Easy: The whole lot was working, till I uninstalled XCode to release 11GB that I wanted (and I do not use XCode in any respect). Additionally:

$ which python3
/usr/bin/python3
$ ls -lh /usr/bin/python3
-rwxr-xr-x  76 root  wheel   163K Could  9  2022 /usr/bin/python3
$ file /usr/bin/python3
/usr/bin/python3: Mach-O common binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64
- Mach-O 64-bit executable x86_64] [arm64e:Mach-O 64-bit executable arm64e
- Mach-O 64-bit executable arm64e]
/usr/bin/python3 (for structure x86_64):     Mach-O 64-bit executable x86_64
/usr/bin/python3 (for structure arm64e):     Mach-O 64-bit executable arm64e
$ hexdump -C /usr/bin/python3 | head
00000000  ca fe ba be 00 00 00 02  01 00 00 07 00 00 00 03  |............|
00000010  00 00 40 00 00 01 0c f0  00 00 00 0e 01 00 00 0c  |..@............|
00000020  80 00 00 02 00 01 80 00  00 01 0c d0 00 00 00 0e  |...............|
00000030  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00004000  cf fa ed fe 07 00 00 01  03 00 00 00 02 00 00 00  |............|
00004010  12 00 00 00 40 06 00 00  85 00 20 00 00 00 00 00  |....@..... .....|
00004020  19 00 00 00 48 00 00 00  5f 5f 50 41 47 45 5a 45  |....H...__PAGEZE|
00004030  52 4f 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |RO..............|
00004040  00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
$ md5sum /usr/bin/python3
fac4668657765c8dfe89d8995acfb5a2  /usr/bin/python3
$ python3 -m http.server
xcrun: error: invalid lively developer path (/Library/Developer/CommandLineTools), lacking xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

PS: I do know this reply exists but it surely assumes I get to decide on something after working xcode-select --install which hasn’t been the case since Huge Sur so far as I do know

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments