【发布时间】:2014-10-08 12:36:05
【问题描述】:
尝试\i create_db.sql psql 时抛出错误:
psql:create_db.sql:123: ERROR: could not load library
"/usr/lib64/pgsql/plpgsql.so": /lib64/libc.so.6: version
`GLIBC_2.14' not found (required by /usr/lib64/pgsql/plpgsql.so)
create_db.sql 的第 123 行是文件的最后一行,位于函数定义的末尾:
$$ language plpgsql;
东西的版本:
$ psql --version
psql (PostgreSQL) 9.2.7
$ /lib64/libc.so.6 --version
GNU C Library (GNU libc) stable release version 2.17, by Roland McGrath et al.
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.8.2 20131212 (Red Hat 4.8.2-7).
Compiled on a Linux 3.2.5 system on 2014-06-09.
Available extensions:
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
RT using linux kernel aio
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
我需要 glibc 完全是 2.14 版还是 2.17 版也可以工作?
【问题讨论】:
-
发行版和版本到底是什么 - 什么 AMI?更重要的是,您是如何准确地安装 PostgreSQL 的?
-
...?好吧?您发布了一个问题,需要帮助吗?
-
嗨@CraigRinger,问这个问题两年后,我遇到了完全相同的问题。我正在运行 Amazon Linux AMI 版本 2012.03、postgres 9.1.5 和 glibc 2.17。我会为这个问题开悬赏。
标签: postgresql amazon-ec2 glibc psql libc