我正在尝试在Ubuntu 14.04下编译R 3.3.1版本。尽管我试图安装ubuntu pcre3包并后来通过源码安装pcre-8.37,但在运行R-3.3.1中的./configure时仍然出现以下错误:
checking for pcre_fullinfo in -lpcre... yes
checking pcre.h usability... yes
checking pcre.h presence... yes
checking for pcre.h... yes
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
checking if PCRE version >= 8.10, < 10.0 and has UTF-8 support... no
checking whether PCRE support suffices... configure: error: pcre >= 8.10 library and headers are required
即使我按照以下方式重新构建pcre,这个问题仍然存在:
./configure --enable-utf8 --enable-unicode-properties
make
make install
根据我在网上找到的少数相关问题,有什么建议吗?
sudo apt install libpcre3-dev
进行安装。 - Martin Morganlibpecre3-dev
在 Ubuntu 14.04 中解决了我的问题。 - alhelal