-
Notifications
You must be signed in to change notification settings - Fork 95
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
can't seem to easily build on OS X #14
Comments
Readme is updated. Pls try again, Matt. Thanks |
I have the system libxml installed as well as the homebrew version. I tried to set |
Yes, thanks for the reminder. Neither the system nor the brew version supports pkg-config. And it creates even more issues to give the absolute path in the source code. You can use this repo: https://github.com/zhigangc/libxml2-2.7.8 This is 2.7.8 with a few minor changes: add pkg-config support and comment out some unnecessary checks. Or you can add pkg-config manually to your existing installation as follows: You should use the brew version of libxml2, and should NOT use the system version.
/usr/local/bin/pkg-config
/usr/local/Cellar/libxml2/2.7.8 You need to create a dir /usr/local/Cellar/libxml2/2.7.8/lib/pkgconfig
prefix=/usr/local/Cellar/libxml2/2.7.8 Name: libXML Note if your installation is not at /usr/local/Cellar/libxml2/2.7.8, you need to change the prefix properly.
sudo ln -s /usr/local/Cellar/libxml2/2.7.8/lib/pkgconfig/libxml-2.0.pc /usr/local/lib/pkgconfig/libxml-2.0.pc
pkg-config --libs libxml-2.0 You should have something like -L/usr/local/Cellar/libxml2/2.7.8/lib -lxml2 |
Homebrew's libxml-2.0 2.8.0 has pkgconfig support. For anyone coming here for answers, you only need to do the final steps:
I got this as result: -I/usr/local/Cellar/libxml2/2.8.0/include/libxml2 |
This also occurs on Windows |
Did the steps outlined above help fix the issues in windows? |
No, it remained unfixed :( |
@acron0 could you open a new github issue describing the trouble you're having when building on windows? |
This issue happened on my linux mint, too. After installing libxml2-dev, issue solved. |
As @vampirewalk said installing libxml2-dev solves the issue: $ sudo apt-get install libxml2-dev on ubuntu 12.04 |
Yup, I'll make note of it in the readme. |
Ok, after really long suffer, and trying everything on the internet I finally successfully compiled everything on OS X 10.9 Mavericks this way
AHHHHH! sorry, I have been trying this the whole day! Thanks for everyone who shared their hints. |
@allochi 's tip solved the problem, thx! |
@allochi 's process doesn't work for me in Mavericks 10.9.5, I get the following errors:
|
fyi - I had this problem to and needed to brew install pkg-config |
The README is obviously outdated since the makefile is gone, but I still didn't manage to build/install on Mountain Lion:
https://gist.github.com/4383203
I installed libxml2 from homebrew, updated the xpath import statement to reflect the path of the brew files.
Tried to build and go some error.
An updated readme would be very appreciated since this lib seems very useful.
Thanks,
The text was updated successfully, but these errors were encountered: