1. librdkafka无法编译安装报错c系统基础环境不全重新安装了:libstdc-7.3.0-20190804.35.p02.ky10.aarch64.rpm libstdc-devel-7.3.0-20190804.35.p02.ky10.aarch64.rpm gcc-c-7.3.0-20190804.35.p02.ky10.aarch64.rpm或者 yum安装 gcc-c编译成功。2. librdkafka明明编译成功了但是python中引入confluents_kafka 依然报 ImportError: librdkafka.so.1: cannot open shared object file: No such file or directory执行的安装命令是./configure make make install 这样默认的安装路径是/usr/local/lib下,所以在linux的默认共享路径/lib和/usr/lib下找不到。因此添加的library如果不再/lib和/usr/lib里的话就需要将/usr/local/lib添加到library所在的路径然后重新调用ldconfig命令即可。echo /usr/local/lib /etc/ld.so.conf ldconfig3. yisacommon安装时报错 pgsql相关问题Error: pg_config executable not found. Please add the directory containing pg_config to the PATH or specify the full executable path with the option: python setup.py build_ext ...psycopg2安装时报错 缺少系统依赖重新安装 postgresql-10.5.19.p01.ky10.aarch64.rpm postgresql-devel-10.5.19.p01.ky10.aarch64.rpm python3-devel-3.7.9-6.ky10.aarch64.rpm4. 执行ldconfig提示 /usr/lib64/libllvm-7.so is not a symbolic link 警告因为libllvm-7.so正常情况下应该是一个符号链接,而不是实体文集件,修改其为符号链接即可ln -s /usr/lib64/libffi.so.7.1.0 /usr/lib64/libffi.so.75. 发版带的message_resource安装前切记把python3.10的安装去掉手动安装python3.10 不要覆盖掉系统自带的python3原因发版的python3.10 缺少系统必要的依赖会导致firewall-cmd 和 yum 等命令失效6. python3.10 调用 金仓数据库import ksycopg2可以从金仓部署包中的Interface中找对应的依赖包解压后放到python3.10安装目录下的site-packages下。建议使用pgsql的 psycopg2原因使用RealDictCursor能返回字典格式[{key:value},...]。金仓自带的 ksycopg2 中的RealDictCursor是[(key,value),...] 格式7. python2.7 下 安装librdkafka 报错 sasl/sasl.h: No such file or directoryyum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-lib8. python2.7下引入ksycopg2 报错 ImportError: libkci.so.5: cannot open shared object file: No such file or directorylibkci.so.5库未加载如果是本机可以修改/etc/ld.so.conf 配置文件。将人大金仓安装目录下的Server/lib 添加到ld.so.conf中再执行ldconfig。如果不是本机那么可以将Server/lib下的libkci.so.5.12导入到服务器/usr/local/lib下并将/usr/local/lib目录添加到ld.so.conf 执行ldconfig9. python3.10下的confluent_kafka可能有问题 未解决。可能是python环境混乱或者confluent_kafka版本问题导致生产数据时报错 PY_SSIZE_T_CLEAN will be required for # formats10. 金仓数据表导入问题mysql 表导入到 金仓对于自增字段问题1. 金仓中需要先创建自增序列create sequence id_seq ;2. 给表的主键id指定序列名称alter table table alter column id set default nextval(id_seq);