在服务器上安装R,报错没有pcre2:"configure: error: PCRE2 library and headers are required, or use --with-pcre1 and PCRE >= 8.32 with UTF-8 support"
安装pcre2,在编译make install时报错:
make[2]: Entering directory '/home/pcre2-10.39'
/bin/mkdir -p '/usr/local/lib'
/bin/sh ./libtool --mode=install /usr/bin/install -c libpcre2-8.la libpcre2-posix.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpcre2-8.so.0.10.4 /usr/local/lib/libpcre2-8.so.0.10.4
/usr/bin/install: cannot create regular file '/usr/local/lib/libpcre2-8.so.0.10.4': Permission denied
Makefile:1535: recipe for target 'install-libLTLIBRARIES' failed
make[2]: *** [install-libLTLIBRARIES] Error 1
make[2]: Leaving directory '/home/pcre2-10.39'
Makefile:3224: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/pcre2-10.39'
Makefile:3217: recipe for target 'install' failed
make: *** [install] Error 2
尝试sodu make install,但是没有管理员权限,无法切换到root。
请问如何解决?