{"id":7227,"date":"2014-05-31T23:00:54","date_gmt":"2014-05-31T23:00:54","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/31\/vagrant-berkshelf-plugin-compilation-installation-error-collection-of-common-programming-errors\/"},"modified":"2014-05-31T23:00:54","modified_gmt":"2014-05-31T23:00:54","slug":"vagrant-berkshelf-plugin-compilation-installation-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/31\/vagrant-berkshelf-plugin-compilation-installation-error-collection-of-common-programming-errors\/","title":{"rendered":"vagrant-berkshelf plugin compilation (installation) error-Collection of common programming errors"},"content":{"rendered":"<p>enclosed a snippet of my console:<\/p>\n<p><strong>release version:<\/strong><\/p>\n<pre><code>$ sudo cat \/etc\/*release* | grep -i distrib\nDISTRIB_ID=Ubuntu\nDISTRIB_RELEASE=13.10\nDISTRIB_CODENAME=saucy\nDISTRIB_DESCRIPTION=\"Ubuntu 13.10\"\n<\/code><\/pre>\n<p><strong>ruby version:<\/strong><\/p>\n<pre><code>$ ruby --version\nruby 2.0.0p299 (2013-08-29) [x86_64-linux-gnu]\n<\/code><\/pre>\n<p><strong>vagrant version:<\/strong><\/p>\n<pre><code>$ vagrant --version\nVagrant 1.3.5\n<\/code><\/pre>\n<p><strong>prerequisites:<\/strong><\/p>\n<pre><code>$ sudo dpkg -s libxml2 libxml2-dev libxslt1-dev libxslt1.1 build-essential | grep -i status\nStatus: install ok installed\nStatus: install ok installed\nStatus: install ok installed\nStatus: install ok installed\nStatus: install ok installed\n<\/code><\/pre>\n<p>when i try to install <code>vagrant-berkshelf<\/code> plugin, i receive the following <strong>error:<\/strong><\/p>\n<pre><code>$ sudo vagrant plugin install vagrant-berkshelf --plugin-version 1.3.4\nInstalling the 'vagrant-berkshelf --version '1.3.4'' plugin. This can take a few minutes...\n\/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/installer.rb:562:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)\n\n        \/opt\/vagrant\/embedded\/bin\/ruby extconf.rb\nExtracting libxml2-2.8.0.tar.gz into tmp\/x86_64-linux-gnu\/ports\/libxml2\/2.8.0... OK\nRunning 'configure' for libxml2 2.8.0... OK\nRunning 'compile' for libxml2 2.8.0... ERROR, review 'tmp\/x86_64-linux-gnu\/ports\/libxml2\/2.8.0\/compile.log' to see what happened.\n*** extconf.rb failed ***\nCould not create Makefile due to some reason, probably lack of\nnecessary libraries and\/or headers.  Check the mkmf.log file for more\ndetails.  You may need configuration options.\n\nProvided configuration options:\n    --with-opt-dir\n    --with-opt-include\n    --without-opt-include=${opt-dir}\/include\n    --with-opt-lib\n    --without-opt-lib=${opt-dir}\/lib\n    --with-make-prog\n    --without-make-prog\n    --srcdir=.\n    --curdir\n    --ruby=\/opt\/vagrant\/embedded\/bin\/ruby\n\/home\/user\/.vagrant.d\/gems\/gems\/mini_portile-0.5.2\/lib\/mini_portile.rb:265:in `block in execute': Failed to complete compile task (RuntimeError)\n    from \/home\/user\/.vagrant.d\/gems\/gems\/mini_portile-0.5.2\/lib\/mini_portile.rb:257:in `chdir'\n    from \/home\/user\/.vagrant.d\/gems\/gems\/mini_portile-0.5.2\/lib\/mini_portile.rb:257:in `execute'\n    from \/home\/user\/.vagrant.d\/gems\/gems\/mini_portile-0.5.2\/lib\/mini_portile.rb:69:in `compile'\n    from \/home\/user\/.vagrant.d\/gems\/gems\/mini_portile-0.5.2\/lib\/mini_portile.rb:109:in `cook'\n    from extconf.rb:101:in `block in '\n    from extconf.rb:119:in `call'\n    from extconf.rb:119:in `block in '\n    from extconf.rb:109:in `tap'\n    from extconf.rb:109:in `'\n\n\nGem files will remain installed in \/home\/user\/.vagrant.d\/gems\/gems\/nokogiri-1.6.0 for inspection.\nResults logged to \/home\/user\/.vagrant.d\/gems\/gems\/nokogiri-1.6.0\/ext\/nokogiri\/gem_make.out\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/installer.rb:540:in `block in build_extensions'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/installer.rb:515:in `each'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/installer.rb:515:in `build_extensions'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/installer.rb:180:in `install'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/dependency_installer.rb:297:in `block in install'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/dependency_installer.rb:270:in `each'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/dependency_installer.rb:270:in `each_with_index'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/dependency_installer.rb:270:in `install'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/action\/install_gem.rb:49:in `block in call'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/gem_helper.rb:42:in `block in with_environment'\n    from \/opt\/vagrant\/embedded\/lib\/ruby\/1.9.1\/rubygems\/user_interaction.rb:40:in `use_ui'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/gem_helper.rb:41:in `with_environment'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/action\/install_gem.rb:39:in `call'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/action\/warden.rb:34:in `call'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/action\/bundler_check.rb:20:in `call'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/action\/warden.rb:34:in `call'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/action\/builder.rb:116:in `call'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/action\/runner.rb:61:in `block in run'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/util\/busy.rb:19:in `busy'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/action\/runner.rb:61:in `run'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/command\/base.rb:17:in `action'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/command\/install.rb:27:in `execute'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/plugins\/commands\/plugin\/command\/root.rb:52:in `execute'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/cli.rb:38:in `execute'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/lib\/vagrant\/environment.rb:478:in `cli'\n    from \/opt\/vagrant\/embedded\/gems\/gems\/vagrant-1.3.5\/bin\/vagrant:96:in `'\n    from \/opt\/vagrant\/bin\/..\/embedded\/gems\/bin\/vagrant:23:in `load'\n    from \/opt\/vagrant\/bin\/..\/embedded\/gems\/bin\/vagrant:23:in `'\n<\/code><\/pre>\n<p>can someone help me solve the issue<\/p>\n<p><strong>update:<\/strong> the same error holds for <code>vagrant-berkshelf<\/code> version 1.3.x, 1.2.0, and even without specifying the version explicitly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>enclosed a snippet of my console: release version: $ sudo cat \/etc\/*release* | grep -i distrib DISTRIB_ID=Ubuntu DISTRIB_RELEASE=13.10 DISTRIB_CODENAME=saucy DISTRIB_DESCRIPTION=&#8221;Ubuntu 13.10&#8243; ruby version: $ ruby &#8211;version ruby 2.0.0p299 (2013-08-29) [x86_64-linux-gnu] vagrant version: $ vagrant &#8211;version Vagrant 1.3.5 prerequisites: $ sudo dpkg -s libxml2 libxml2-dev libxslt1-dev libxslt1.1 build-essential | grep -i status Status: install ok installed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7227","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7227"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7227\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}