Compiling gcc without compiler?
Hi there,
want to compile perl on my server but there is no compiler. gcc with binaries also needs a compiler. What to do? get the following lines: vz7024:~/files/ccbuild # /root/files/gcc-4.0.0/configure /root/files/gcc-4.0.0/configure loading cache ./config.cache checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking build system type... i686-pc-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 gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH vz7024:~/files/ccbuild # thx in favor |
You can't compile without a compiler.
Install your compiler from rpm. |
.. or whatever packaging system 'the distro you chose not to include in your info' uses.
If this is not an option for you, find a similar machine with a compiler, and compile the gcc with that, cross your fingers and hope itll work on your machine too, and perhaps then locally compile a new gcc with the foreign build one. But your better off installing from a binary distribution provided by your distributor. |
gcc distribution comes with a toy-compiler to compile the real compiler (to compile itself again)
If you do not know how to compile gcc, better get it binary. |
Not sure if this thread is dead... but *bump* as after hours of searching this is the closest I am seeing on how to resolve.
Firstly I have NAS with linux installed. It is a 586 and the linux came from the vendor nicely packaged without an RPM or a C compiler. So I am in the same boat as the original post. How can I use the "toy-compiler" you touched on? And which file would I compile to re-compile it all with =) I've got gcc-4.3.3 version unpacked on my box... just not compiled =) I really appreciate your help, Matt |
Quote:
All the (main-line) distributions I've used allow gcc to easily be installed through the package manager that came with the distribution (apt, synaptic, and assorted graphical GUI's). Figure out how to open your package manager and do a search for 'gcc.' If you don't know how to use your package manager, tell us which distro you are using and we'll tell you how to access it. (Of course, I recognize that there are a few freaky mini-distributions that don't have package managers or on-line repositories.) |
Being *green* to linux I ended up having to use nmap to find out what the linux version was. According to nmap the NAS is running Linux v2.6.23 (did not state any Fedora etc).
Now, would the right course be to download that versions rpm and then only extract the compiler for that distribution? I was not able to find an RPM file using ls -R *.rpm from the / directory. |
All times are GMT -5. The time now is 08:37 PM. |