学生教材网 >程序设计 > 开源项目 > 程序开发 > 浏览文章

fatal error: 'libxml/xpath.h' file not found - 姜家志

来源:网络编辑:佚名时间:2015-12-11人气:

最好的朋友抢我男友,云鼎彩票3878,将军在上下载

在MacOS上面安装readability-lxml的时候,遇到了一个问题

src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found
#include "libxml/xmlversion.h"
         ^
1 error generated.

问题的原因是我刚刚升级了Xcode 没有安装command line tools for Xcode

在Xcode内安装:

Xcode -> Preferences... -> Locations

使用命令行安装:

xcode-select --install

再次安装readability-lxml成功!

在OpenResty中需要避免全局变量的使用 - IResty

在代码中导入模块时应注意一些细节,推介使用如下格式:

openresty开发 test-nginx 使用文档 - IResty

如果缺少包的话,可以通过cpan装;例如装Test:More

热门推荐