leedm777 / homebrew-asterisk

Homebrew tap for building an Asterisk dev environment
50 stars 27 forks source link

not finding libxml2? #23

Open dcollinsLMC opened 8 years ago

dcollinsLMC commented 8 years ago

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.

leedm777 commented 8 years ago

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

dcollinsLMC commented 8 years ago

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 commented 8 years ago

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

leedm777 commented 8 years ago

Yay! 👏🏻

leedm777 commented 7 years ago

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 commented 7 years ago

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.

😞