今天在freebsd里面build一个“hadoop-gpl-compressi…

今天在freebsd里面build一个“hadoop-gpl-compression”,里面依赖的lzo总是有问题。提示:

configure: error: lzo headers were not found...

问题是我已经用ports装了lzo和lzo2(实际上装lzo2就可以了)。后来经过反复尝试,这样可以编译了:

env JAVA_HOME=/usr/local/diablo-jdk1.6.0 C_INCLUDE_PATH=/usr/local/include LIBRARY_PATH=/usr/local/lib ant clean compile-native tar

这样Hbase就可以开启LZO压缩了。