1752522 Members
4687 Online
108788 Solutions
New Discussion юеВ

cgg error

 
SILO Storagetek
Frequent Advisor

cgg error

Hi,
I'm trying to compile xemacs on a 11.i system, with --prefix=/usr/local option, but there is something wrong:

./configure --prefix=/usr/local
checking host system type... hppa1.0-hp-hpux11.11
checking whether ln -s works... yes
checking the configuration name
checking for gcc... /opt/gcc/bin/gcc
checking whether the C compiler (/opt/gcc/bin/gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

I made "which gcc" and this is the result:
which gcc
/usr/local/bin/gcc

How can I resolve this situation? thanks everybody!

p.
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: cgg error

First, type gcc should be used rather than which gcc. Type will yield results identical to the shell. Note that gcc is installed in /usr/local/bin and the configure script is looking in /opt/gcc/bin. That is your fundamental problem.
If it ain't broke, I can fix that.
SILO Storagetek
Frequent Advisor

Re: cgg error

Note that gcc is installed in /usr/local/bin and the configure script is looking in /opt/gcc/bin. That is your fundamental problem

I know that this is my problem.. but I don't know how to solve it..

this is the output of type:
type gcc
gcc is /usr/local/bin/gcc

p.
Robert-Jan Goossens
Honored Contributor

Re: cgg error

Hi,

# echo $PATH

add /usr/local/bin to your PATH variable.

Robert-Jan
SILO Storagetek
Frequent Advisor

Re: cgg error

/usr/local/bin is already in my path:

echo $PATH
/usr/sbin:/usr/bin:/usr/ccs/bin:[...]:/usr/local/bin


Robert-Jan Goossens
Honored Contributor

Re: cgg error

Hi,

try to put /usr/local/bin in front of your PATH,

# export PATH=/usr/local/bin:$PATH

and try it again.

Regards,
Robert-Jan
SILO Storagetek
Frequent Advisor

Re: cgg error

doesn't works...

export PATH=/usr/local/bin:$PATH
./configure --prefix=/usr/local

checking whether the C compiler (/opt/gcc/bin/gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

i'ts a good day!