{"record":{"id":"1cc9a5d38bbce7db","repo":"ruby/rubygems","slug":"the-following-gems-are-missing-os-dependencies","errorCode":null,"errorMessage":"The following gems are missing OS dependencies:\n * #{spec.name}: #{path}","messagePattern":"The following gems are missing OS dependencies:\n \\* #(.+?): #(.+?)","errorType":"exception","errorClass":"Bundler::ProductionError","httpStatus":null,"severity":"error","filePath":"lib/bundler/cli/doctor/diagnose.rb","lineNumber":107,"sourceCode":"            lookup_with_fiddle(f)\n          end\n          if bad_paths.any?\n            broken_links[spec] ||= []\n            broken_links[spec].concat(bad_paths)\n          end\n        end\n      end\n\n      permissions_valid = check_home_permissions\n\n      if broken_links.any?\n        message = \"The following gems are missing OS dependencies:\"\n        broken_links.flat_map do |spec, paths|\n          paths.uniq.map do |path|\n            \"\\n * #{spec.name}: #{path}\"\n          end\n        end.sort.each {|m| message += m }\n        raise ProductionError, message\n      elsif permissions_valid\n        Bundler.ui.info \"No issues found with the installed bundle\"\n      end\n    end\n\n    private\n\n    def check_home_permissions\n      require \"find\"\n      files_not_readable = []\n      files_not_readable_and_owned_by_different_user = []\n      files_not_owned_by_current_user_but_still_readable = []\n      broken_symlinks = []\n      Find.find(Bundler.bundle_path.to_s).each do |f|\n        if !File.exist?(f)\n          broken_symlinks << f\n        elsif !File.readable?(f)\n          if File.stat(f).uid != Process.uid","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli/doctor/diagnose.rb#L89-L125","documentation":"Error \"The following gems are missing OS dependencies:\n * #{spec.name}: #{path}\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli/doctor/diagnose.rb:107 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":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}