Closed newsroomdev closed 5 years ago
The comments in this pyenv issue suggest that running xcode-select --install
might fix the issue. Could you try that please?
Also, when you say "fresh laptop", do you mean brand new from Apple, or did you upgrade from a previous OS X version?
Did you already have Xcode or the standalone command line tools installed before you ran the script?
Thank you, and I've successfully run laptop
.
As for your questions, the laptop is brand new from Apple. I just forgot to install the command line tools. (It's been a while since I had a new machine.)
I'd be happy to make a PR and note the need to accept Apple's license and install the command line tools before running laptop
, otherwise I'll leave you to close the ticket.
Thanks for the details. You shouldn't have to install the command line tools on your own before running the script. The script should automatically prompt you to install them. It should be the first thing it prompts you to do, as shown in this video: https://monfresh.wistia.com/medias/k8zxt0vj7w
Was this not your experience?
Ah, I see. I was first prompted to accept the developer's agreement via the Terminal by running xcodebuild -license
before the shell script ran. The shell script then ran until it ran into the aforementioned dependency issue.
Upon further investigation, my company's IT team had already installed Xcode.app in addition to two other work-related applications: Office and Adobe Creative Cloud. I suspect XCode.app caused the deviation from your well-documented setup.
Thanks again for your time, and for such an easy to read shell script. It's been extremely helpful, and I'd be happy to help note somewhere that this repo assumes that your machine does not have XCode.app installed.
Ideally, we'd want the script to work even if you already have Xcode installed. I just need to be able to reproduce your scenario so I can see if I can detect that state and prompt to install the command line tools. Luckily, I have a spare laptop that I can use for testing these things.
To clarify, at what point did you run xcodebuild -license
? What action prompted you to run that?
I had this same issue, and running xcode-select --install
resolved it for me.
To clarify, at what point did you run xcodebuild -license? What action prompted you to run that?
I can't speak to @geraldarthur's issue, but I was prompted to run that after I installed xcode from the app store, but before I ran xcode-select --install
@monfresh I was prompted by Terminal.app to accept the license once I opened the app tried to run a command
Just noting I got the same error (see log below). I ran xcode-select --install
, then re-ran the laptop script installer, and all seems well.
Thanks! Did you have Xcode installed? If so, from where, and what version? I confess that I forgot about this issue and haven't had a chance to try to reproduce it. Any details about what your machine looked like before you ran the script would be helpful. Also, could you please copy and paste the entire laptop.log
?
I am pretty sure I had Xcode installed from the App Store. I have v8.2.1
installed.
I had previously run the laptop script when I first joined (back in April 16) and don't think I've run it since then.
Closing as stale.
last line: zipimport.ZipImportError: can't decompress data; zlib not available
I'm working off of a fresh laptop, with more details in the log file provided below. Any suggested next actions? I did not see this error in previous issues.
20160222_geraldarthur.laptop.log.zip