GCC compiler installation on Linux OS

Need assistance in getting a GCC compiler on linux server .

I wanted to install GCC compiler under local user . System doesnt have any compiler . Is there a way to get a compiler installed without a root user, cant install using (rpm, yum )

When I try to compile the gcc source i get the below error . Any inputs appreciated:)

checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/local/tools/compiler/gcc':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

What are you running above...are you trying to compile the source for a compiler and you have no compiler? You see the problem right?

Blackrageous ...... I dont have a compiler installed on the system . I know that it will not compile the source code without a compiler . do you have any steps that i cant install one on the box. I have no root, yum , rpm to install a compiler .

Even if you manage to bootstrap build the GCC C compiler, you are also going to have to install the appropriate Linux headers and development libraries if you wish to do useful work with gcc.

Thanks fpmurphy. Can a local user install linux headers and development libraries without a root user.

If you have to ask about being able to install headers (they're just text files), it's very unlikely that you'll be able to install a full dev environment and configure it so that the compiler finds the headers (both for the kernel and the libraries) in non-standard locations and the linker finds whatever libraries you install also in non-standard locations.

What is the big picture here? Is the sysadmin refusing to install the development tools? Are you trying to circumvent policy?

Regards,
Alister

You have been asking these same questions for months. My answer remains the same.

I can't give you complete working instructions which work for something as crazy and complicated as installing an entire compiler and system headers in a nonstandard location. The best we can tell you is "technically possible but not really feasable".

You'd be far, far, far better off getting or borrowing some throwaway computer to properly install a compiler on.

I have asked this question only one time . But anyway I got my answers . Thank you