|
|
r: libxml/xmlversion.h: No such file or directory
- V% w5 q4 j; @9 s6 q7 c2 n% N6 M, j- K5 V* V- {3 n
安装yum install libxml2-devel.x86_64 L+ M! M7 b7 s( _7 v
: s; `9 K6 J: b q2 n
但是编译时错误为:: `0 v o0 d, U+ s3 A/ z
; ]( T0 c5 l4 S, k! _) {9 U* wfatal error: libxml/parser.h: No such file or directory
$ D9 U, Q& m9 e. x/ `- H$ ~! c
6 h' V2 R4 [! U) S #include <libxml/parser.h>' i- Q) b* z" w/ e3 q' u
8 C! ^- V3 _- g6 S在/usr 下查找
' ~& N- z, i# w/ o
* h1 W4 x# Y/ V* D1 c. C: J& q2 J5 o8 n[root@hk usr]# find . -name parser.h
8 A3 [, c5 \6 T, o) ^- b% \' i./src/kernels/2.6.32-696.el6.x86_64/include/linux/parser.h
f& i9 I9 m3 y- N7 }9 A2 X./include/libxml2/libxml/parser.h
+ c$ v$ g. ?) | D
* W, F) Z) V. I! o/ _. F6 W发现安装到了/usr/include/下了 5 W! ~, d- h0 V- ] }7 b
7 B) p, g0 G1 U1 p( C% j5 u
一般情况下都是查找 /usr/lib在这个下面的库, b4 Z1 w, W I: P
: W( q* I, S! g9 v所以在include下建一个软连接libxml
3 O* x- t6 r2 v, q" \9 W' n) e* n5 _' T% W
ln -s /usr/include/libxml2/libxml /usr/include/libxml$ N5 S9 m6 v2 |* Y3 P0 |2 v
* H/ e! x8 B. G) P& }4 f/ f
- R+ l K+ _5 u) t& U& z6 o |
|