I just got an 11th hour request for TeXshop, GCC, and Brew to be installed in one of our labs (classes start today). I was able to package TeXShop just fine using Composer. As for Brew/GCC, I thought it would be as simple as creating a shell script and pushing via policy. I get the following error when I am testing. Note: GCC is what is really needed and Brew seemed to be the easiest way.
#!/bin/sh #Installing Brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Sleep 60 #Installing GCC using Brew brew install gcc Exit 0
The error in JSS:
[STEP 1 of 5]
Executing Policy DSH Dev Tools
[STEP 2 of 5]
Mounting MY JSS SERVER to /Volumes/Images...
Filling user home directories from /Volumes/DSH Developer Suite/Users/asite...
Filling user templates from /Volumes/DSH Developer Suite/Users/asite...
[STEP 3 of 5]
Running script HSD Dev. Suite...
Script exit code: 127
Script result: Don't run this as root!
/Library/Application Support/JAMF/tmp/HSD Dev. Suite: line 7: brew: command not found
/Library/Application Support/JAMF/tmp/HSD Dev. Suite: line 8: Exit: command not found
Error running script: return code was 127.
[STEP 4 of 5]
[STEP 5 of 5]
Unmounting file server...
It sounds to me like Brew wants LESS privs to complete. On my test machine with a user in the Admin Group, it installs just fine-what am I missing?