{"record":{"id":"24ed69a0f7022b48","repo":"hashicorp/vagrant","slug":"vagrant-failed-to-install-the-requested-plugin-bec","errorCode":null,"errorMessage":"Vagrant failed to install the requested plugin because it depends\non development files for a library which is not currently installed\non this system. The following library is required by the '%{name}'\nplugin:\n\n  %{library}\n\nIf a package manager is used on this system, please install the development\npackage for the library. The name of the package will be similar to:\n\n  %{library}-dev or %{library}-devel\n\nAfter the library and development files have been installed, please\nrun the command again.","messagePattern":"Vagrant failed to install the requested plugin because it depends\non development files for a library which is not currently installed\non this system\\. The following library is required by the '%(.+?)'\nplugin:\n\n  %(.+?)\n\nIf a package manager is used on this system, please install the development\npackage for the library\\. The name of the package will be similar to:\n\n  %(.+?)-dev or %(.+?)-devel\n\nAfter the library and development files have been installed, please\nrun the command again\\.","errorType":"exception","errorClass":"Vagrant::Errors::PluginMissingLibrary","httpStatus":null,"severity":"error","filePath":"lib/vagrant/plugin/manager.rb","lineNumber":197,"sourceCode":"        # for removing outdated dependencies or other versions of an installed\n        # plugin if the plugin is upgraded/downgraded\n        Vagrant::Bundler.instance.clean(installed_plugins, local: !!opts[:local])\n        result\n      rescue Gem::GemNotFoundException\n        raise Errors::PluginGemNotFound, name: name\n      rescue Gem::Exception => err\n        @logger.warn(\"Failed to install plugin: #{err}\")\n        @logger.debug(\"#{err.class}: #{err}\\n#{err.backtrace.join(\"\\n\")}\")\n        # Try and determine a cause for the failure\n        case err.message\n        when /install development tools first/\n          raise Errors::PluginNeedsDeveloperTools\n        when /library not found in default locations/\n          lib = err.message.match(/(\\w+) library not found in default locations/)\n          if lib.nil?\n            raise Errors::BundlerError, message: err.message\n          end\n          raise Errors::PluginMissingLibrary,\n            library: lib.captures.first,\n            name: name\n        when /find header files for ruby/\n          raise Errors::PluginMissingRubyDev\n        else\n          raise Errors::BundlerError, message: err.message\n        end\n      end\n\n      # Uninstalls the plugin with the given name.\n      #\n      # @param [String] name\n      def uninstall_plugin(name, **opts)\n        if @system_file\n          if !@user_file.has_plugin?(name) && @system_file.has_plugin?(name)\n            raise Errors::PluginUninstallSystem,\n              name: name\n          end","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/hashicorp/vagrant/blob/35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5/lib/vagrant/plugin/manager.rb#L179-L215","documentation":"Error \"Vagrant failed to install the requested plugin because it depends\non development files for a library which is not currently installed\non this system. The following library is required by the '%{name}'\nplugin:\n\n  %{library}\n\nIf a package manager is used on this system, please install the development\npackage for the library. The name of the package will be similar to:\n\n  %{library}-dev or %{library}-devel\n\nAfter the library and development files have been installed, please\nrun the command again.\" thrown in hashicorp/vagrant.","triggerScenarios":"Thrown at lib/vagrant/plugin/manager.rb:197 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35f3160f4ad6edc3a9f3aa9570adfc1a4d73aaa5","analyzedAt":"2026-08-21T13:34:32.514Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}