简体   繁体   English

python_qpid_proton for mac 使用 amqps

[英]python_qpid_proton for mac using amqps

I'm trying to install python_qpid_proton on Mac OS X El Capitan and I'm having trouble getting it to find the SSL libraries when I actually make a connection.我正在尝试在 Mac OS X El Capitan 上安装 python_qpid_proton,但当我实际建立连接时却无法找到 SSL 库。

When trying to use the library, I get this error attempting to connect using amqps:尝试使用库时,尝试使用 amqps 连接时出现此错误:

proton.SSLUnavailable: amqps: SSL libraries not found

I've installed OpenSSL using the latest version of homebrew and have this in my.bashrc file:我已经使用最新版本的自制软件安装了 OpenSSL,并将其放在 my.bashrc 文件中:

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

I've also tried rebuilding python_qpid_proton using both pip and the setup.py file and also examined the output from the setup.py install run to see if there was any sort of warning or error and did not see any.我还尝试使用 pip 和 setup.py 文件重建 python_qpid_proton,还检查了 setup.py 安装运行的输出,看看是否有任何警告或错误,但没有看到任何警告或错误。

I had a similar issue.我有一个类似的问题。 Here's how I fixed it on my Mac OS Sierra.这是我在 Mac OS Sierra 上修复它的方法。 I guess you run into the same issue with El Capitan.我猜你遇到了与 El Capitan 相同的问题。 By running the install in verbose mode I recognised missing dependencies.通过以详细模式运行安装,我发现缺少依赖项。 The following actions fixed it on my end:以下操作修复了我的问题:

Uninstall python-qpid-proton:卸载 python-qpid-proton:

pip uninstall python-qpid-proton

Install missing dependencies (swig + pkg-config) via brew:通过 brew 安装缺少的依赖项(swig + pkg-config):

brew install swig
brew install pkg-config

Install python-qpid-proton and pip disable cache to force rebuild of lib:安装 python-qpid-proton 和 pip 禁用缓存以强制重建 lib:

export CFLAGS="-I/usr/local/opt/openssl/include"; pip install python-qpid-proton --verbose --no-cache-dir

In my case the solution was the following就我而言,解决方案如下

pip uninstall python-qpid-proton

then install required然后安装所需

brew install swig
brew install pkg-config

and the setup flags:和设置标志:

export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

and finally compile as stated before:最后如前所述进行编译:

export CFLAGS="-I/usr/local/opt/openssl/include"; pip install python-qpid-proton --verbose --no-cache-dir

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM