homebrew-asterisk icon indicating copy to clipboard operation
homebrew-asterisk copied to clipboard

not finding libxml2?

Open dcollinsLMC opened this issue 8 years ago • 6 comments

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 avatar Sep 26 '16 21:09 dcollinsLMC

@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)?

leedm777 avatar Sep 26 '16 21:09 leedm777

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.

dcollinsLMC avatar Sep 27 '16 03:09 dcollinsLMC

Well, I upgraded to 10.12 (Sierra), did xcode-select --install, and it now builds. Hooray!

dcollinsLMC avatar Sep 27 '16 05:09 dcollinsLMC

Yay! 👏🏻

leedm777 avatar Sep 27 '16 12:09 leedm777

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.

leedm777 avatar Oct 10 '16 13:10 leedm777

Whelp. Looks like Asterisk does some path munging to work better with cross-compiling. It's not immediately clear how to fix it for homebrew and not break cross compiling.

😞

leedm777 avatar Oct 10 '16 14:10 leedm777