「HIGH-LEVEL-PROGRAMMING-LANGUAGES」- 编译原理

Bison(语法分析器生成器)

LFS/6.27. Bison-2.5
Bison/Homepage

# Bison-2.5
./configure --prefix=/usr
make && make install

Flex

Homepage: http://flex.sf.net

GCC(GNU Compiler Collection)

Homepage: http://gcc.gnu.org/

# /usr/bin/ld: cannot find -lmysqlclient

GCC/3.14 Options for Linking
GCC how to add before the default linker search path by default? LIBRARY_PATH not working
在CentOS上编译时,已经安装安装了MySQL应用,且libmysqlclient也是存在的,但是依旧有这个错误。执行make VERBOSE=1后,发现执行编译命令时,/usr/lib64/mysql并不在gcc的库查找路径中。

办法有一个:在编译时,增加库的搜索路径,即执行命令LIBRARY_PATH=/usr/lib64/mysql make即可。当然可能还有其他办法。

re2c(a lexer generator)

Install: http://re2c.org/install/install.html

=

.
├── bin
│   └── re2c
└── share
	└── man
		└── man1
			└── re2c.1

4 directories, 2 files

常见问题处理

/bin/sh: rst2man.py: command not found
Makefile:1858: recipe for target 'doc/re2c.1' failed
make[1]: *** [doc/re2c.1] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/mnt/uui/packages/re2c-0.16'
Makefile:768: recipe for target 'all' failed
make: *** [all] Error 2

http://stackoverflow.com/questions/22167481/install-rst2man-failed-for-varnish-agent-fix
缺少 python-docutils