2014-09-20 88 views
2

试图以这种错误安装彭博Python API中blpapi3.5.5结果:彭博Python API中blpapi3.5.5安装错误失踪blpapi_types.h

blpapi/internals_wrap.cxx:3110:26: fatal error: blpapi_types.h: No such file or directory compilation terminated.

完全安装日志:

[email protected]:/home/najeeb/Desktop/pyqt1/blpapi-3.5.5# python setup.py install 

running install 
running build 
running build_py 
running build_ext 
building 'blpapi._internals' extension 
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes - fPIC -I/home/najeeb/Desktop/pyqt1/blpapi-3.5.5/include -I/usr/include/python2.7 -c blpapi/internals_wrap.cxx -o build/temp.linux-i686-2.7/blpapi/internals_wrap.o 
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for Ada/C/ObjC but not for C++ [enabled by default] 
blpapi/internals_wrap.cxx:3110:26: fatal error: blpapi_types.h: No such file or directory 
compilation terminated. 
error: command 'gcc' failed with exit status 1 

哪有我解决这个问题?

+0

[当我试图安装的readline-6.2 gcc的错误(可能重复http://stackoverflow.com/questions/22166277/ gcc-error-when-im-trying-to-install-readline-6-2) – 2015-01-23 15:39:14

+0

如果你是MacOS用户。你可以试试这个解决方案:[Link。](http://stackoverflow.com/a/40393577/3755348) – 2017-05-01 08:40:14

回答

0

如果您是MacOS用户。尝试查看解决方案:Link

我想你忘了加上波纹管行:

# set environment variable 
export BLPAPI_ROOT=/some/directory/blpapi_cpp_3.8.1.1/ 
export DYLD_LIBRARY_PATH=/Users/sampathkumarm/blpapi_cpp_3.8.1.1/Darwin/