安装postgresql后,普通用户执行psql报错:'''Can't locate strict.pm: /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/str
安装postgresql后,普通用户执行psql报错:
'''
Can't locate strict.pm: /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/strict.pm: Permission denied at /usr/bin/psql line 19.
BEGIN failed--compilation aborted at /usr/bin/psql line 19.
'''
虽然strict.pm在/usr/lib下而不是/usr/local/lib下,但是当perl加载模块遇到路径不可访问后,不会再继续搜索其它路径,而是直接抛出错误。检查发现是由于/usr/local目录权限设置成了700, 属主和属组被设置为了另一个用户。
更正/usr/local目录权限后正常执行。
--结束END--
本文标题: non-root用户执行psql的问题
本文链接: https://www.lsjlt.com/news/40125.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
2024-05-15
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0