PDA

View Full Version : CentOS 4.4 ~ cc: Command not found


domino
18th November 2006, 01:01
Sorry if this has already been posted. It wasn't corrected on the How-To page.

On page 6 (http://www.howtoforge.com/perfect_setup_centos_4.4_p6) it states to install the newer zlib and I came to a brick wall with error message: cc: Command not found. It turns out that C+ compiler wasn't install by default and I wasn't instructed to install it before reaching this stage. To solve the problem, just run the following command.

yum install gcc-c++

Edit/Added:

Once you have C+ compiler installed clean the zlib directory and re-run configure.

make clean
./configure --shared
make
make install

The second thing I wanted to point out is that you do not need to download all 4 disks anymore if you only need LAMP installed. There is a much smaller single Server Disk (~594mb) that will do the job.

falko
18th November 2006, 16:31
Sorry if this has already been posted. It wasn't corrected on the How-To page.

On page 6 (http://www.howtoforge.com/perfect_setup_centos_4.4_p6) it states to install the newer zlib and I came to a brick wall with error message: cc: Command not found. It turns out that C+ compiler wasn't install by default and I wasn't instructed to install it before reaching this stage.
It is installed by default if you select Development Tools as shown on page two of the "Perfect Setup": http://www.howtoforge.com/perfect_setup_centos_4.4_p2 :)

domino
18th November 2006, 17:07
It is installed by default if you select Development Tools as shown on page two of the "Perfect Setup": http://www.howtoforge.com/perfect_setup_centos_4.4_p2 :)
Yes, but on the Server CD (http://lists.centos.org/pipermail/centos-announce/2006-May/012927.html), C+ compiler isn't installed. I think most would rather download ~20mb from yum than downloading all 4 ISOs.

CentOS-4.4.ServerCD-i386.iso 2006-Sep-15 21:32:51 579.8M application/octet-stream

Also using the methed I used, you will need to manually install "flex".

:)