How to compile correctly with gcc?

Поиск
Список
Период
Сортировка
От eddie w
Тема How to compile correctly with gcc?
Дата
Msg-id 19981119164348.10869.qmail@www0q.netaddress.usa.net
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Lincoln Spiteri
Дата:
Сообщение: Re: [GENERAL] connection problem with ecpg (SOLVED)
Следующее
От: "Ryan McHale"
Дата:
Сообщение: ...