Обсуждение: configure: error: no acceptable C compiler found in $PATH

Поиск
Список
Период
Сортировка

configure: error: no acceptable C compiler found in $PATH

От
naveen kumar
Дата:
Hello All,

Im stuck with below error while installing postgresql-9.3.9.

PostgreSQL version: 9.3.9

Operating system:  Ubuntu 12.04.5

Description: configure: error: no acceptable C compiler found in $PATH 

Details :root@nkumar: /usr/local/src/postgresql-9.3.9# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for gcc... no
checking for cc... no
configure: error: in `/usr/local/src/postgresql-9.3.9':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

gcc is already installed, But still getting error. Can any one please help me.

root@nkumar:/usr/local/src/postgresql-9.3.9# dpkg -l|grep gcc

ii  gcc-4.6-base                     4.6.3-1ubuntu5                      GCC, the GNU Compiler Collection (base package)
ii  libgcc1                          1:4.6.3-1ubuntu5                    GCC support library



Thanks & Regards,
M Naveen Kuamr,
PostgreSQL Database Administrator, 
Mobile Number: +91 7755929449. 

Re: configure: error: no acceptable C compiler found in $PATH

От
John Scalia
Дата:
Ummm.... Is gcc in your path? Sounds fairly easy to fix.
--
Jay

On Wed, Jun 24, 2015 at 9:34 AM, naveen kumar <mnaveendba2@gmail.com> wrote:
Hello All,

Im stuck with below error while installing postgresql-9.3.9.

PostgreSQL version: 9.3.9

Operating system:  Ubuntu 12.04.5

Description: configure: error: no acceptable C compiler found in $PATH 

Details :root@nkumar: /usr/local/src/postgresql-9.3.9# ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking which template to use... linux
checking whether to build with 64-bit integer date/time support... yes
checking whether NLS is wanted... no
checking for default port number... 5432
checking for block size... 8kB
checking for segment size... 1GB
checking for WAL block size... 8kB
checking for WAL segment size... 16MB
checking for gcc... no
checking for cc... no
configure: error: in `/usr/local/src/postgresql-9.3.9':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

gcc is already installed, But still getting error. Can any one please help me.

root@nkumar:/usr/local/src/postgresql-9.3.9# dpkg -l|grep gcc

ii  gcc-4.6-base                     4.6.3-1ubuntu5                      GCC, the GNU Compiler Collection (base package)
ii  libgcc1                          1:4.6.3-1ubuntu5                    GCC support library



Thanks & Regards,
M Naveen Kuamr,
PostgreSQL Database Administrator, 
Mobile Number: +91 7755929449

Re: configure: error: no acceptable C compiler found in $PATH

От
Tom Lane
Дата:
John Scalia <jayknowsunix@gmail.com> writes:
> Ummm.... Is gcc in your path? Sounds fairly easy to fix.

Also, look in config.log as suggested.  The actual error messages will
be in there.

            regards, tom lane


Re: configure: error: no acceptable C compiler found in $PATH

От
"Peter J. Holzer"
Дата:
On 2015-06-24 22:04:48 +0530, naveen kumar wrote:
> Im stuck with below error while installing postgresql-9.3.9.
>
> PostgreSQL version: 9.3.9
>
> Operating system:  Ubuntu 12.04.5

Is there a reason why you compile postgresql from source and don't use
the version which comes with Ubuntu?

> Description: configure: error: no acceptable C compiler found in $PATH 
[...]
> gcc is already installed, But still getting error. Can any one please help me.
>
> root@nkumar:/usr/local/src/postgresql-9.3.9# dpkg -l|grep gcc
>
> ii  gcc-4.6-base                     4.6.3-1ubuntu5                      GCC,
> the GNU Compiler Collection (base package)
> ii  libgcc1                          1:4.6.3-1ubuntu5                    GCC
> support library

Your list doesn't show gcc, it only shows gcc-*-base and libgcc*. Install
the package "gcc".

    hp

--
   _  | Peter J. Holzer    | I want to forget all about both belts and
|_|_) |                    | suspenders; instead, I want to buy pants
| |   | hjp@hjp.at         | that actually fit.
__/   | http://www.hjp.at/ |   -- http://noncombatant.org/

Вложения

Re: configure: error: no acceptable C compiler found in $PATH

От
naveen kumar
Дата:
Thanks,

Issue was with OS installation, I was not able to install any packages.

Now it's fine.

Thanks & Regards,
M Naveen Kuamr,
PostgreSQL Database Administrator, 
Mobile Number: +91 7755929449. 

On Thu, Jun 25, 2015 at 1:33 PM, Peter J. Holzer <hjp-pgsql@hjp.at> wrote:
On 2015-06-24 22:04:48 +0530, naveen kumar wrote:
> Im stuck with below error while installing postgresql-9.3.9.
>
> PostgreSQL version: 9.3.9
>
> Operating system:  Ubuntu 12.04.5

Is there a reason why you compile postgresql from source and don't use
the version which comes with Ubuntu?

> Description: configure: error: no acceptable C compiler found in $PATH 
[...]
> gcc is already installed, But still getting error. Can any one please help me.
>
> root@nkumar:/usr/local/src/postgresql-9.3.9# dpkg -l|grep gcc
>
> ii  gcc-4.6-base                     4.6.3-1ubuntu5                      GCC,
> the GNU Compiler Collection (base package)
> ii  libgcc1                          1:4.6.3-1ubuntu5                    GCC
> support library

Your list doesn't show gcc, it only shows gcc-*-base and libgcc*. Install
the package "gcc".

        hp

--
   _  | Peter J. Holzer    | I want to forget all about both belts and
|_|_) |                    | suspenders; instead, I want to buy pants
| |   | hjp@hjp.at         | that actually fit.
__/   | http://www.hjp.at/ |   -- http://noncombatant.org/