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. 驗證
git
版權聲明:本文爲博主原創文章,未經博主容許不得轉載。github