Everything is a Freaking DNS problem - ran http://127.0.0.1:8080/blog/taxonomy/term/1467/0 en Installing Vagrant, on Ubuntu Natty http://127.0.0.1:8080/blog/installing-vagrant-ubuntu-natty <p>(Warning some Ubuntu ranting ahead) </p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">apt-get install virtualbox-ose </div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">apt-get install rubygems</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">gem install vagrant</div></li></ol></pre></div></p> <p>That's what I assumed it would take me to install vagrant on a spare Ubuntu (Natty) laptop.</p> <p>Well it's not. after that I was greeted with some weirdness.</p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">$vagrant</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">vagrant: command not found...</div></li></ol></pre></div></p> <p>Yet gem list --local showed the vagrant gem installed.</p> <p><div class="geshifilter"><pre class="text geshifilter-text" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">$ruby</div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">ruby: command not found</div></li></ol></pre></div></p> <p>I looked twice, checked again and indeed it seems you can install rubygems on natty with no ruby installed #dazedandconfused</p> <p>So unlike other distro's on Ubuntu doesn't add the rubygems binary path to it's default path<br /> After adding that to my .bashrc things started working better.</p> <p>The active reader has noticed that by now half of the Twittersphere was pointing me to the already implemented<br /> above solution and the other half was telling me to not install rubygems using apt-get, or to use rvm for all my rubygem troubles</p> <p>Apart from the point that if you need tools to like rvm to fix things that are fundamentally broken, the fact is that joe average java developer doens't want to be bothered with RubyGem hell , he just wants to do apt-get install Vagrant and get on with his real work, and that's exactly what I'd expect from Linux for human beings</p> <p>I'd expect any junior guy to be able to go to vagrantup.com read the 4 commands on the main page and be up and running<br /> Coz that's how it works on my Bleeding Edge Enterprise Development Distro, the one I usually would not advise those people (and my mother) to use.</p> http://127.0.0.1:8080/blog/installing-vagrant-ubuntu-natty#comments ran ubuntu vagrant Thu, 29 Dec 2011 18:31:03 +0000 Kris Buytaert 1055 at http://127.0.0.1:8080/blog