homebrew-asterisk
homebrew-asterisk copied to clipboard
not finding libxml2?
I have installed libxml2 via homebrew (brew install libxml2). I am still getting this message:
Last 15 lines from /Users/david/Library/Logs/Homebrew/asterisk/01.configure: checking curses.h presence... yes checking for curses.h... yes checking for initscr in -lncurses... yes checking for curses.h... (cached) yes checking for uuid_generate_random in -luuid... no checking for uuid_generate_random in -le2fs-uuid... no checking for uuid_generate_random... yes checking for json_dumps in -ljansson... yes checking jansson.h usability... yes checking jansson.h presence... yes checking for jansson.h... yes checking for clock_gettime in -lrt... no checking for xml2-config... /usr/bin/xml2-config configure: *** The Asterisk menuselect tool requires the 'libxml2' development package. configure: *** Please install the 'libxml2' development package.
@dcollinsLMC homebrew-asterisk uses the system installed OS X, instead of the version installed by Homebrew. What versions of Xcode and macOS/OS X are you running on? Did you install the Xcode command line tools (xcode-select --install
)?
Yes I have run xcode-select --install. I am running Mac OS X 10.11.6 and Xcode 8.0. Just tried it again after running brew uninstall libxml2, same result.
Well, I upgraded to 10.12 (Sierra), did xcode-select --install, and it now builds. Hooray!
Yay! 👏🏻
Just ran into this myself.
Appears to be an incompatibility between Xcode 8 and Mac OS X 10.11 (or CLT 7.3.1). Looks like the solution is to a) upgrade to Sierra b) downgrade to Xcode 7 c) change homebrew-asterisk to use the homebrew version of libxml2.
I may be stuck on El Capitan for some time, so I might try going down path c.