ruby -e "$(curl -f sSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
glibtoolize --copy
case `uname` in Darwin*) glibtoolize --copy ;;
*) libtoolize --copy ;; esac
执行命令:./autogen.sh
报错:“configure.ac:42: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:44: error: possibly undefined macro: AC_MSG_FAILURE”
通过这篇文章http://stackoverflow.com/questions/8811381/possibly-undefined-macro-ac-msg-error
我安装了pkgconfig,执行命令:brew install pkgconfig
报错“rm: autom4te.cache/output.0: Permission denied
rm: autom4te.cache/output.1: Permission denied
rm: autom4te.cache/requests: Permission denied
rm: autom4te.cache/traces.0: Permission denied
rm: autom4te.cache/traces.1: Permission denied
rm: autom4te.cache: Directory not empty
”
改成sudo ,执行命令:sudo ./autogen.sh
- 执行configure ,执行命令:./configure
- 执行make,执行命令:make
- 执行make install,执行命令:make install
3. 验证
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/stark_summer/article/details/47360567