function hasLdconfig () {
  try {
    // Add /sbin to path as ldconfig is located there on some systems -- e.g.
    // Debian (and it can still be used by unprivileged users):
    childProcess.execSync('export PATH="$PATH:/sbin"')
    process.env.PATH = '...'
    // execSync throws on nonzero exit
    childProcess.execSync('hash ldconfig 2>/dev/null')
    return true
  } catch (err) {
    return false
  }
}
function hasLdconfig () {
  try {
    
    
    childProcess.execSync('export PATH="$PATH:/sbin"')
    process.env.PATH = '...'
    
    childProcess.execSync('hash ldconfig 2>/dev/null')
    return true
  } catch (err) {
    return false
  }
}
function hasLdconfig ( ) { try { // Add /sbin to path as ldconfig is located there on some systems -- e.g. // Debian (and it can still be used by unprivileged users): childProcess . execSync ( 'export PATH="$PATH:/sbin"' ) process . env . PATH = '...' // execSync throws on nonzero exit childProcess . execSync ( 'hash ldconfig 2>/dev/null' ) return true } catch ( err ) { return false } }
Checks for ldconfig on the path and /sbin
@return Boolean exists
Checks for ldconfig on the path and / sbin