Install PostgreSQL 8.2.5

Gunawan jgun98.milis at gmail.com
Mon Oct 29 00:37:11 UTC 2007


Hi All,
I am having problem while installing Postgre...

List of files
joe at joe-desktop:~/temp/postgresql-8.2.5$ ls -all
total 1332
drwxrwxrwx  6 joe joe   4096 2007-10-26 22:53 .
drwxr-xr-x  5 joe joe   4096 2007-10-26 22:29 ..
-rw-r--r--  1 joe joe    445 2004-04-23 14:15 aclocal.m4
drwxrwxrwx  2 joe joe   4096 2007-10-26 22:29 config
-rw-r--r--  1 joe joe   6676 2007-10-26 22:53 config.log
-rwxr-xr-x  1 joe joe 704819 2007-09-14 16:18 configure
-rw-r--r--  1 joe joe  47564 2007-09-14 16:18 configure.in
drwxrwxrwx 31 joe joe   4096 2007-10-26 22:29 contrib
-rw-r--r--  1 joe joe   1192 2006-03-05 10:58 COPYRIGHT
drwxrwxrwx  4 joe joe   4096 2007-10-26 22:29 doc
-rw-r--r--  1 joe joe   3787 2006-08-18 15:58 GNUmakefile.in
-rw-r--r--  1 joe joe 491670 2007-09-16 01:19 HISTORY
-rw-r--r--  1 joe joe  47443 2007-09-16 01:19 INSTALL
-rw-r--r--  1 joe joe   1434 2006-08-18 15:58 Makefile
-rw-r--r--  1 joe joe   2062 2006-07-24 12:55 README
drwxrwxrwx 14 joe joe   4096 2007-10-26 22:29 src


Instruction in the INSTALL file
                                Short Version

./configure
gmake
su
gmake install
adduser postgres
mkdir /usr/local/pgsql/data
chown postgres /usr/local/pgsql/data
su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data >logfile 2>&1 &
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test



I tried to run ./configure but got this error

joe at joe-desktop:~/temp/postgresql-8.2.5$ ./configure
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... no
checking whether NLS is wanted... no
checking for default port number... 5432
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C 
compiler cannot
create executables
See `config.log' for more details.
joe at joe-desktop:~/temp/postgresql-8.2.5$


joe at joe-desktop:~/temp/postgresql-8.2.5$ gcc --version
gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

joe at joe-desktop:~/temp/postgresql-8.2.5$


joe at joe-desktop:~/temp/postgresql-8.2.5$ gmake
bash: gmake: command not found

joe at joe-desktop:~/temp/postgresql-8.2.5$ make
You need to run the 'configure' program first. See the file
'INSTALL' for installation instructions.
make: *** [all] Error 1

joe at joe-desktop:~/temp/postgresql-8.2.5$ make --version
GNU Make 3.81
Copyright (C) 2006  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for i486-pc-linux-gnu
joe at joe-desktop:~/temp/postgresql-8.2.5$

I can't complete postgresql installation.

TIA
Gun





More information about the ubuntu-users mailing list