合 Linux安装apr相关包
现象
configure: error: apr-1-config is required for gpfdist, unable to find binary
yum安装
1 | yum install -y apr apr-util apr-devel |
编译安装
https://apr.apache.org/download.cgi
安装顺序是先安装apr然后再安装 apr-util,因为安装apr-util需要apr环境
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | yum install expat-devel apt-get install libexpat1-dev wget https://dlcdn.apache.org//apr/apr-1.7.4.tar.gz wget https://dlcdn.apache.org//apr/apr-util-1.6.3.tar.gz tar zxvf apr-1.7.4.tar.gz cd apr-1.7.4 ./configure --prefix=/usr/local/apr make -j8 make install tar zxvf apr-util-1.6.3.tar.gz cd apr-util-1.6.3 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make -j8 make install |