Updating scgmini and boxes » History » Version 5

« Previous - Version 5/12 (diff) - Next » - Current version
pospelov, 23 Feb 2018 14:59


Updating scgmini and boxes

This explains how to update Macmini server and boxes.

Updating Macmini

  • ssh scg@scgmini
  • Install what apple wants (for Applestore password ask Gennady)
  • brew update
  • brew upgrade `brew outdated`
  • brew cleanup

Updating Yosemite box

Our current yosemite-dev box is /Users/scg/deployment/vagrant/orig_boxes/osx-yosemite-dev-1.0.box. This box is already imported into Vagrant. Our task: upgrade packages inside active box and make it a new default box.

  • ssh scg@scgmini
  • cd /Users/scg/deployment/vagrant/projects/yosemite-dev
  • vagrant up --no-provision
  • vagrant ssh
  • Now you are inside the box

brew update && brew upgrade `brew outdated`
brew install eigen # (if some new dependency has appeared)
brew cleanup -n; brew cleanup
exit

  • Now you are back in macmini, Let's package new box, remove old box, add new box into vagrant

vagrant package --output osx-yosemite-dev-2.0.box
vagrant destroy
mv osx-yosemite-dev-2.0.box ~/deployment/vagrant/orig_boxes/.
vagrant box remove yosemite-dev
vagrant box add yosemite-dev /Users/scg/deployment/vagrant/orig_boxes/osx-yosemite-dev-2.0.box

Troubleshooting

  • After I updated brew (brew update && brew upgrade `brew outdated`) in the box, our cmake was not able to find boost-python anymore

brew doctor # to see what's wrong
brew link boost-python # to repair broken link
don't forget brew-cleanup to get rid from previous packages

Obsolete

  • Installing clang
    sudo brew tap homebrew/versions
    sudo brew link xz
    sudo brew install llvm37