LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-05-2005, 02:49 PM   #1
davuuud
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
Question 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

Last edited by davuuud; 05-05-2005 at 02:57 PM.
 
Old 05-05-2005, 03:34 PM   #2
Kdr Kane
Member
 
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357

Rep: Reputation: 30
You can't compile without a compiler.

Install your compiler from rpm.
 
Old 05-05-2005, 03:38 PM   #3
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
.. 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.
 
Old 05-05-2005, 06:55 PM   #4
mcosta
Member
 
Registered: Jan 2005
Location: Spain
Distribution: Debian
Posts: 44

Rep: Reputation: 16
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.
 
Old 01-30-2009, 01:57 PM   #5
mmackenny
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
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
 
Old 01-30-2009, 03:17 PM   #6
CoderMan
Member
 
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Blog Entries: 24

Rep: Reputation: 43
Quote:
Originally Posted by mmackenny View Post
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.)
 
Old 02-03-2009, 11:16 AM   #7
mmackenny
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
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.

Last edited by mmackenny; 02-03-2009 at 01:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC Compiler..... mani_iips Linux - Newbie 4 08-08-2005 08:55 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
GCC compiler...? ph0tik Linux - Newbie 4 04-22-2003 03:22 PM
GCC compiler ionic Programming 3 05-10-2001 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration