---
title: "CentOS下安装LAMP"
author: "paninxb"
date: "2011-03-21T10:15:51Z"
tags: []
categories: ["编程语言"]
slug: "centos-lamp"
draft: false
lastmod: "2011-03-21T13:13:22Z"
id: 968978
url: "https://paninxb.iteye.com/blog/968978"
---

1、安装gcc

1.1、卸载jdk1.4

```
[root@localhost panin]# yum -y remove java-1.4.2-gcj-compat-1.4.2.0-40jpp.115
```

 

1.2、安装gcc 

```
[root@localhost panin]# yum -y install gcc
```

 

安装完毕后检查gcc版本：

 

```
[root@localhost panin]# gcc -v
使用内建 specs。
目标：i386-redhat-linux
配置为：../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux
线程模型：posix
gcc 版本 4.1.2 20080704 (Red Hat 4.1.2-48)
```