Re: Installing GCC...



contracer11@xxxxxxxxx wrote:
> Thomas Maier-Komor wrote:
>> contracer11@xxxxxxxxx wrote:
>>> I'm trying install gcc in my Ultra 5, but I get this message:
>>>
>>> # ./configure
>>> creating cache ./config.cache
>>> checking host system type... sparc-sun-solaris2.10
>>> checking target system type... sparc-sun-solaris2.10
>>> checking build system type... sparc-sun-solaris2.10
>>> checking for a BSD compatible install... ./install-sh -c
>>> ./configure: cc: not found
>>> *** The command 'cc -o conftest -g conftest.c' failed.
>>> *** You must set the environment variable CC to a working compiler.
>>>
>>> Please, can you tell me what's wrong ?
>>> What I need make to be succefull in this installation ?
>>>
>> gcc is already preinstalled as /usr/sfw/bin/gcc. If you add this
>> directory to your PATH you can configure and compile your own gcc. But
>> be aware that using the Solaris as and ld is strongly recommended over
>> gas and gld.
>>
>> Tom
>
> Not founded... Maybe need I reinstall Solaris 10 ?
>
> # ls /usr/sfw/bin/g*
> /usr/sfw/bin/gegrep /usr/sfw/bin/gsdj
> /usr/sfw/bin/getafm /usr/sfw/bin/gsdj500
> /usr/sfw/bin/gfgrep /usr/sfw/bin/gslj
> /usr/sfw/bin/ggrep /usr/sfw/bin/gslp
> /usr/sfw/bin/gimpprint-config /usr/sfw/bin/gsnd
> /usr/sfw/bin/glib-config /usr/sfw/bin/gtar
> /usr/sfw/bin/gs /usr/sfw/bin/gtk-config
> /usr/sfw/bin/gsbj
>

$ pkgchk -l -p /usr/sfw/bin/gcc
NOTE: Couldn't lock the package database.
Pathname: /usr/sfw/bin/gcc
Type: linked file
Source of link: ../../../usr/sfw/bin/sparc-sun-solaris2.10-gcc-3.4.3
Referenced by the following packages:
SUNWgcc
Current status: installed

No - don't reinstall. Just add the package SUNWgcc from the packages
directory of your Solaris install media. See "man pkgadd".

Tom
.