原 PG使用rpm包在欧拉系统上安装报错undefined symbol u_strToLower_60 uloc_countAvailable_50
报错1 undefined symbol: u_strToLower_60
1 2 3 4 5 6 7 8 9 10 11 | [postgres@lhroepgall ~]$ /usr/pgsql-17/bin/postgres -V /usr/pgsql-17/bin/postgres: symbol lookup error: /usr/pgsql-17/bin/postgres: undefined symbol: u_strToLower_60 [postgres@lhroepgall ~]$ [postgres@lhroepgall ~]$ /usr/pgsql-17/bin/initdb -D /var/lib/pgsql/17/data -E UTF8 --locale=zh_CN.UTF-8 -U postgres --data-checksums /usr/pgsql-17/bin/postgres: symbol lookup error: /usr/pgsql-17/bin/postgres: undefined symbol: u_strToLower_60 no data was returned by command ""/usr/pgsql-17/bin/postgres" -V" command not found initdb: error: program "postgres" is needed by initdb but was not found in the same directory as "/usr/pgsql-17/bin/initdb" [postgres@lhroepgall ~]$ "/usr/pgsql-17/bin/postgres" -V /usr/pgsql-17/bin/postgres: symbol lookup error: /usr/pgsql-17/bin/postgres: undefined symbol: u_strToLower_60 |
解决:
1 2 3 4 5 6 7 8 9 10 11 12 | wget http://www.rpmfind.net/linux/almalinux/8.10/BaseOS/x86_64/os/Packages/libicu-60.3-2.el8_1.x86_64.rpm -- 或直接拷贝库文件 ln -sf /usr/lib64/libicui18n.so.60.3 /usr/lib64/libicui18n.so.60 ln -sf /usr/lib64/libicuuc.so.60.3 /usr/lib64/libicuuc.so.60 ln -sf /usr/lib64/libicudata.so.60.3 /usr/lib64/libicudata.so.60 /usr/pgsql-17/bin/postgres -V [postgres@lhroepgall ~]$ /usr/pgsql-17/bin/postgres -V postgres (PostgreSQL) 17.1 [postgres@lhroepgall ~]$ |