zoukankan      html  css  js  c++  java
  • (转载)如何查看安装的glibc版本

    (转载)http://blog.chinaunix.net/uid-14966892-id-2780401.html 
    Here is an answer from the "Frequently Asked Questions about the GNU C Library" (the FAQ):
    
    4.9.    How can I find out which version of glibc I am using in the moment?
    
    {UD} If you want to find out about the version from the command line simply
    run the libc binary.  This is probably not possible on all platforms but
    where it is simply locate the libc DSO and start it as an application.  On
    Linux like
    
        /lib/libc.so.6
    
    This will produce all the information you need.
    
    What always will work is to use the API glibc provides.  Compile and run the
    following little program to get the version information:
    
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    #include <stdio.h>
    #include <gnu/libc-version.h>
    int main (void) { puts (gnu_get_libc_version ()); return 0; }
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    This interface can also obviously be used to perform tests at runtime if
    this should be necessary.

    Just execute:
    ldd --version
    which comes with glibc package

  • 相关阅读:
    ubuntu16.04以及各个版本镜像网址汇总
    linux0.11的进程1的创建和执行
    linux0.11的0号进程详解
    Linux命令
    Vim命令
    CentOS7静态IP设置
    Fiddler常用设置
    Python日期计算
    Python完全平方数
    pip
  • 原文地址:https://www.cnblogs.com/Robotke1/p/3053173.html
Copyright © 2011-2022 走看看