Install PostgreSQL 8.2.5

Benjamin Kircher benjamin.kircher at gmail.com
Mon Oct 29 07:18:12 UTC 2007


On 10/29/07, Gunawan <jgun98.milis at gmail.com> wrote:
>
>
> ----- Original Message -----
> From: "ML" <ml at seven.sys.com.mx>
> To: "Ubuntu user technical support,not for general discussions"
> <ubuntu-users at lists.ubuntu.com>
> Sent: Monday, October 29, 2007 7:50 AM
> Subject: Re: Install PostgreSQL 8.2.5
>
>
> >> 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
> >>
> >>
> >> --
> >> ubuntu-users mailing list
> >> ubuntu-users at lists.ubuntu.com
> >> Modify settings or unsubscribe at:
> >> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >>
> >
> >
> > sudo apt-get install build-essential
> >



Hi,


May I know what is it for?


It installs a list of packages which are considered essential for building,
compiling packages. Use

# aptitude show package-name

for a short description of any package. There are a lot of auxiliary tools
and build helper available for what you are doing. On Google Video is a Talk
from Jonathan Oxer, which may gives you a short overview of building
software and packages on Ubuntu/Debian.

http://video.google.com/videoplay?docid=-6726522426109060914 [Google Video]

Regards,
Benjamin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071029/ad0012d7/attachment.html>


More information about the ubuntu-users mailing list