在 MacOS 10.9 编译 subversion-1.8.9 时,出现
configure: error: failed to recognize APR_INT64_T_FMT on this platform
解决办法: 安装 Apache apr 和 apr-util
安装apr
wget http://mirrors.hust.edu.cn/apache/httpd/httpd-2.2.27.tar.gz tar zxvf httpd-2.2.27.tar.gz cd httpd-2.2.27/cd srclib/apr ./configure --prefix=/usr/local/apr make make install
安装apr-util
cd httpd-2.2.27/cd srclib/apr-util ./configure --prefix=/usr/local/apr-util make make install
重新编译安装 subversion-1.8.9 添加 apr 和 apr-util 参数
wget http://mirrors.hust.edu.cn/apache/subversion/subversion-1.8.9.tar.gz tar zxvf subversion-1.8.9.tar.gz cd subversion-1.8.9 ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/ make make install
转载请注明:爱开源 » configure: error: failed to recognize APR_INT64_T_FMT on this platform