Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not finding libxml2? #23

Open
dcollinsLMC opened this issue Sep 26, 2016 · 6 comments
Open

not finding libxml2? #23

dcollinsLMC opened this issue Sep 26, 2016 · 6 comments

Comments

@dcollinsLMC
Copy link

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
Copy link
Owner

@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
Copy link
Author

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
Copy link
Author

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

@leedm777
Copy link
Owner

Yay! 👏🏻

@leedm777
Copy link
Owner

leedm777 commented Oct 10, 2016

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 leedm777 reopened this Oct 10, 2016
leedm777 added a commit that referenced this issue Oct 10, 2016
@leedm777
Copy link
Owner

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.

😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants