代码之家  ›  专栏  ›  技术社区  ›  hch

如何在mac终端中检查GNU版本?

  •  10
  • hch  · 技术社区  · 9 年前

    标题说明了一切。我四处搜索,但只找到了使用rpm的方法,而我的mac上没有安装rpm。

    2 回复  |  直到 6 年前
        1
  •  10
  •   Mureinik    9 年前

    最简单的方法是跑步 make --version 。例如,在我的机器上,它输出:

    mureinik@computer ~$ make --version 
    GNU Make 4.0
    Built for x86_64-redhat-linux-gnu
    Copyright (C) 1988-2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
        2
  •  2
  •   Alexander    9 年前

    要显示版本,请在终端中键入以下内容:

    make -v
    

    我机器上的输出如下:

    GNU Make 3.81
    Copyright (C) 2006  Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
    PARTICULAR PURPOSE.
    
    This program built for i386-apple-darwin11.3.0