database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 3744 게시물 읽기
No. 3744
createuser 에러
작성자
김병주(kbjsky)
작성일
2001-12-17 21:16
조회수
1,947

안녕하십니까?

postgre설치에 문제가 있는것일까요?

 

설치문서는 http://database.sarang.net/?inc=read&aid=3577&criteria=pgsql&subcrit=tutorials&record_idx=2&currpg=0

정재익님의 문서를 따라 설치하였습니다...

 

//========================에러===========================

[postgres@i-on postgres]$ pg_ctl start

The program psql needed by pg_ctl could not be found. It was

expected at:

/usr/local/pgsql/bin/psql

If this is not the correct directory, please start pg_ctl

with a full search path. Otherwise make sure that the program

was installed successfully.

//===================================================

 

//==============에러 메시지==========================

[postgres@i-on postgres]$ createuser eztool

Shall the new user be allowed to create databases? (y/n) y

Shall the new user be allowed to create more new users? (y/n) y

/usr/local/pgsql/bin/createuser: /usr/local/pgsql/bin/psql: No such file or directory

createuser: creation of user "eztool" failed

[postgres@i-on postgres]$

//===================================================

 

그리고 psql이란 실행파일이 없다고 나옴니다..

 

고수님들의 많은 관심 부탁합니다..

이 글에 대한 댓글이 총 6건 있습니다.

/usr/local/pgsql/bin/psql 이 없는지 확인해 보시기 바랍니다. 정말 있는지 없는지... -.-;

정재익(advance)님이 2001-12-18 09:55에 작성한 댓글입니다.

넹... 없는데요...

없을경우는 어떻게 하지요?

 

지금 다시 다른 버젼 깔았거든요..

그랬는데 거기도 없어영...

외그러지...

 

===========================

[root@i-on bin]# find / -name psql

/usr/local/src/postgresql-7.0.2/src/bin/psql

/usr/local/pgsql/src/bin/psql

[root@i-on bin]# cd /usr/local/pgsql/src/bin/psql

[root@i-on psql]# ls

command.c common.h create_help.pl help.c input.h mainloop.c Makefile.in prompt.c sql_help.h stringutils.h variables.c

command.h copy.c describe.c help.h large_obj.c mainloop.h print.c prompt.h startup.c tab-complete.c variables.h

common.c copy.h describe.h input.c large_obj.h Makefile print.h settings.h stringutils.c tab-complete.h win32.mak

[root@i-on psql]# cd /usr/local/pgsql/src/bin/psql

[root@i-on psql]# ls

command.c common.h create_help.pl help.c input.h mainloop.c Makefile.in prompt.c sql_help.h stringutils.h variables.c

command.h copy.c describe.c help.h large_obj.c mainloop.h print.c prompt.h startup.c tab-complete.c variables.h

common.c copy.h describe.h input.c large_obj.h Makefile print.h settings.h stringutils.c tab-complete.h win32.mak

[root@i-on psql]#

============================================

이럴땐 어찌하면 되지요?

설치는 잘됬는데.. 에러두 없구.. ㅡㅡ;

 

뭘 더 깔아야 되나요?

 

가르쳐 주세요 제발~~~

오늘이 벌써 삼일 밤 셌어요 ^^

핼프미~~~

김병주님이 2001-12-18 12:00에 작성한 댓글입니다.

이상하군요. 마지막에 make install 을 안해 준것 아닌가요 -.-;

 

제대로 설치가 되지 않은 것입니다. 귀찮지만 작업한 내용을 처음 소스를 뭘 다운로드 받아서 부터... 시작하여 자세히 적어 주시면 보고 잘못된 점을 지적해 드리겠습니다.

정재익(advance)님이 2001-12-18 13:14에 작성한 댓글입니다.

설치문서는http://insys.cau.ac.kr/~dog/doc/postgres-install.txt

를 따라 했는데..

도중에 ...

 

su postgres

 

vi .profile ----> # .postgres profile의

예 / ?

이부분설정에서... su - postgres해서 들어갔더니..

.bash_profile파일이 안나와서..

root 권한으로

vi /etc/profile 파일을 아래와 같이 고친다음에...

 

========================================== PATH=/usr/local/pgsql/bin:/usr/local/bin:

MANPATH=$MANPATH:/usr/local/pgsql/man

PGLIB=/usr/local/pgsql/lib

PGDATA=/usr/local/pgsql/data

USERNAME="postgres"

export PATH TERM USERNAME MANPATH PGLIB PGDATA

===============================================

 

initdb -E EUC_KR ----> # 'initdb -?'

 

위의 명령이 안되서

initdb [enter]

하였습니다..

그리구

postmaster -i -S -D /usr/local/pgsql/data

하구...

 

그런데 지금 아예..

vi

ls

ll

등등의 명령어가 안나옴니다..

==================================

[root@i-on root]# su - postgres

bash: su: command not found

==================================

 

아 정말 뭐가뭔지 모르겠네요..

 

자꾸만 내머리가 이상해 지는것 같아요

 

이러다가 시스템 날려먹구 옷벋어야 될지도..

김병주(kbjsky)님이 2001-12-18 13:52에 작성한 댓글입니다.

[root@i-on root]# su - postgres

bash: su: command not found

[root@i-on root]# passwd postgres

bash: passwd: command not found

======================================

 

이거 완젼히 먹통인것 같은데...

 

다시 쉘을 살릴수가 있을까요?

 

부탁드립니다..

김병주(kbjsky)님이 2001-12-18 13:55에 작성한 댓글입니다.

요약을 하면 다음과 같군요.

 

postgres 계정으로 createuser 스크립트 진행은 되는데 막판에 psql 이라는 명령어가 없다고 하면서 설치가 되지 않는다.

 

그래서 찾아 보았더니 /usr/local/pgsql/bin 에는 아무런 프로그램도 설치되어 있지 않더라.

 

다시 http://insys.cau.ac.kr/~dog/doc/postgres-install.txt 문서에 따라 설치를 했다.

 

그런데 이번에는 ls; vi; ll; 등등 기타 명령어가 아예 안먹힌다.

 

현재 상황은 PostgreSQL 은 제대로 설치가 된 것 같습니다. 단지 PATH 환경 변수 설정이 제대로 되지 않은 것입니다.

 

root 권한으로 ~postgres/.bashrc 파일에 PATH 환경 변수를 설정해 주시기 바랍니다.

 

export PATH=/usr/local/pgsql/bin:/usr/bin:/bin:/sbin:/usr/sbin:/usr/local/bin:$PATH

 

아마도 제대로 동작할 것 같군요.

정재익(advance)님이 2001-12-21 09:11에 작성한 댓글입니다.
[Top]
No.
제목
작성자
작성일
조회
3749postgres7.0 설치에러... [1]
김병주
2001-12-18
1485
3746postgres 에서 수학함수에 대한 질문.
궁금녀
2001-12-18
1394
3747┕>Re: postgres 에서 수학함수에 대한 질문.
김종정
2001-12-18 12:46:24
1567
3745[질문]WORK,TRANSACTION
김철환
2001-12-18
1321
3748┕>Re: [질문]WORK,TRANSACTION
정재익
2001-12-18 13:16:29
1431
3744createuser 에러 [6]
김병주
2001-12-17
1947
3742APM설치, 사용도중에 Pgsql 설치하면... [1]
mong2
2001-12-17
1531
3741트리쿼리 [1]
써니
2001-12-17
1627
3738[왕왕초보]테이블에서
김영진
2001-12-15
1292
3739┕>Re: [왕왕초보]테이블에서
정재익
2001-12-15 20:15:58
1380
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.018초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다