linux 如何更改postgres路径以识别perl安装

kfgdxczn  于 2023-08-03  发布在  Linux
关注(0)|答案(1)|浏览(117)

在Linux(20.04)上安装Postgres后,我在运行时收到以下错误消息:

sudo -u postgres psql

字符串
消息错误:

Can't locate warnings.pm:   /usr/local/lib/x86_64-linux-gnu/perl/5.30.0/warnings.pm: Permissão negada at /usr/bin/psql line 19.
BEGIN failed--compilation aborted at /usr/bin/psql line 19.

hgb9j2n6

hgb9j2n61#

您可以尝试:

$ export PERL5LIB=/usr/share/perl/5.30:/etc/perl:/usr/lib/x86_64-linux-gnu/perl5/5.30:/usr/share/perl5:/usr/lib/x86_64-linux-gnu/perl/5.30:/usr/lib/x86_64-linux-gnu/perl-base

字符串

相关问题