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

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

Post 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 :-)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you should have gcc on the machine... I think..
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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?
d_d
Forum Commoner
Posts: 33
Joined: Wed Jul 07, 2004 4:56 pm
Location: UK

Post 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.
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :-)
Post Reply