Linux之Centos 7 编译升级Bison

  • A+
所属分类:Linux  Linux基础
摘要

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

[root@DS-VM-Node60 ~]# 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.
[root@DS-VM-Node60 ~]# mkdir -p /tmp/bison && cd /tmp/bison
[root@DS-VM-Node60 /tmp/bison]# curl -Lk http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.xz|tar xJ -C /tmp/bison --strip-components=1
[root@DS-VM-Node60 /tmp/bison]# ./configure && make -j$(getconf _NPROCESSORS_ONLN) && make install
[root@DS-VM-Node60 /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.
lookback

发表评论

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