Python's easy_install and custom header/library location

╄→尐↘猪︶ㄣ 提交于 2019-12-04 20:13:11

LD_LIBRARY_PATH is used to find a shared library at runtime (when an executable is run), not during linking.

To build the extension, unpack the tarball and run:

python setup.py build_ext -I/opt/adns/include -L/opt/adns/lib -R/opt/adns/lib

To install:

python setup.py install

You could specify build_ext options in setup.cfg:

[build_ext]
include_dirs=/opt/adns/include
library_dirs=/opt/adns/lib
rpath=/opt/adns/lib

in this case you could run easy_install directly.

Pradeeshnarayan

Please try like this

INCLUDE_PATH=/opt/adns/include easy_install adns-python-1.2.1.tar.gz

if it is not working please try with CPLUS_INCLUDE_PATH or C_INCLUDE_PATH

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!