在非管理员 Mac 用户帐户上安装 PostgreSQL
简单的问题在这里。
引用 PostgreSQL 入门指南:
PostgreSQL 可以由任何非特权用户安装;不需要超级用户(root)访问权限。
PostgreSQL安装过程说明:
./配置
gmake
苏
gmake安装
...
注意到那里的“su”了吗?它需要超级用户访问权限。我休息一下。如果没有它,安装就会失败。我需要能够在没有超级用户访问权限的情况下安装它,正如它所说的那样,我应该能够做到。
Simple question here.
Quote from the PostgreSQL Getting Started guide:
PostgreSQL can be installed by any unprivileged user; no superuser (root) access is required.
Instructions on the PostgreSQL Installation Procedure:
./configure
gmake
su
gmake install
...
Notice that 'su' in there? It requires superuser access. I rest my case. The install fails without it. I need to be able to install it without superuser access, as it says I'm supposed to be able to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试
./configure --help
。它应该有一个--prefix
选项来安装在不需要超级用户访问权限的地方,然后您就不需要su
。Try
./configure --help
. It should have a--prefix
option to install somewhere that doesn't require superuser access, and then you won't need thesu
.使用假根?但可能有一种更简单的方法,我想你已经用谷歌搜索过了?
Use fakeroot? But possibly there's a simpler approach, you've already googled for that, I guess?