Skip to content

Instantly share code, notes, and snippets.

@Fizzadar
Created July 19, 2021 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fizzadar/b5359d97107d18da063f11dbf79f1130 to your computer and use it in GitHub Desktop.
Save Fizzadar/b5359d97107d18da063f11dbf79f1130 to your computer and use it in GitHub Desktop.
arch -x86_64 /usr/local/bin/brew install libvirt
# FFS, what a shitshow
CPATH="/opt/vagrant/embedded/include/ruby-3.0.0/ruby" \
CONFIGURE_ARGS='with-ldflags="-L/opt/vagrant/embedded/lib -I/opt/vagrant/embedded/include" with-libvirt-include=/usr/local/include with-libvirt-lib=/usr/local/lib' \
GEM_HOME=~/.vagrant.d/gems \
GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems \
PATH=/opt/vagrant/embedded/bin:$PATH \
vagrant plugin install vagrant-libvirt
vagrant --version
# Vagrant 2.2.17
/opt/vagrant/embedded/bin/ruby --version
# ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-darwin19]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment