OS X安装 [英] OS X Install

查看:65
本文介绍了OS X安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用来自

Entropy.ch的软件包在OS X 10.3上安装PostgreSQL。那里的安装说明,以及任何地方

否则我在网上看过它们,比如用一个短名称创建一个用户(使用

系统偏好设置面板) ; postgres的" ;.问题是,

这个用户已经存在于我的netinfo数据库/域中,所以我不能

要么创建一个具有相同短名称的新用户,要么使用此用户,

因为我不知道密码(我认为这是系统默认的

用户)。因此,我无法完成安装,因为我无法以用户postgres的形式运行以下命令。


/ usr / local / bin / initdb - D / usr / local / pgsql / data

/ usr / local / bin / pg_ctl -D / usr / local / pgsql / data -l postgres.log start


有没有其他人遇到过这个?我为此感到困惑...为什么

这个用户是否已经存在,为什么我不能在这个

安装中使用它?我应该创建一个不同的用户吗?


NM

-

Nathan Mealey

导演运营

Cycle-Smart,Inc。

PO方框1482

北安普顿,MA

01061-1482
na * ***@cycle-smart.com

(413)587-3133

(413)210-7984手机

(512)681-7043传真

I am trying to install PostgreSQL on OS X 10.3, using the package from
Entropy.ch. The installation instructions there, as well as anywhere
else I have seen them on the net, say to create a user (using the
System Preferences pane) with a shortname "postgres". The problem is,
this user already exists in my netinfo database/domain, and so I cannot
either create a new user with the same short name, or use this user,
because I do not know the password (I assume it is a system default
user). Thus, I am unable to complete the installation, because I
cannot run the following commands as user postgres.

/usr/local/bin/initdb -D /usr/local/pgsql/data

/usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l postgres.log start

Has anyone else encountered this before? I''m so confused by this...why
does this user already exist, and why can''t I make use of it for this
installation? Should I create a different user?

NM
--
Nathan Mealey
Director of Operations
Cycle-Smart, Inc.
P.O. Box 1482
Northampton, MA
01061-1482
na****@cycle-smart.com
(413) 587-3133
(413) 210-7984 Mobile
(512) 681-7043 Fax

推荐答案



我最近安装了PostGreSQL-7.4.5 OSX 10.3.5系统。我确实没有
,但是

有你遇到的问题。没有postgres用户

已经

在我的系统上创建。


1.这不像postgres只是滚滚而已。很难

想象另一个

的用户你的系统出于某种原因选择这个名字;)


2。如果postgres用户是在安装期间/期间创建的,那么

应该是一些

用于设置密码的资源。我不记得了,但是我想b / b
认为NetInfo使用

klein star" *"表示密码未设置 - 然后

允许你设置它

(希望......)


3.如果你是一个单独的用户系统,我会说可能你可以用b $ b删除postgres

用户并创建它以完成安装。 />

4.我仍然是PostGreSQL的新手,但是我会冒险猜测

那里没什么可以的

显式内在于用户名postgres那你不能创造一个新用户,这是
" postgresfoo"并继续使用

用户名安装说明。


G''luck!

Scott


2004年10月15日下午5:09,Nathan Mealey写道:

I recently installed PostGreSQL-7.4.5 on my OSX 10.3.5 system. I did
not, however
have the problem you''re encountering. There was no "postgres" user
already
created on my system.

1. It''s not like postgres just rolls off the tongue. It''s hard to
imagine another user of
your system choosing that name for some reason ;)

2. If the postgres user was created by/during your install, then there
should be some
recourse for setting its password. I don''t remember offhand, but I
think NetInfo uses
a klein star "*" to denote that the password is NOT set -- then
allowing you to set it
(hopefully ...)

3. If your is a single user system, I''d say that MAYBE you could
remove the postgres
user and create it fresh to complete the install.

4. I''m still very new to PostGreSQL, but I''d hazard to guess that
there''s nothing so
explicitly intrinsic to the username "postgres" that you couldn''t
create a new user,
"postgresfoo" and continue with the install instructions using that
username.

G''luck!
Scott

On Oct 15, 2004, at 5:09 PM, Nathan Mealey wrote:
我正在尝试在OS X 10.3上安装PostgreSQL,使用来自<的软件包br /> Entropy.ch。那里的安装说明,以及我在网上看过的任何地方,都说要创建一个用户(使用
系统偏好设置面板),并使用短名称postgres。问题是,
这个用户已经存在于我的netinfo数据库/域中,所以我不能创建一个具有相同短名称的新用户,或者使用这个
用户,因为我做不知道密码(我假设它是一个系统
默认用户)。因此,我无法完成安装,因为我无法以用户postgres的身份运行以下命令。

/ usr / local / bin / initdb -D / usr / local / pgsql /数据

/ usr / local / bin / pg_ctl -D / usr / local / pgsql / data -l postgres.log start

之前有没有其他人遇到过这个?我很困惑
这个...为什么这个用户已经存在,为什么我不能在这个安装中使用
它?我应该创建一个不同的用户吗?

NM
-
Nathan Mealey
运营总监
Cycle-Smart,Inc。
P.O.方框1482
北安普顿,MA
01061-1482
na **** @ cycle-smart。 com
(413)587-3133
(413)210-7984 Mobile
(512)681-7043传真
I am trying to install PostgreSQL on OS X 10.3, using the package from
Entropy.ch. The installation instructions there, as well as anywhere
else I have seen them on the net, say to create a user (using the
System Preferences pane) with a shortname "postgres". The problem is,
this user already exists in my netinfo database/domain, and so I
cannot either create a new user with the same short name, or use this
user, because I do not know the password (I assume it is a system
default user). Thus, I am unable to complete the installation,
because I cannot run the following commands as user postgres.

/usr/local/bin/initdb -D /usr/local/pgsql/data

/usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l postgres.log start

Has anyone else encountered this before? I''m so confused by
this...why does this user already exist, and why can''t I make use of
it for this installation? Should I create a different user?

NM
--
Nathan Mealey
Director of Operations
Cycle-Smart, Inc.
P.O. Box 1482
Northampton, MA
01061-1482
na****@cycle-smart.com
(413) 587-3133
(413) 210-7984 Mobile
(512) 681-7043 Fax






Nathan:


是和否。我的猜测是,postgres现在是Pather版本中包含的默认用户,你在安装之前无意间创建了一次用户(或者在安装过程中),或者Marc Liyanage(祝福他的灵魂)在安装过程中为你创建了它。在这三个中,我怀疑它是后者,因为虽然不是可以吸收的,但Marc通常会发出相当不错的,无bug的东西。


至于我自己,我在10.2下安装了PG一次,然后删除它,然后在10.3下再次安装它。我遇到了同样的问题。我当时认为这是我的错。现在我不太确定...


无论如何,要做的是删除用户帐户(如果存在)和NetInfo中的用户帐户。我不记得是否需要以root用户身份完成此操作。我不这么认为,但可能。下次重启。这在技术上可能不是必需的,但重启会涵盖大量的罪行。接下来要做的是使用postgres短名称创建一个名为PostgreSQL Administrator的帐户。既然你现在知道了密码,没问题。


这对我有用。祝你好运。


杰夫


Nathan Mealey< na **** @ cycle-smart.com>写道:

我试图在OS X 10.3上安装PostgreSQL,使用来自

Entropy.ch的软件包。那里的安装说明,以及任何地方

否则我在网上看过它们,比如用一个短名称创建一个用户(使用

系统偏好设置面板) ; postgres的" ;.问题是,

这个用户已经存在于我的netinfo数据库/域中,所以我不能

要么创建一个具有相同短名称的新用户,要么使用此用户,

因为我不知道密码(我认为这是系统默认的

用户)。因此,我无法完成安装,因为我无法以用户postgres的形式运行以下命令。


/ usr / local / bin / initdb - D / usr / local / pgsql / data

/ usr / local / bin / pg_ctl -D / usr / local / pgsql / data -l postgres.log start


有没有其他人遇到过这个?我为此感到困惑...为什么

这个用户是否已经存在,为什么我不能在这个

安装中使用它?我应该创建一个不同的用户吗?


NM

-

Nathan Mealey

导演运营

Cycle-Smart,Inc。

PO方框1482

北安普顿,MA

01061-1482
na * ***@cycle-smart.com

(413)587-3133

(413)210-7984手机

(512)681-7043传真


__________________________________________________

你是雅虎吗??

厌倦了垃圾邮件?雅虎邮件具有最好的垃圾邮件保护
http://mail.yahoo.com
Nathan:

Yes and no. My guess is that either postgres is now a default user included with the Pather version, you inadvertantly created the user once before (or during installation), or Marc Liyanage (bless his soul) created it for you during installation. Of the three, I doubt it is the latter because, though not infallable, Marc usually puts out pretty good, bug free stuff.

As for myself, I installed PG once under 10.2, then removed it and later, under 10.3 installed it again. I ran into this same problem. I thought at the time it was my fault. Now I am not so sure...

At any rate, the thing to do is to delete the user account both in User Accounts (if it exists) and in NetInfo. I cannot remember if this needs to be done as the root user. I don''t think so but it might. Next reboot. This may not be technically necessary but a reboot covers a multitude of sins. The next thing to do is create an account named PostgreSQL Administrator with the postgres short name. Since you now know the password, no problem.

This worked for me. Good luck.

Jeff

Nathan Mealey <na****@cycle-smart.com> wrote:
I am trying to install PostgreSQL on OS X 10.3, using the package from
Entropy.ch. The installation instructions there, as well as anywhere
else I have seen them on the net, say to create a user (using the
System Preferences pane) with a shortname "postgres". The problem is,
this user already exists in my netinfo database/domain, and so I cannot
either create a new user with the same short name, or use this user,
because I do not know the password (I assume it is a system default
user). Thus, I am unable to complete the installation, because I
cannot run the following commands as user postgres.

/usr/local/bin/initdb -D /usr/local/pgsql/data

/usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l postgres.log start

Has anyone else encountered this before? I''m so confused by this...why
does this user already exist, and why can''t I make use of it for this
installation? Should I create a different user?

NM
--
Nathan Mealey
Director of Operations
Cycle-Smart, Inc.
P.O. Box 1482
Northampton, MA
01061-1482
na****@cycle-smart.com
(413) 587-3133
(413) 210-7984 Mobile
(512) 681-7043 Fax

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




2004年10月15日晚上8:09,Nathan Mealey写道:

On Oct 15, 2004, at 8:09 PM, Nathan Mealey wrote:
我正在尝试使用
Entropy.ch中的软件包在OS X 10.3上安装PostgreSQL。那里的安装说明,以及我在网上看过的任何地方,都说要创建一个用户(使用
系统偏好设置面板),并使用短名称postgres。问题是,
这个用户已经存在于我的netinfo数据库/域中,所以我不能创建一个具有相同短名称的新用户,或者使用这个
用户,因为我做不知道密码(我假设它是一个系统
默认用户)。因此,我无法完成安装,因为我无法以用户postgres的身份运行以下命令。
I am trying to install PostgreSQL on OS X 10.3, using the package from
Entropy.ch. The installation instructions there, as well as anywhere
else I have seen them on the net, say to create a user (using the
System Preferences pane) with a shortname "postgres". The problem is,
this user already exists in my netinfo database/domain, and so I
cannot either create a new user with the same short name, or use this
user, because I do not know the password (I assume it is a system
default user). Thus, I am unable to complete the installation,
because I cannot run the following commands as user postgres.




我认为用户在10.3中默认。 Apple在其中一款产品中使用PostgreSQL

。为了使用postgres(以及将

postgres显示为登录菜单中的普通用户)我在b / b
中删除了NetInfo Manager中的用户。你还必须删除

postgres组。在这之后,我能够在系统偏好设置的帐户视图中创建一个postgres用户




最好,


John DeSoi,博士
http://pgedit.com/

PostgreSQL电动工具

---------------------------(广播结束)---------------------------

提示8:解释分析是你的朋友


这篇关于OS X安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆