Обсуждение: Installation Problem

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

Installation Problem

От
phil campaigne
Дата:
Hi All,
I'm trying ot install postgresql 8.0.4 on suse 9.0.

I can run ./configure but when I try to run make, the program cannot
find a usable c compiler.
I tried
./configure CC=/usr/lib/gcc-lib/i586-suse-linux/3.3.3/cc1

but get the error: cannot run c compiled programs.
I tried to downlaod and install GCC.3.3.4 but the error message says it
needs a c compiler

Any ideas on how I might proceed?
thanks,
Phil

Re: Installation Problem

От
Martijn van Oosterhout
Дата:
On Mon, Oct 24, 2005 at 08:59:17PM -0400, phil campaigne wrote:
> I can run ./configure but when I try to run make, the program cannot
> find a usable c compiler.
> I tried
> ./configure CC=/usr/lib/gcc-lib/i586-suse-linux/3.3.3/cc1
>
> but get the error: cannot run c compiled programs.

I think you need to point "gcc" not "cc1". The latter (AFAIK) won't
link things, it's just the compiler and so won't produce executables.

Maybe: /configure CC=/usr/lib/gcc-lib/i586-suse-linux/3.3.3/gcc

Incidently, on my Debian machine I have several compilers and they are
referred to as:

gcc-3.3
gcc-3.4
etc

Maybe that would work for you?

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Вложения

Re: Installation Problem

От
Peter Wiersig
Дата:
On Mon, Oct 24, 2005 at 08:59:17PM -0400, phil campaigne wrote:
> Hi All,
> I'm trying ot install postgresql 8.0.4 on suse 9.0.
>
> I can run ./configure but when I try to run make, the program cannot
> find a usable c compiler.
> I tried
> ./configure CC=/usr/lib/gcc-lib/i586-suse-linux/3.3.3/cc1
>
> but get the error: cannot run c compiled programs.
> I tried to downlaod and install GCC.3.3.4 but the error message says it
> needs a c compiler
>
> Any ideas on how I might proceed?

less config.log
after running "./configure" without any arguments. You don't have
all needed packages for build, configure does sometimes do a bad
job reporting the real issues.

Peter