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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-05-2005, 03:49 PM
|
#1
|
LQ Newbie
Registered: May 2005
Posts: 2
Rep:
|
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 03:57 PM.
|
|
|
05-05-2005, 04:34 PM
|
#2
|
Member
Registered: Jan 2005
Distribution: SUSE, LFS
Posts: 357
Rep:
|
You can't compile without a compiler.
Install your compiler from rpm.
|
|
|
05-05-2005, 04:38 PM
|
#3
|
Member
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827
Rep:
|
.. 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.
|
|
|
05-05-2005, 07:55 PM
|
#4
|
Member
Registered: Jan 2005
Location: Spain
Distribution: Debian
Posts: 44
Rep:
|
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.
|
|
|
01-30-2009, 02:57 PM
|
#5
|
LQ Newbie
Registered: Jan 2009
Posts: 2
Rep:
|
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
|
|
|
01-30-2009, 04:17 PM
|
#6
|
Member
Registered: Jan 2009
Location: Gemini Capsule 25164
Distribution: Gentoo
Posts: 375
Rep:
|
Quote:
Originally Posted by mmackenny
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.)
|
|
|
02-03-2009, 12:16 PM
|
#7
|
LQ Newbie
Registered: Jan 2009
Posts: 2
Rep:
|
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 02:55 PM.
|
|
|
All times are GMT -5. The time now is 12:52 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|