PDA

View Full Version : is "build-essential" the only thing required to compile ?



syxbit
November 3rd, 2006, 12:48 AM
some websites indicate all you need is to run

sudo apt-get install build-essential


others also list these 2.

sudo apt-get install manpages-dev autoconf automake libtool
sudo apt-get install flex bison gcc-doc g++

what's the difference ?
thanks

hod139
November 3rd, 2006, 01:03 AM
build-essential will install (from packages.ubuntu.com):
dpkg-dev (http://packages.ubuntu.com/dapper/utils/dpkg-dev) (>= 1.13.5)package building tools for Debian
g++ (http://packages.ubuntu.com/dapper/devel/g++) (>= 4:4.0)The GNU C++ compiler
gcc (http://packages.ubuntu.com/dapper/devel/gcc) (>= 4:4.0)The GNU C compiler
libc6-dev (http://packages.ubuntu.com/dapper/libdevel/libc6-dev)GNU C Library: Development Libraries and Header Files
make (http://packages.ubuntu.com/dapper/devel/make)The GNU version of the "make" utility.These packages will allow you to build C or C++ code.


others also list these 2.

sudo apt-get install manpages-dev autoconf automake libtool
sudo apt-get install flex bison gcc-doc g++what's the difference ?
thanks
manpages-dev installs the man pages for the development tools. autoconf, automake, and libtool are all required for autotools (http://sources.redhat.com/autobook/)

Flex and bison you most likely will not need in your development, I've never used them. gcc-doc is the documentation for the gcc compiler. g++ is redundent with build-essential.

In closing, you may need the autotools packages as many source distributions use it, but build-essential should be sufficient if you just wish to program c or c++.

syxbit
November 3rd, 2006, 07:56 AM
very helpful
thanks