一:./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 flex
ERROR: `bison' is missing on your system:sudo apt-get install bison.
PostgreSQL: Re: configure does not check for bison or flex
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检查编译环境需要的工具安装是否齐全。
你看我运行成功了吧。赶快试试吧!