諦めて、おうちのEl capitanでせめてもの画面だけは見ようとしてみる。いきなりつまずく。
$vagrant plugin install vagrant-vbguest Installing the 'vagrant-vbguest' plugin. This can take a few minutes... Bundler, the underlying system Vagrant uses to install plugins, reported an error. The error is shown below. These errors are usually caused by misconfigured plugin installations or transient network issues. The error from Bundler is: An error occurred while installing ffi (1.9.14), and Bundler cannot continue. Make sure that `gem install ffi -v '1.9.14'` succeeds before bundling.
gemインストールもNG。
$gem install ffi -v '1.9.14' Fetching: ffi-1.9.14.gem (100%) Building native extensions. This could take a while... ERROR: Error installing ffi: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/include/ruby.h Gem files will remain installed in /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.14 for inspection. Results logged to /Library/Ruby/Gems/2.0.0/gems/ffi-1.9.14/ext/ffi_c/gem_make.out
Xcodeのコマンドラインツールを入れてみる。前もやった気がするが。
$ xcode-select --install $ sudo xcodebuild -license $ gem install ffi -v '1.9.14' Building native extensions. This could take a while... Successfully installed ffi-1.9.14 Parsing documentation for ffi-1.9.14 Installing ri documentation for ffi-1.9.14 1 gem installed
vagrant upしたら怒られた
$vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'mayflower/trusty64-puppet3' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Loading metadata for box 'mayflower/trusty64-puppet3' default: URL: https://atlas.hashicorp.com/mayflower/trusty64-puppet3 ==> default: Adding box 'mayflower/trusty64-puppet3' (v0.7.2) for provider: virtualbox default: Downloading: https://atlas.hashicorp.com/mayflower/boxes/trusty64-puppet3/versions/0.7.2/providers/virtualbox.box ==> default: Box download is resuming from prior download progress ==> default: Successfully added box 'mayflower/trusty64-puppet3' (v0.7.2) for 'virtualbox'! ==> default: Importing base box 'mayflower/trusty64-puppet3'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'mayflower/trusty64-puppet3' is up to date... ==> default: Setting the name of the VM: synthesize-master_default_1484155138036_88827 Vagrant cannot forward the specified ports on this VM, since they would collide with some other application that is already listening on these ports. The forwarded port to 8443 is already in use on the host machine. To fix this, modify your current project's Vagrantfile to use another port. Example, where '1234' would be replaced by a unique host port: config.vm.network :forwarded_port, guest: 443, host: 1234 Sometimes, Vagrant will attempt to auto-correct this for you. In this case, Vagrant was unable to. This is usually because the guest machine is in a state which doesn't allow modifying port forwarding. You could try 'vagrant reload' (equivalent of running a halt followed by an up) so vagrant can attempt to auto-correct this upon booting. Be warned that any unsaved work might be lost.
Vagrantfileを修正。ひとまず8445に。
config.vm.network :forwarded_port, guest: 443, host: 8445
起動できた!