charlesflynn / agiledata

Builds a data science work environment for Russell Jurney's book Agile Data Science.
MIT License
46 stars 27 forks source link

Documentation: Installing vagrant-salt requires ruby-dev #8

Closed lluang closed 10 years ago

lluang commented 10 years ago

I was getting the following error when trying to install

Installing the 'vagrant-salt' plugin. This can take a few minutes...
/usr/lib/ruby/1.9.1/rubygems/installer.rb:556:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

        /usr/bin/ruby1.9.1 extconf.rb
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
    from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    from extconf.rb:4:in `<main>'

I eventually figured out that what was missing was the ruby-dev package (Ubuntu), essentially, it is not enough to have Ruby on the system, but one needs the development libraries.

Suggestion fix: Add to documentation that the development libraries for Ruby are required. (I don't know enough about Ruby to be able to be more specific than that)

charlesflynn commented 10 years ago

Thanks for letting me know. I've added a note about that requirement, and also changed the docs to note that Salty Vagrant is deprecated in the current version of Vagrant.