一:./configure的时候
1,gcc的处理:sudo apt-get install clang && rvm install 1.9.3 --with-gcc=clang
2,缺少readline libirary :sudo apt-get install libreadline-dev
3,缺少:zlib library:sudo apt-get install zlib1g-dev
二:make的时候
ERROR:`flex' is missing on your system:sudo apt-get install glex
ERROR: `bison' is missing on your system:sudo apt-get install bison.
http://www.postgresql.org/message-id/1402239074775-5806449.post@n5.nabble.com
http://postgresql.nabble.com/bison-flex-and-configure-td5789215.html
然而有时候你安装完之后,make clean之后在make它还是出错,为啥呢,因为它根据./configure检查的结果进行make
帮助外国人看,关键点翻译:translation:however ,after that you had installed the tools,you should retry ./configure before you make it.
所以此时你需要重新./configure一下,我用的linux mint 你安装玩还需要等待一会儿。
如图1:./configure检查编译环境需要的工具安装是否齐全。
(图一)
如图2:make之后(小提示make -j2 表示两个处理器同时去编译,加快速度哦)
涂鸦一下,个人隐身,嘿嘿
(图二)
你看我运行成功了吧。赶快试试吧!