설치과정 입니다..
--------------------------------------------------------------------------------
$ gmake all
.
.
.
tab-complete.c: In function `initialize_readline':
tab-complete.c:93: warning: assignment from incompatible pointer type
tab-complete.c: In function `psql_completion':
tab-complete.c:251: warning: implicit declaration of function `completion_matches'
tab-complete.c:251: warning: assignment makes pointer from integer without a cast
tab-complete.c:255: warning: assignment makes pointer from integer without a cast
tab-complete.c:260: warning: assignment makes pointer from integer without a cast
tab-complete.c:268: warning: assignment makes pointer from integer without a cast
tab-complete.c:275: warning: assignment makes pointer from integer without a cast
tab-complete.c:280: warning: assignment makes pointer from integer without a cast
tab-complete.c:285: warning: assignment makes pointer from integer without a cast
tab-complete.c:288: warning: assignment makes pointer from integer without a cast
tab-complete.c:304: warning: assignment makes pointer from integer without a cast
tab-complete.c:316: warning: assignment makes pointer from integer without a cast
tab-complete.c:324: warning: assignment makes pointer from integer without a cast
tab-complete.c:330: warning: assignment makes pointer from integer without a cast
tab-complete.c:334: warning: assignment makes pointer from integer without a cast
tab-complete.c:337: warning: assignment makes pointer from integer without a cast
tab-complete.c:344: warning: assignment makes pointer from integer without a cast
tab-complete.c:347: warning: assignment makes pointer from integer without a cast
tab-complete.c:353: warning: assignment makes pointer from integer without a cast
tab-complete.c:359: warning: assignment makes pointer from integer without a cast
tab-complete.c:364: warning: assignment makes pointer from integer without a cast
tab-complete.c:372: warning: assignment makes pointer from integer without a cast
tab-complete.c:378: warning: assignment makes pointer from integer without a cast
tab-complete.c:383: warning: assignment makes pointer from integer without a cast
tab-complete.c:388: warning: assignment makes pointer from integer without a cast
tab-complete.c:396: warning: assignment makes pointer from integer without a cast
tab-complete.c:401: warning: assignment makes pointer from integer without a cast
tab-complete.c:413: warning: assignment makes pointer from integer without a cast
tab-complete.c:416: warning: assignment makes pointer from integer without a cast
tab-complete.c:419: warning: assignment makes pointer from integer without a cast
tab-complete.c:429: warning: assignment makes pointer from integer without a cast
tab-complete.c:437: warning: assignment makes pointer from integer without a cast
tab-complete.c:444: warning: assignment makes pointer from integer without a cast
tab-complete.c:455: warning: assignment makes pointer from integer without a cast
tab-complete.c:464: warning: assignment makes pointer from integer without a cast
tab-complete.c:468: warning: assignment makes pointer from integer without a cast
tab-complete.c:476: warning: assignment makes pointer from integer without a cast
tab-complete.c:479: warning: assignment makes pointer from integer without a cast
tab-complete.c:482: warning: assignment makes pointer from integer without a cast
tab-complete.c:492: warning: assignment makes pointer from integer without a cast
tab-complete.c:495: warning: assignment makes pointer from integer without a cast
tab-complete.c:501: warning: assignment makes pointer from integer without a cast
tab-complete.c:505: warning: assignment makes pointer from integer without a cast
tab-complete.c:510: warning: assignment makes pointer from integer without a cast
tab-complete.c:521: warning: assignment makes pointer from integer without a cast
tab-complete.c:524: warning: assignment makes pointer from integer without a cast
tab-complete.c:528: warning: assignment makes pointer from integer without a cast
tab-complete.c:536: warning: assignment makes pointer from integer without a cast
tab-complete.c:542: warning: assignment makes pointer from integer without a cast
tab-complete.c:546: warning: assignment makes pointer from integer without a cast
tab-complete.c:555: warning: assignment makes pointer from integer without a cast
tab-complete.c:561: warning: assignment makes pointer from integer without a cast
tab-complete.c:567: warning: assignment makes pointer from integer without a cast
tab-complete.c:574: warning: assignment makes pointer from integer without a cast
tab-complete.c:577: warning: assignment makes pointer from integer without a cast
tab-complete.c:585: warning: assignment makes pointer from integer without a cast
tab-complete.c:589: warning: assignment makes pointer from integer without a cast
tab-complete.c:591: warning: assignment makes pointer from integer without a cast
tab-complete.c:596: warning: assignment makes pointer from integer without a cast
tab-complete.c:601: warning: assignment makes pointer from integer without a cast
tab-complete.c:603: warning: assignment makes pointer from integer without a cast
tab-complete.c:605: warning: assignment makes pointer from integer without a cast
tab-complete.c:612: warning: assignment makes pointer from integer without a cast
tab-complete.c:623: `filename_completion_function' undeclared (first use in this function)
tab-complete.c:623: (Each undeclared identifier is reported only once
tab-complete.c:623: for each function it appears in.)
tab-complete.c:623: warning: assignment makes pointer from integer without a cast
tab-complete.c:648: warning: assignment makes pointer from integer without a cast
tab-complete.c:662: warning: assignment makes pointer from integer without a cast
gmake[2]: *** [tab-complete.o] Error 1
.
.
.
Thank you for choosing PostgreSQL, the most advanced open source database
engine.
-----------------------------------------------------------------------------------
[root@i-on src]# vi /etc/profile
.
.
.
PATH=$PATH:/usr/local/pgsql/bin
# this tells the shell where to look for applications
MANPATH=$MANPATH:/usr/local/pgsql/man
# this tells the shell where to look for those handy documents
PGLIB=/usr/local/pgsql/lib
# this tells the shell and Postgres where to look for shared libs
PGDATA=/usr/local/pgsql/data
# this is the default directory where data is stored
export PATH MANPATH PGLIB PGDATA
# this tells the shell to pay attention to all the changes you have made.
----------------------------------------------------------------------------------
[root@i-on src]# su postgres
[postgres@i-on src]$ initdb
This database system will be initialized with username "postgres".
This user will own all the data files and must also own the server process.
Creating database system directory /usr/local/pgsql/data
Creating database system directory /usr/local/pgsql/data/base
Creating database XLOG directory /usr/local/pgsql/data/pg_xlog
Creating template database in /usr/local/pgsql/data/base/template1
Creating global relations in /usr/local/pgsql/data/base
Adding template1 database to pg_database
Creating view pg_user.
Creating view pg_rules.
Creating view pg_views.
Creating view pg_tables.
Creating view pg_indexes.
Loading pg_description.
Vacuuming database.
Success. You can now start the database server using:
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
or
/usr/local/pgsql/bin/pg_ctl -D /usr/local/pgsql/data start
-------------------------------------------------------------------------------------
[postgres@i-on src]$ postmaster -i &
[1] 12411
[postgres@i-on src]$ DEBUG: Data Base System is starting up at Tue Dec 18 16:37:52 2001
DEBUG: Data Base System was shut down at Tue Dec 18 16:37:38 2001
DEBUG: Data Base System is in production state at Tue Dec 18 16:37:52 2001
--------------------------------------------------------------------------------------
[root@i-on src]# su postgres
[postgres@i-on src]$ 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 src]$ psql
bash: psql: command not found
[postgres@i-on src]$
[root@i-on src]# find / -name psql
/usr/src/pgsql/postgresql-7.0/src/bin/psql
[root@i-on src]# cd /usr/src/pgsql/postgresql-7.0/src/bin/psql
[root@i-on psql]# ls
command.c common.o describe.c help.o large_obj.h Makefile prompt.c startup.c tab-complete.c win32.mak
command.h copy.c describe.h input.c large_obj.o Makefile.in prompt.h startup.o tab-complete.h
command.o copy.h describe.o input.h mainloop.c print.c prompt.o stringutils.c variables.c
common.c copy.o help.c input.o mainloop.h print.h settings.h stringutils.h variables.h
common.h create_help.pl help.h large_obj.c mainloop.o print.o sql_help.h stringutils.o variables.o
[root@i-on psql]#
=====================================================================================
아.. 어찌된영문인지 모르겠네요..
다시 깔아야 되는건가요?
|