本文介绍了Ubuntu Eclipse libxml2错误:fatal错误:libxml / xmlversion.h:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在我的eclipse项目中使用libxml2。我可以在命令行使用这个库
I want to use libxml2 in my eclipse project. I can use this library on command line by "
But I can't use on eclipse.I add C++ Build->Setting->GCC C Compiler->Includes
-I / usr / include / libxml2
并且我添加C ++ Build-> Setting-> GCC C ++ Linker->库
-lxml2
但是当我构建项目时,我通过
But When I build my project, I get an error via
推荐答案
这是因为libs不完整。您应该安装它们。
This is because libs are not complete. You should install them.
Here's one thread that might be helpful.
一个解决方案: p>
One solution:
sudo apt-get install libxml2-dev libxslt1-dev
对于Redhat / Centos / Fedora:
For Redhat/Centos/Fedora:
yum install libxml-devel
这篇关于Ubuntu Eclipse libxml2错误:fatal错误:libxml / xmlversion.h:没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!