LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compiling gcc without compiler? (https://www.linuxquestions.org/questions/linux-software-2/compiling-gcc-without-compiler-320475/)

davuuud 05-05-2005 02:49 PM

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

Kdr Kane 05-05-2005 03:34 PM

You can't compile without a compiler.

Install your compiler from rpm.

Artanicus 05-05-2005 03:38 PM

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

mcosta 05-05-2005 06:55 PM

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.

mmackenny 01-30-2009 01:57 PM

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

CoderMan 01-30-2009 03:17 PM

Quote:

Originally Posted by mmackenny (Post 3426595)
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

You guys need to be telling us what Linux distributions you are using.

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.)

mmackenny 02-03-2009 11:16 AM

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.