编译cre2时,执行./autogen.sh报错:
Makefile.am:16: error: 'nodist_pkgconfig_DATA' is used but 'pkgconfigdir' is undefined
autoreconf: automake failed with exit status: 1
检查$ACLOCAL_PATH和$PKG_CONFIG_PATH,
如果为空设置对应的路径,例如
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
make时,报如下错误时:
../doc/cre2.texi:7: @include: could not find version.texi
../doc/cre2.texi:65: warning: undefined flag: VERSION
../doc/cre2.texi:109: warning: undefined flag: VERSION
Makefile:1440: recipe for target '../doc/cre2.info' failed
make[1]: *** [../doc/cre2.info] Error 1
make[1]: Leaving directory '/home/jack/code/cre2/build'
Makefile:963: recipe for target 'all' failed
make: *** [all] Error 2
执行
./configure --enable-maintainer-mode
即可