{"record":{"id":"d090a33c7fd20a3a","repo":"ruby/rubygems","slug":"dynamic-library-check-not-supported-on-this-platfo","errorCode":null,"errorMessage":"Dynamic library check not supported on this platform.","messagePattern":"Dynamic library check not supported on this platform\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/bundler/cli/doctor/diagnose.rb","lineNumber":50,"sourceCode":"    def dylibs_ldd(path)\n      output = `/usr/bin/ldd #{path.shellescape}`.chomp\n      output.split(\"\\n\").filter_map do |l|\n        match = l.match(LDD_REGEX)\n        next if match.nil?\n        match.captures[0]\n      end\n    end\n\n    def dylibs(path)\n      case RbConfig::CONFIG[\"host_os\"]\n      when /darwin/\n        return [] unless otool_available?\n        dylibs_darwin(path)\n      when /(linux|solaris|bsd)/\n        return [] unless ldd_available?\n        dylibs_ldd(path)\n      else # Windows, etc.\n        Bundler.ui.warn(\"Dynamic library check not supported on this platform.\")\n        []\n      end\n    end\n\n    def bundles_for_gem(spec)\n      Dir.glob(\"#{spec.full_gem_path}/**/*.bundle\")\n    end\n\n    def lookup_with_fiddle(path)\n      require \"fiddle\"\n      Fiddle.dlopen(path)\n      false\n    rescue Fiddle::DLError\n      true\n    end\n\n    def check!\n      require_relative \"../check\"","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli/doctor/diagnose.rb#L32-L68","documentation":"Error \"Dynamic library check not supported on this platform.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli/doctor/diagnose.rb:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["This check is unsupported on your platform; ignore it or run the diagnostic on a supported platform"],"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"}