Page 1 of 1

New to linux. I've got no C/C++ compilers what do i do?

Posted: Wed Aug 11, 2004 8:04 pm
by Chris Corbyn
Hi,

I was fed up of using windows so I set up a dual boot and added SuSE linux 9.1 to my PC. I downloaded the version from suse ftp site and it seems as though not much is pakged with it.

I successfully installed mozilla but that was easy anyway.

I've discoverd probs trying to get apache 2.0.5 installed. ./configure produces an error saying no acceptable C compiler found in $PATH.

Then make gives the error make: command not found

I set out to get a compiler. I downloaded the tar.gz file for distcc 2.17 but when I run ./configure to begin installing distcc I get the C compiler not found error again.

Same prob when I try to install make which I downloaded.

What do I need to download and install before I can begin installing stuff that I need to compile? How do I install these required packages and where do I find them.

These were the exact commands I typed to try to install apache:

Firstly I logged in as root and extracted all files from the tar.gz file then opened a console window where they were extracted.

1. ./configure --prefix=/usr/local/apache2
2. make
3. make install

The first command ./configure did loads of stuff but i spotted errors in it's output and it halted when it said no acceptable C compiler found in $PATH

mae didn't even exist

Thanks in advance for any help :-)

Posted: Wed Aug 11, 2004 8:09 pm
by feyd
you should have gcc on the machine... I think..

Posted: Wed Aug 11, 2004 8:12 pm
by Chris Corbyn
One of the outputs during the attempt at installing distcc had

checking for gcc... no
checking for cc... no
checking for cl... no

So i'd guess I don't have it.

Are these things I can download and install?

Posted: Thu Aug 12, 2004 10:27 am
by d_d
I have not uses suse for a while but when I did use it I think its default install would not install much development stuff.
Try using the package manager to install them, I think it's called yast. There should be a development subsection.

Posted: Thu Aug 12, 2004 10:49 am
by redmonkey
distcc is used for distributed compiling but is not a compiler in itself. You will require a compilier, most linux users use 'gcc' this should be available as a package for your distribution, the gcc homepage is here you will also require basic build tools such as 'make'.

Dependant on what exactly you are compiling, you may require other utilities. You should at least also install 'autoconf' and 'libtool'. Additionally I would recommend utilities such as 'flex' and 'bison'. There are many others but it does depend on what you are compiling.

When compiling there is usually an 'install' or 'readme' file which will detail minimum requirements with regard to tools and utilities required, it is a good idea to have a quick read through these files as they can at times also detail additional optional tools required to extend functionality.

Unfortunately, I know nothing about the Suse distro so can't comment on how to use their particular package manager.

Posted: Thu Aug 12, 2004 4:07 pm
by Chris Corbyn
I kept trying to install various components which in turn needed various components themselves to install but in the end I managed to sort it out by going here ftp://ftp.gwdg.de/pub/linux/suse/ftp.su ... suse/i586/ and getting loads of rpm packages for as many compilers I could see and noting any errors relating to missing tools then installing whatever was needed.

All's working fine now anyway thanks. Guess it was useful practice for me since I'm new to linux and the idea of compiling a package before I can use it is not particularly something you do too often with windows. I'm pretty impressed with SuSE though :-)