(solved) The pkg-config package 'libpcre' is required but it could not be found.
pkg-confg 确认是否存在。 $ pkg-config --libs libpcrePackage libpcre was not found in the pkg-config search path.Perhaps you should add the directory containing `libpcre.pc'to the PKG_CONFIG_PATH environment variableNo package 'libpcre' found 编辑profile $ vim ~/.bash_profile .bash_profile添加以下。 export PKG_CONFIG_PATH=/usr/lib/pkgconfig 保存 . ~/.bash_profile中 验证 $ pkg-config --libs libpcre-lpcre