Linux之Centos 7 编译升级Bison

摘要

今天在制作一个RPM包的时候发现bison版本不够,于是就记录下centos上升级bison版本的方法

[[email protected] ~]# bison -V
bison (GNU Bison) 2.7
由 Robert Corbett 和 Richard Stallman 编写。

版权所有 (C) 2012 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.
[[email protected] ~]# mkdir -p /tmp/bison && cd /tmp/bison
[[email protected] /tmp/bison]# curl -Lk http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.xz|tar xJ -C /tmp/bison --strip-components=1
[[email protected] /tmp/bison]# ./configure && make -j$(getconf _NPROCESSORS_ONLN) && make install
[[email protected] /tmp/bison]# bison -V
bison (GNU Bison) 3.0.4
由 Robert Corbett 和 Richard Stallman 编写。

版权所有 (C) 2015 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.
  • 本文由 发表于 2017年1月15日20:00:11
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: