schubert/brewstrap — Issue #17: Xcode auto-install fails
Author: jonathanpberger
Created: 2012-02-19 15:17:48+00:00
State: open

Plain-vanilla brewstrap failure using the pivotal-workstation recipe. After DL'ing Xcode, brewstrap had trouble installing it. It looks like there was trouble finding and using the downloaded Xcode image; I'm not sure exactly why, but here's the terminal output.

~~~~~~~~~~~~~~~~~

Last login: Sat Feb 18 20:09:04 on console
Jonathans-Mac-Pro:~ jpb$ curl -L http://git.io/PvkgGw > /tmp/brewstrap.sh && bash /tmp/brewstrap.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8474 100 8474 0 0 11184 0 --:--:-- --:--:-- --:--:-- 11184

Starting brewstrap...

Brewstrap will make sure your machine is bootstrapped and ready to run chef
by making sure XCode, Homebrew and RVM and chef are installed. From there it will
kick off a chef-solo run using whatever chef repository of cookbooks you point it at.

It expects the chef repo to exist as a public or private repository on github.com
You will need your github credentials so now might be a good time to login to your account.
(1/10) Collecting information..

Github Username:

Github Password:
Github Token:

Chef Repo (Take the github HTTP URL): https://github.com/pivotal/pivotal_workstation.git

(2/10) Installing homebrew

==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...

Press enter to continue
==> /usr/bin/sudo /bin/mkdir /usr/local

WARNING: Improper use of the sudo command could lead to data loss
or the deletion of important system files. Please double-check your
typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local
==> Downloading and Installing Homebrew...
==> Installation successful!
Now type: brew help
(3/10) Installing Xcode from DMG...

XCode is not installed or downloaded. Safari will now open to ADC to download XCode.
Upon logging into your ADC account, download the latest XCode DMG file.
Brewstrap will continue when the download is complete. Press Ctrl-C to abort.

Alternatively you can abort this and go download it from the App Store. Once doing that,
re-run this to have it install Xcode for you and continue the process.
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Waiting for XCode download to finish...
Found /Users/jpb/Downloads/xcode_4.1_for_lion.dmg. Verifying...
Checksumming Driver Descriptor Map (DDM : 0)…
Driver Descriptor Map (DDM : 0): verified CRC32 $24489D00
Checksumming (Apple_Free : 1)…
(Apple_Free : 1): verified CRC32 $00000000
Checksumming Apple (Apple_partition_map : 2)…
Apple (Apple_partition_map : 2): verified CRC32 $ACD29346
Checksumming Macintosh (Apple_Driver_ATAPI : 3)…
Macintosh (Apple_Driver_ATAPI : 3): verified CRC32 $F1E8BA9E
Checksumming (Apple_Free : 4)…
(Apple_Free : 4): verified CRC32 $00000000
Checksumming disk image (Apple_HFS : 5)…
..............................................................................
disk image (Apple_HFS : 5): verified CRC32 $3EFB89CC
Checksumming (Apple_Free : 6)…
...............................................................................
(Apple_Free : 6): verified CRC32 $00000000
...............................................................................
verified CRC32 $2B5865D5
hdiutil: verify: checksum of "/Users/jpb/Downloads/xcode_4.1_for_lion.dmg" is VALID
expected CRC32 $2B5865D5
/dev/disk5	Apple_partition_scheme
/dev/disk5s1	Apple_partition_map
/dev/disk5s2	Apple_Driver_ATAPI
/dev/disk5s3	Apple_HFS	/Volumes/Xcode
Password:
"disk5" unmounted.
"disk5" ejected.
(4/12) Brew installing git

Warning: Xcode is not installed! Builds may fail!
Error: GCC could not be found
Unable to install git!

Jonathans-Mac-Pro:~ jpb$ curl -L http://git.io/PvkgGw > /tmp/brewstrap.sh && bash /tmp/brewstrap.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8474 100 8474 0 0 4369 0 0:00:01 0:00:01 --:--:-- 168k

Starting brewstrap...

Brewstrap will make sure your machine is bootstrapped and ready to run chef
by making sure XCode, Homebrew and RVM and chef are installed. From there it will
kick off a chef-solo run using whatever chef repository of cookbooks you point it at.

It expects the chef repo to exist as a public or private repository on github.com
You will need your github credentials so now might be a good time to login to your account.
(1/10) Collecting information..

Github Username:

Github Password:
Github Token:

(2/10) Homebrew already installed

(3/10) Installing Xcode from DMG...

expected CRC32 $2B5865D5
/dev/disk5	Apple_partition_scheme
/dev/disk5s1	Apple_partition_map
/dev/disk5s2	Apple_Driver_ATAPI
/dev/disk5s3	Apple_HFS	/Volumes/Xcode
Password:
installer: Error the package path specified was invalid: ''.
"disk5" unmounted.
"disk5" ejected.
(4/10) Brew installing git

Warning: Xcode is not installed! Builds may fail!
Error: GCC could not be found
Unable to install git!

Jonathans-Mac-Pro:~ jpb$ curl -L http://git.io/PvkgGw > /tmp/brewstrap.sh && bash /tmp/brewstrap.sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 8474 100 8474 0 0 27598 0 --:--:-- --:--:-- --:--:-- 27598

Starting brewstrap...

Brewstrap will make sure your machine is bootstrapped and ready to run chef
by making sure XCode, Homebrew and RVM and chef are installed. From there it will
kick off a chef-solo run using whatever chef repository of cookbooks you point it at.

It expects the chef repo to exist as a public or private repository on github.com
You will need your github credentials so now might be a good time to login to your account.
(1/10) Collecting information..

Github Username:

Github Password:
Github Token:

(2/10) Homebrew already installed

(3/10) Installing Xcode from DMG...

hdiutil: attach failed - Resource busy
installer: Error the package path specified was invalid: ''.
hdiutil: detach failed - No such file or directory
(4/10) Brew installing git

Warning: Xcode is not installed! Builds may fail!
Error: GCC could not be found
Unable to install git!

Jonathans-Mac-Pro:~ jpb$