universal-ctags / homebrew-universal-ctags

Homebrew Tap for Universal Ctags on OSX
https://ctags.io
GNU General Public License v2.0
326 stars 19 forks source link

brew install fails to link libxml2 #30

Closed tplunket closed 4 years ago

tplunket commented 6 years ago

I don't know a lot about Mac dev unfortunately but like some other open issues, the Homebrew instructions complete with a failure. I tried the workaround mentioned elsewhere regarding just building from the source cache but that fails in the same way...

In my case, it's failing to link. In the output there's a bunch of CC calls, then CCLD ctags then I get a list of undefined symbols; _xmlDocGetRootElement, _xmlFree, and so on. /usr/lib has a 'libxml2.dylib' and a line in the config.log says:

checking for libxml-2.0 >= 2.7.7... yes

...although it's a symlink to libxml2.2.dylib.

Not sure what to do at this point short of removing the XML parser.

KazuakiM commented 6 years ago

Hi @tplunket , It is probably resolved by installing libxml2 with homebrew. However, I thought that this problem was strange in the past. I think that autoconf is misunderstanding.

By the way, will the result of the following command still be 2.2?

$ /usr/bin/xml2-config --version
KazuakiM commented 6 years ago

Hi @tplunket , I have an additional question.Which OS do you use? It may be dependent on the OS.

There were other modifications that seemed to be similar.

tplunket commented 6 years ago

@KazuakiM /usr/bin/xml2-config reports 2.9.2. /usr/local/bin/xml2-config reports 2.7.7 and that's the one that's found by which xml2-config. I honestly couldn't say where that came from.

KazuakiM commented 6 years ago

Hi @tplunket I update this project , add "--without-xml" options. So add options and try again?

smwyzi commented 5 years ago

if u don't need xml feature, just use: ./configure --prefix=/usr/local --disable-xml