1、syntax error near unexpected token 0.29…/configure: line 13575: PKG_PREREQ(0.2)’
PKG_PREREQ
宏定义是引用 pkg.m4 作为 pkg-config 软件包的一部分提供的,因此
-
首先要检查的是 pkg-config 是否已安装
pkg-config --version
-
没有的话安装一下,然后查找pkg.m4的位置
find /usr -name "pkg.m4"
-
配置 “aclocal 的安装路径” 到环境变量 ACLOCAL_PATH:
export ACLOCAL_PATH=/usr/share/aclocal
2、Makefile.am:16: error: ‘nodist_pkgconfig_DATA’ is used but ‘pkgconfigdir’ is undefined
设置路径 参考
export ACLOCAL_PATH=/usr/local/share/aclocal:/usr/share/aclocal:/share/aclocal
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig
3、Package re2 was not found in the pkg-config search path.Perhaps you should add the directory containing `re2.pc’
全局寻找re2.pc
find / -name "re2.pc"
找到的路径为
/usr/lib/x86_64-linux-gnu/pkgconfig
将找到的路径加到PKG_CONFIG_PATH中
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig
4、make时报错:/hopper/examples/re2/cre2/meta/autotools/missing: line 81: makeinfo: command not found
sudo apt-get install texinfo