GCC compiler installation on Linux OS


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting GCC compiler installation on Linux OS
# 1  
Old 05-07-2014
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 appreciatedSmilie

Code:
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.

# 2  
Old 05-07-2014
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?
# 3  
Old 05-07-2014
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 .
# 4  
Old 05-07-2014
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.
# 5  
Old 05-08-2014
Thanks fpmurphy. Can a local user install linux headers and development libraries without a root user.
# 6  
Old 05-08-2014
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
# 7  
Old 05-08-2014
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cc compiler and gcc compiler

hi, can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also can we install sun cc compiler in AIX environment and vice versa. and more ..is linux support cc compiler regards Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies

2. UNIX for Advanced & Expert Users

gcc arm compiler

I want to find the ARM assembly language for my sample C code using gcc .I had gcc compiler ,whether it is enough for it or i need to download gcc arm cross compiler.If necessary ,how it configured?I am using fedora (0 Replies)
Discussion started by: sujith4u87
0 Replies

3. Programming

gcc compiler

Which gcc compiler release had the Arm 9 multicore support?Whether the compiler that used for the single Arm 9 core can be used for its multicore systems ? If gcc not support,please tell me which are the compilers that are available for Arm 9 multicore systems (including commerical).Whether... (0 Replies)
Discussion started by: sujith4u87
0 Replies

4. Shell Programming and Scripting

gcc compiler

I am using open suse linux. I want to install gcc compiler in my machine. I ahve checked man gcc and man cc. But it's not there. Can someone help me (4 Replies)
Discussion started by: pritish.sas
4 Replies

5. Red Hat

GCC compiler on linux box

Hi All, My main aim is to find the version of GCC compiler installed on linux box. Case 1: When i use gcc -v i get the foll. O/P Reading specs from /usr/lib/gcc-lib/i386-redhat-linux7/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-128) case 2: when i use... (3 Replies)
Discussion started by: Ashok_oct22
3 Replies

6. Ubuntu

gcc compiler

where to download gcc compiler for ubuntu? how to install? how to build and run "c programs"? screen shots if possible.....:b::D tutorials too:cool: (5 Replies)
Discussion started by: villanarun
5 Replies

7. UNIX for Dummies Questions & Answers

xl C/C++ compiler to GCC compiler

Hi, we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier). As a part of this i need to change the CFLAGS. The xl c/c++ complier CFLAGS is CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \ -qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies

8. Programming

gcc compiler

i write c++ code it run perfectely with g++ compiler but same code when i compile with GCC compiler it gives linker error , followed these linker error /tmp/ccfZtXOQ.o(.text+0x22): In function `main': conf_system.cpp: undefined reference to `operator new(unsigned int)'... (5 Replies)
Discussion started by: munnu
5 Replies

9. UNIX for Dummies Questions & Answers

cc compiler / gcc

:confused: I have a question concerning gcc. IŽd like to install the gcc on my Mac OS X, but when I try to run the configure command I get the following message: floriant% ./configure ./configure: read-only variable: PWD Configuring for a powerpc-apple-darwin5.4 host. *** This configuration... (2 Replies)
Discussion started by: florian.turck
2 Replies
Login or Register to Ask a Question