Module: OS::Linux::Glibc

Defined in:
Library/Homebrew/os/linux/glibc.rb

Class Method Summary collapse

Class Method Details

.system_versionObject



6
7
8
9
10
11
# File 'Library/Homebrew/os/linux/glibc.rb', line 6

def system_version
  return @system_version if @system_version
  version = Utils.popen_read("/usr/bin/ldd", "--version")[/ (\d+\.\d+)/, 1]
  return Version::NULL unless version
  @system_version = Version.new version
end