Skip site navigation (1) Skip section navigation (2)

How to compile correctly with gcc?

From: eddie w <eddieChicago(at)usa(dot)net>
To: pgsql-general(at)postgreSQL(dot)org
Subject: How to compile correctly with gcc?
Date: 1998-11-19 10:43:48
Message-ID: 19981119164348.10869.qmail@www0q.netaddress.usa.net (view raw or flat)
Thread:
Lists: pgsql-general
Dear Postgre SQL group:
Wonder if you can give me some hint with PostgreSQL 6.4 installation.
I never install a database before. I downloaded 6.4 and followed the
instructions to install then:
1)it created "postgresql-v6.4 directory
2)"src" is under this directory
3)I moved them up to stay under /usr/src/pgsql
4)it couldn't recognize C compiler
Here's the message from the installation. Could anyone help?
Thanks.

Eddie

Platform: Sun Enterprise-450 with Solaris 2.5.1
Others on the system-
Apache 1.2.5, Oracle 7.3.3, AutoXfer 2.7.5

# pwd
/usr/src/pgsql/src

# ls -l configure
-rwxr-xr-x   1 postgres postgres  186752 Nov 18 17:33 configure

# ./configure
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.5.1
checking echo setting...
checking setting template to... solaris_sparc_gcc
checking setting USE_LOCALE... disabled
checking setting CYR_RECODE... disabled
checking setting MULTIBYTE... disabled
checking setting DEF_PGPORT... 5432
checking setting USE_TCL... disabled
checking setting USE_PERL... disabled
checking setting USE_ODBC... disabled
checking setting ASSERT CHECKING... disabled
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler 
cannot crea.

tnesdp1# ./configure --with-template=solaris_sparc_gcc
loading cache ./config.cache
checking host system type... sparc-sun-solaris2.5.1
checking echo setting...
checking setting template to... solaris_sparc_gcc
checking setting USE_LOCALE... disabled
checking setting CYR_RECODE... disabled
checking setting MULTIBYTE... disabled
checking setting DEF_PGPORT... 5432
checking setting USE_TCL... disabled
checking setting USE_PERL... disabled
checking setting USE_ODBC... disabled
checking setting ASSERT CHECKING... disabled
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler 
cannot crea.

#-rw-rw-rw-   1 root      182128 Nov  6 11:15 /usr/local/bin/gcc

____________________________________________________________________
Get free e-mail and a permanent address at http://www.netaddress.com/?N=1

pgsql-general by date

Next:From: Bryan WhiteDate: 1998-11-19 13:18:06
Subject: Re: [GENERAL] performance comparisons...
Previous:From: Matthew HixsonDate: 1998-11-19 09:20:11
Subject: performance comparisons...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group