Skip to content

Instantly share code, notes, and snippets.

@rbellamy
Created April 3, 2015 17:33
Show Gist options
  • Save rbellamy/6bed1467885dfa687227 to your computer and use it in GitHub Desktop.
Save rbellamy/6bed1467885dfa687227 to your computer and use it in GitHub Desktop.
How to install vagrant-libvirt on ArchLinux so that ruby-libvirt isn't borked
# in case it's already installled
vagrant plugin uninstall vagrant-libvirt
# vagrant's copy of curl prevents the proper installation of ruby-libvirt
sudo mv /opt/vagrant/embedded/lib/libcurl.so{,.backup}
sudo mv /opt/vagrant/embedded/lib/libcurl.so.4{,.backup}
sudo mv /opt/vagrant/embedded/lib/libcurl.so.4.3.0{,.backup}
sudo mv /opt/vagrant/embedded/lib/pkgconfig/libcurl.pc{,.backup}
CONFIGURE_ARGS="with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib" vagrant plugin install vagrant-libvirt
# put vagrant's copy of curl back
sudo mv /opt/vagrant/embedded/lib/libcurl.so{.backup,}
sudo mv /opt/vagrant/embedded/lib/libcurl.so.4{.backup,}
sudo mv /opt/vagrant/embedded/lib/libcurl.so.4.3.0{.backup,}
sudo mv /opt/vagrant/embedded/lib/pkgconfig/libcurl.pc{.backup,}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment