LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 702|回复: 9

apache_1.3.27安装设置不成功,老出现错误提示!

[复制链接]
发表于 2003-7-21 15:51:54 | 显示全部楼层 |阅读模式
提示:[root@A40 src]# ./Configure
Using config file: Configuration
Creating Makefile
+ configured for Linux platform
+ setting C pre-processor to /usr/bin/cpp
+ checking for system header files
+ adding selected modules
+ using builtin Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
** A test compilation with your Makefile configuration
** failed.  The below error output from the compilation
** test will give you an idea what is failing. Note that
** Apache requires an ANSI C Compiler, such as gcc.

======== Error Output for sanity check ========
cd ..; gcc -O2 -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED      -o helpers/dummy helpers/dummy.c   -lm
/bin/sh: line 1: gcc: command not found
make: *** [dummy] Error 127
============= End of Error Report =============

Aborting!

请大人们帮帮忙
发表于 2003-7-21 22:39:32 | 显示全部楼层
装gcc啊
 楼主| 发表于 2003-7-22 11:12:04 | 显示全部楼层
哪里有gcc下载
发表于 2003-7-22 12:58:32 | 显示全部楼层
 楼主| 发表于 2003-7-22 14:52:55 | 显示全部楼层
下了个gcc-3.3.tar.gz,但是很难装上,请楼上高手再指点迷津
发表于 2003-7-22 15:05:13 | 显示全部楼层
粗略的可以这么装

$tar jxvf gcc-3.2.3.tar.bz2 &&
cd gcc-3.2.3 &&
mkdir ../gcc-build &&
cd ../gcc-build  &&
../gcc-3.2.3/configure --prefix=/usr \
    --enable-shared --enable-threads=posix \
    --enable-__cxa_atexit --enable-clocale=gnu \
    --enable-languages=c,c++ &&
make &&
make install &&
rm /lib/cpp -f &&
ln -s ../usr/bin/cpp /lib &&
rm /usr/bin/cc -f &&
ln -s gcc /usr/bin/cc &&
rm /usr/lib/libiberty.a  -f
 楼主| 发表于 2003-7-22 15:55:09 | 显示全部楼层
能再具体点吗
发表于 2003-7-22 17:08:54 | 显示全部楼层
发表于 2003-7-22 23:50:14 | 显示全部楼层
有rpm不装?
发表于 2003-7-23 07:55:02 | 显示全部楼层

我也不知道zdl333 是什么情况,我用 LFS 习惯从源码编译了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表