文章目录
0.概述
在 Ubuntu 12.04.5 下安装CryptDB时遇到了一系列麻烦,在这里标注一下避免重复踩坑,也尽量避免后来人踩坑。
1. bison 版本过高导致的问题
1.1 问题描述
/home/yourname/cryptdb/mysql-src/sql/sql_yacc.yy:30:23: error: ‘yythd’ was not declared in this scope
#define YYTHD ((THD *)yythd)
^
/home/yourname/cryptdb/mysql-src/sql/sql_yacc.yy:37:14: note: in expansion of macro ‘YYTHD’
#define Lex (YYTHD->lex)
^
/home/yourname/cryptdb/mysql-src/sql/sql_yacc.yy:14618:23: note: in expansion of macro ‘Lex’
LEX *lex= Lex;
^
make[2]: *** [sql/