thoughtbot / laptop

A shell script to set up a macOS laptop for web and mobile development.
https://thoughtbot.com
MIT License
8.51k stars 1.91k forks source link

Running the script fails in macOS Mohave 10.14.6 (18G3020) #579

Closed cksachdev closed 2 years ago

cksachdev commented 4 years ago

laptop.log file contents are as below:


Changing your shell to zsh ...

Adding '/usr/local/bin/zsh' to /etc/shells
Changing shell for chetansachdev.

Updating Homebrew formulae ...
Updated 3 taps (homebrew/core, homebrew/cask and homebrew/bundle).
==> New Formulae
azcopy
bnfc
container-structure-test
dhall-yaml
mtoc
publish
swift-format
==> Updated Formulae
aliyun-cli
appium
arp-sk
arping
arpoison
aws-cdk
awsume
balena-cli
bash-completion@2
blink1
c-ares
calicoctl
cargo-c
cartridge-cli
cheat
commandbox
devspace
docbook
dpkg
dvc
erlang
ethereum
ettercap
exploitdb
fop
frege
futhark
gitlab-gem
gitversion
glooctl
golang-migrate
gsoap
gtranslator
hapi-fhir-cli
hugo
inspircd
kubecfg
legit
lego
libarchive
libcbor
libfido2
libhdhomerun
libnet
libnids
libuninameslist
libvirt
minimal-racket
minio
minio-mc
miniserve
nanopb-generator
nativefier
neomutt
nift
node-build
packetq
pagmo
pdnsrec
poppler
powerman
rancid
ripgrep
root
run
saxon
scala@2.12
selenium-server-standalone
skaffold
spades
sslsplit
suricata
tccutil
tcptraceroute
tflint
tiny-fugue
tomee-plume
tomee-plus
tomee-webprofile
travis
vice
virgil
wasmer
wpscan
wtfutil
zeek
==> Updated Casks
1password-cli
adobe-connect
agenda
angry-ip-scanner
anydo
arq
avocode
beaker-browser
bisq
bob
chromium
clashx
composercat
cookie
dcp-o-matic-batch-converter
dcp-o-matic-kdm-creator
djay-pro
downie
electron-fiddle
engine-prime
espresso
exodus
fontforge
fontgoggles
frhelper
gifox
glyphs
hbuilderx
icq
jami
jprofiler
kapitainsky-rclone-browser
keystore-explorer
kiwi-for-g-suite
lando
lazarus
lrtimelapse
maccy
macgamestore
macs-fan-control
metaz
meteorologist
min
mochi
multitouch
odrive
openwebstart
pd-l2ork
permute
plex-media-server
portfolioperformance
postman
prince
qlab
qownnotes
rectangle
refined-github-safari
remotix-agent
ripcord
sidequest
supercollider
switchkey
texworks
thonny
tinderbox
trilium-notes
unity
unity-android-support-for-editor
unity-download-assistant
unity-ios-support-for-editor
unity-lumin-support-for-editor
unity-webgl-support-for-editor
unity-windows-support-for-editor
virtualhostx
visual-paradigm
visual-paradigm-ce
webcatalog
whalebird
==> Deleted Casks
colloquy
google-nik-collection
Using thoughtbot/formulae
Using homebrew/services
Using universal-ctags/universal-ctags
Using heroku/brew
Using universal-ctags
Installing git
Using openssl
Using rcm
Installing reattach-to-user-namespace
Using the_silver_searcher
Installing tmux
==> Upgrading 1 outdated package:
vim 8.1.0600 -> 8.2.0350
==> Upgrading vim 8.1.0600 -> 8.2.0350 
==> Installing dependencies for vim: perl, sqlite, python and ruby
==> Installing vim dependency: perl
==> Downloading https://homebrew.bintray.com/bottles/perl-5.30.1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/38/38e242ca4adaad6c0ef271e8e7d77030998f5809daf1b90c208d81b8b75fb5c9?__gda__=exp=1584435271~hmac=098e7bc47104bbf12be734c6ed27e551c4f61560cf9a733ef3f99f79bae59dec&response-content-disposition=attachment%3Bfilename%3D%22perl-5.30.1.mojave.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1864FHbrenp4JH-jImOW7Ar20dqPXdkzWyfCgloyj1p9ZPLiXsjJA6wtXgP4LbQKU7QU1au8U7Fnv42G4if5H2f08-daqymUoQTtxc-5DcqT0wQLumrOfnGhYayJxLSsrfu-HTn7lLgpw&response-X-Checksum-Sha1=16430ba3d613c6f3a651473cbfb76cbf8547a34d&response-X-Checksum-Sha2=38e242ca4adaad6c0ef271e8e7d77030998f5809daf1b90c208d81b8b75fb5c9
==> Pouring perl-5.30.1.mojave.bottle.tar.gz
==> Caveats
By default non-brewed cpan modules are installed to the Cellar. If you wish
for your modules to persist across updates we recommend using `local::lib`.

You can set that up like this:
  PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
  echo 'eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"' >> ~/.bash_profile
==> Summary
🍺  /usr/local/Cellar/perl/5.30.1: 2,442 files, 61.8MB
==> Installing vim dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.31.1.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/db/db7e3a6498bfdb4b4ceb8e8416020e2ad70de14975437f2e2a027485daeb2202?__gda__=exp=1584435302~hmac=0063f3be1559b32cb117e8e73e7799b9d0060372ceea669b693d3102f3db30c4&response-content-disposition=attachment%3Bfilename%3D%22sqlite-3.31.1.mojave.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_b32u29yx8YNRvhPSOs7pxChcZoWSImxmIbbg4KBkfrTcl-CCNPjxL1Tjk0C0j6amjCRYILmgGxM8K1-Ai243IU8Ilq_A6nJoYPFQAlO_Lx-78FBDyEz-u6J-UQQ0DVa_iHRJri7nkyQ&response-X-Checksum-Sha1=0d500f7daf58eac63f39982a3601c29ca6aeab1d&response-X-Checksum-Sha2=db7e3a6498bfdb4b4ceb8e8416020e2ad70de14975437f2e2a027485daeb2202
==> Pouring sqlite-3.31.1.mojave.bottle.tar.gz
==> Caveats
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.

If you need to have sqlite first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

For pkg-config to find sqlite you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/sqlite/3.31.1: 11 files, 4MB
==> Installing vim dependency: python
==> Downloading https://homebrew.bintray.com/bottles/python-3.7.7.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/cc/cc8177d823b39d099e1f1a6f2e0fccb16e531508b59580f1fd44f659b54eeb84?__gda__=exp=1584435311~hmac=0a68e02b4cee02e021f0aba39e1ce2e2571518af3e8452713d7172ae5aacf98e&response-content-disposition=attachment%3Bfilename%3D%22python-3.7.7.mojave.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-ywlR4qp-udZftSn_o5i-tM-9k2S8G5EWlw1oMLmfg8z882Rq_9N2EKcUWc_osKWgOOk4eiqrOpglrNFDCHOY4jt1CZV-__i5qkEjATpI1yyZe26d6DmhPCWIsrP6bhalVUboeLNlonQ&response-X-Checksum-Sha1=2c26c8f215aae9d097ed5edf021238c2f4a74ab5&response-X-Checksum-Sha2=cc8177d823b39d099e1f1a6f2e0fccb16e531508b59580f1fd44f659b54eeb84
==> Pouring python-3.7.7.mojave.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink Frameworks/Python.framework/Headers
Target /usr/local/Frameworks/Python.framework/Headers
is a symlink belonging to python@2. You can unlink it:
  brew unlink python@2

To force the link and overwrite all conflicting files:
  brew link --overwrite python

To list all files that would be deleted:
  brew link --overwrite --dry-run python

Possible conflicting files are:
/usr/local/Frameworks/Python.framework/Headers -> /usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Headers
/usr/local/Frameworks/Python.framework/Python -> /usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Python
/usr/local/Frameworks/Python.framework/Resources -> /usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Resources
/usr/local/Frameworks/Python.framework/Versions/Current -> /usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/Current
==> /usr/local/Cellar/python/3.7.7/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.7/bin --install-lib=/usr/local/lib/python3.7/site-packages --single-version-externally-managed --record=installed.txt
==> /usr/local/Cellar/python/3.7.7/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.7/bin --install-lib=/usr/local/lib/python3.7/site-packages --single-version-externally-managed --record=installed.txt
==> /usr/local/Cellar/python/3.7.7/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python/3.7.7/bin --install-lib=/usr/local/lib/python3.7/site-packages --single-version-externally-managed --record=installed.txt
==> Caveats
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> Summary
🍺  /usr/local/Cellar/python/3.7.7: 4,006 files, 61.0MB
==> Installing vim dependency: ruby
==> Downloading https://homebrew.bintray.com/bottles/ruby-2.7.0.mojave.bottle.1.tar.gz
==> Downloading from https://akamai.bintray.com/7a/7acf2f1bebc6711f5de7c721c28befe47c1f1957cebaaa20ab37626908506c21?__gda__=exp=1584435348~hmac=d1fb4747866ebeb1bf22dc657e80989d4b39c034d3f08aa933c100e7f5054f6c&response-content-disposition=attachment%3Bfilename%3D%22ruby-2.7.0.mojave.bottle.1.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1_8v4CHm_-fL9Id9Adz_UisZHay5g0U34QRy2CJ1x9gl2Nzz2n3X5jMXlrn4gDePUW4E4zFD3ccIyjWhNmoMxVVs5aHrHU5HkxQHx-DMXAKbpg1GceLfHSfU8V2NPgAJd4JUjYZBPGuFg&response-X-Checksum-Sha1=d064fe2b0857892f78807efe37fab6558e10a7d6&response-X-Checksum-Sha2=7acf2f1bebc6711f5de7c721c28befe47c1f1957cebaaa20ab37626908506c21
==> Pouring ruby-2.7.0.mojave.bottle.1.tar.gz
==> Caveats
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/2.7.0/bin

You may want to add this to your PATH.

ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ruby first in your PATH run:
  echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

For compilers to find ruby you may need to set:
  export LDFLAGS="-L/usr/local/opt/ruby/lib"
  export CPPFLAGS="-I/usr/local/opt/ruby/include"

For pkg-config to find ruby you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"

==> Summary
🍺  /usr/local/Cellar/ruby/2.7.0: 20,346 files, 32.8MB
==> Installing vim
==> Downloading https://homebrew.bintray.com/bottles/vim-8.2.0350.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/df/dfaf059904fef868bdf8fa763fa5b572cbfbfec158c1068188bab9d965834cf2?__gda__=exp=1584435548~hmac=63e2c361d3b415172284f401cd685987553e2e2c001723c9b3eec1f6d93d6401&response-content-disposition=attachment%3Bfilename%3D%22vim-8.2.0350.mojave.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX19b5oRlDgUjbDsacECcYrSj6zhqqUdoJMX-3TVnqQSyZDTvOEmbu9EoMJYGtqwQ-LTUwXQP6n1HjthgYj1d-1soFXvKYsDOf-Tt89WFXjTiYULv6HdtY5i_9U70pIu52cB3S9_sqkZsdg&response-X-Checksum-Sha1=6d356a5918f716a9b9d4913049efcfae2bc95901&response-X-Checksum-Sha2=dfaf059904fef868bdf8fa763fa5b572cbfbfec158c1068188bab9d965834cf2
==> Pouring vim-8.2.0350.mojave.bottle.tar.gz
🍺  /usr/local/Cellar/vim/8.2.0350: 1,887 files, 32.5MB
Removing: /usr/local/Cellar/vim/8.1.0600... (1,839 files, 30.8MB)
==> Checking for dependents of upgraded formulae...
==> No dependents found!
==> Caveats
==> perl
By default non-brewed cpan modules are installed to the Cellar. If you wish
for your modules to persist across updates we recommend using `local::lib`.

You can set that up like this:
  PERL_MM_OPT="INSTALL_BASE=$HOME/perl5" cpan local::lib
  echo 'eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib=$HOME/perl5)"' >> ~/.bash_profile
==> sqlite
sqlite is keg-only, which means it was not symlinked into /usr/local,
because macOS provides an older sqlite3.

If you need to have sqlite first in your PATH run:
  echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile

For compilers to find sqlite you may need to set:
  export LDFLAGS="-L/usr/local/opt/sqlite/lib"
  export CPPFLAGS="-I/usr/local/opt/sqlite/include"

For pkg-config to find sqlite you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"

==> python
Python has been installed as
  /usr/local/bin/python3

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python/libexec/bin

You can install Python packages with
  pip3 install <package>
They will install into the site-package directory
  /usr/local/lib/python3.7/site-packages

See: https://docs.brew.sh/Homebrew-and-Python
==> ruby
By default, binaries installed by gem will be placed into:
  /usr/local/lib/ruby/gems/2.7.0/bin

You may want to add this to your PATH.

ruby is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have ruby first in your PATH run:
  echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile

For compilers to find ruby you may need to set:
  export LDFLAGS="-L/usr/local/opt/ruby/lib"
  export CPPFLAGS="-I/usr/local/opt/ruby/include"

For pkg-config to find ruby you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/ruby/lib/pkgconfig"

Installing vim has failed!
Installing watchman
Installing zsh
Installing heroku/brew/heroku
Installing parity
Installing hub
Installing imagemagick
Using libyaml
Installing coreutils
Installing yarn
Using gpg-suite
Installing postgres
Installing redis
Homebrew Bundle failed! 1 Brewfile dependency failed to install.
failed

iTerm looks like screenshot below after relaunching image

cpytel commented 2 years ago

Thanks for creating this issue. I recognize you created it some time ago, thanks for your contributions and patience. I've merged in https://github.com/thoughtbot/laptop/pull/603 which drops official support for anything besides Monterey.

I'm unable to test on a fresh install of any other versions at this time, and I assume you've since upgraded. But if you'd like to continue to work on this and it's still happening, let me know. Thanks again!