简体   繁体   中英

Trying to get libxml++ installed on OS X 10.6

I am new to C++ and am trying to install the C++ bindings for libxml2.

After being at this for about four hours now, I feel like a joke is being played on me. I ran the configure script of lixml++ and it says I need packages libxml-2.0 >= 2.7.3 glibmm-2.4 >= 2.32.0

So I went to get glibmm2.4 and ran configure script. It says I need packages: sigc++-2.0 >= 2.2.10 glib-2.0 >= 2.34.0 gobject-2.0 >= 2.34.0 gmodule-2.0 >= 2.34.0)

So I went to get package sigc++ and ran the configure script and it says I need glib-2.6. I downloaded glib-2.6 and ran configure and it says I need libffi.

I think you get the idea.

I went through about four more versions of this and running into errors along the way. Now I am really close to giving up. I must be missing something.

While installing packages is thrilling, I don't really want to spend all day doing this just to simply use the libxml++ library.

Please tell me there is a better solution than chain upon chain of dependencies?

For libxml++ installation on mac, as per the documentation, you need to install libxml2 and glibmm2.4 . Refer to the libxml++ website .

  1. Install homebrew . If you don't have it already, refer to the homebrew's website .

  2. Run brew install libxml2 .

  3. Run brew install glibmm .
  4. Run brew info libxml++ .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM