linux下编译xlib库
时间:2011-03-27 来源:Roberts
zlib
./configure --share
make
make install
如果HPUX + --with-libs='-lcl'
libxml2: #假设当前路径为 ${XML_ROOT}
#./configure --prefix=/usr/local/libxml2
./configure --with-zlib=/usr/local --prefix=/usr/local
make
make install
libxslt:
./configure --prefix=/usr/local --with-libxml-prefix=/usr/local --with-libxml-include-prefix=/usr/local --with-libxml-libs-prefix=/usr/local --with-libs='-lcl'
make
make install
lxml .so:
在${XML_ROOT}路径下生成python目录
cd ${XML_ROOT}/python
python setup.py --build
python setup.py build --auto-rpath --with-xslt-config=/usr/local/bin/xslt-config --with-xml2-config=/usr/local/bin/xml2-config --with-libs='-lcl'
python setup.py install --auto-rpath --with-xslt-config=/usr/local/bin/xslt-config --with-xml2-config=/usr/local/bin/xml2-config --with-libs='-lcl'