zoukankan      html  css  js  c++  java
  • python3消费rocketmq

    安装依赖库

    wget https://github.com/apache/rocketmq-client-cpp/releases/download/2.0.0/rocketmq-client-cpp-2.0.0-centos7.x86_64.rpm
    sudo rpm -ivh rocketmq-client-cpp-2.0.0-centos7.x86_64.rpm
    pip install rocketmq-client-python
    
    

    报错

    Traceback (most recent call last):
      File "rocket_client.py", line 7, in <module>
        from rocketmq.client import PushConsumer, ConsumeStatus
      File "/usr/local/lib/python3.8/site-packages/rocketmq/client.py", line 24, in <module>
        from .ffi import (
      File "/usr/local/lib/python3.8/site-packages/rocketmq/ffi.py", line 42, in <module>
        dll = ctypes.cdll.LoadLibrary(_DYLIB_PATH)
      File "/usr/local/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary
        return self._dlltype(name)
      File "/usr/local/lib/python3.8/ctypes/__init__.py", line 373, in __init__
        self._handle = _dlopen(self._name, mode)
    OSError: librocketmq.so: cannot open shared object file: No such file or directory
    
    
    # 解决
    ln -s /usr/local/lib/librocketmq.so /usr/lib
    sudo ldconfig 
  • 相关阅读:
    angular2 + bootstrap +jquery 实例
    How to create a angular2 project process
    icheck 插件
    select2 下面的搜索框 无法输入问题
    datatabels buttons
    datatables 跳转到指定页
    text-overflow:ellipse;
    box-shadow
    CSS强制性换行
    mybatis与hibernate的不同
  • 原文地址:https://www.cnblogs.com/root0/p/15507975.html
Copyright © 2011-2022 走看看