我是在winxp下vmware虚拟机装linux as4的,当我装完后再装apache2.0.58时发现一个问题:
#tar zxvf httpd-2.0.58.tar.gz
#cd /解压目录/httpd-2.0.58
#./configure --prefix=/usr/local/apache --enable-so
# make(在这时说找不到makefile文件)
# make install(自然这里也不行了)
我现在想知道的问题是makefile怎么不见了,刚开始我怀疑是包是少了makefile文件,就不断的下了不同版本的apache,但解压后还是没有看到makefile文件.最后还是安装不了!
我刚学linux,希望大家帮忙解决!
[ 本帖最后由 Subbo 于 2007-5-11 19:47 编辑 ]


拾梦 于 2007-05-10 21:55:50发表:
太好了,问题解决了!问题就Subbo兄说的!
Subbo 于 2007-05-10 18:44:07发表:
注意看终端提示:
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
你没装C语言编译器,例如gcc,去安装光盘里面把gcc开头的rpm包通通装上。
拾梦 于 2007-05-10 09:51:46发表:
[root@nic software]# gzip -d httpd-2.0.59.tar.gz
[root@nic software]# tar -xf httpd-2.0.59.tar
[root@nic software]# cd httpd-2.0.59
[root@nic httpd-2.0.59]# ls
ABOUT_APACHE CHANGES InstallBin.dsp os
acconfig.h config.layout LAYOUT README
acinclude.m4 configure libhttpd.dsp README.platforms
Apache.dsp configure.in LICENSE server
Apache.dsw docs Makefile.in srclib
apachenw.mcp.zip emacs-style Makefile.win support
build httpd.spec modules test
BuildBin.dsp include NOTICE VERSIONING
buildconf INSTALL NWGNUmakefile
[root@nic httpd-2.0.59]# ./configure --prefix=/usr/local/apache --enable-so
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring Apache Portable Runtime library ...
checking for APR... reconfig
configuring package in srclib/apr now
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
Configuring APR library
Platform: i686-pc-linux-gnu
checking for working mkdir -p... yes
APR Version: 0.9.12
checking for chosen layout... apr
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
configure failed for srclib/apr
[root@nic httpd-2.0.59]# make
make: *** 没有指明目标并且找不到 makefile。 停止。
[root@nic httpd-2.0.59]# make install
make: *** 没有规则可以创建目标“install”。 停止。
这是操作的全部过程,有颜色的为命令,请各位高手指点!
我现在这种水平是按着书本上教的一步步作,任何一小步有错误都是致命的!根本找不出问题的所在,望各位高手多费点心!
[ 本帖最后由 拾梦 于 2007-5-10 09:58 编辑 ]
Subbo 于 2007-05-09 21:11:18发表:
configure成功通过才有make,注意看安装步骤,注意看终端configure时的提示。
karon_fedora 于 2007-05-09 17:29:57发表:
我下载了 httpd-2.0.59.tar.gz 你的那个版本我在apache网站找不到的。
[root@localhost Desktop]# gzip -d httpd-2.0.59.tar.gz
[root@localhost Desktop]# tar -xf httpd-2.0.59.tar
[root@localhost Desktop]# cd httpd-2.0.59
[root@localhost httpd-2.0.59]# ls
ABOUT_APACHE CHANGES InstallBin.dsp os
acconfig.h config.layout LAYOUT README
acinclude.m4 configure libhttpd.dsp README.platforms
Apache.dsp configure.in LICENSE server
Apache.dsw docs Makefile.in srclib
apachenw.mcp.zip emacs-style Makefile.win support
build httpd.spec modules test
BuildBin.dsp include NOTICE VERSIONING
buildconf INSTALL NWGNUmakefile
东西都有阿 ,makefile.in 还有configure也有。把你的发过来看看。
[ 本帖最后由 karon_fedora 于 2007-5-9 17:31 编辑 ]
拾梦 于 2007-05-09 15:59:45发表:
karon_fedora兄:
httpd-2.0.58.tar.gz用tar出来后没有找到makefile文件!
在windows下用rar解压后再找不到该文件!
不但是这个包有问题,所有的包都有问题.总装不了!
考虑的问题:
1\winxp下用vmware安装linux as4;
2\在启动过程中有"启动smartd 失败";
3\安装vmware Tools有没有影响
4\tar的参数
karon_fedora 于 2007-05-09 09:34:31发表:
楼主 你的文档里有makefile的文件么?
还有你的./configure这一步有没有运行成功阿
还有
2楼的是让你看install文档,不是运行这个命令
[ 本帖最后由 karon_fedora 于 2007-5-9 09:47 编辑 ]
拾梦 于 2007-05-09 09:18:31发表:
[root@nic httpd-2.0.58]# install
install: 参数太少
请尝试执行‘install --help’来获取更多信息。
[root@nic httpd-2.0.58]# install --help
用法:install [选项]... 来源 目的地 (第一种格式)
或:install [选项]... 来源... 目录 (第二种格式)
或:install -d [选项]... 目录... (第三种格式)
在最初两种格式中,会将<来源>复制至<目的地>或将多个<来源>文件复制至已存在的
<目录>,同时设定权限模式及所有者/所属组。在第三种格式中,会创建所有
指定的目录及它们的主目录。
长选项必须用的参数在使用短选项时也是必须的。
--backup[=CONTROL] 为每个已存在的目的地文件进行备份
-b 类似 --backup,但不接受任何参数
-c (此选项不作处理)
-d, --directory 所有参数都作为目录处理;而且会创建指定 -d, --directory 所有参数都 作为目录处理;而且会创建指定目录的所有主目录
-D 创建<目的地>前的所有主目录,然后将<来源> -D 创建<目的地>前的所有主目录,然后将<来源>复制至
<目的地>;在第一种使用格式中有用
-g, --group=组 自行设定所属组,而不是进程目前的所属组
-m, --mode=模式 自行设定权限模式 (像 chmod),而不是 rwxr-xr-x
-o, --owner=所有者 自行设定所有者 (只适用於超级用户)
-p, --preserve-timestamps 以<来源>文件的访问/修改时间作为相应的目的
地文件的时间属性
-s, --strip 用 strip 命令删除 symbol table,只适用於第一及第二种
使用格式
-S, --suffix=后缀 自行指定备份文件的<后缀>
-v, --verbose 处理每个文件/目录时印出名称
-P, --preserve_context (SELinux) Preserve security context
-Z, --context=CONTEXT (SELinux) Set security context of files and directories
--help 显示此帮助信息并离开
--version 显示版本信息并离开
备份文件的后缀为‘~’,除非以 --suffix 选项或是 SIMPLE_BACKUP_SUFFIX
环境变量指定。版本控制的方式可透过 --backup 选项或 VERSION_CONTROL 环境
变量来选择。以下是可用的变量值:
none, off 不会进行备份 (即使使用了 --backup 选项)
numbered, t 备份文件会加上数字
existing, nil 若有数字的备份文件已经存在则使用数字,否则使用普通方式备份
simple, never 永远使用普通方式备份
Report bugs to <bug-coreutils@gnu.org>.
每个参数我都试过,但不行!
[root@nic httpd-2.0.58]# make -f makein
make: makein: 没有那个文件或目录
make: *** 没有规则可以创建目标“makein”。 停止。
[root@nic httpd-2.0.58]# make -f Makefile.in
Makefile.in:26: /build/rules.mk: 没有那个文件或目录
Makefile.in:27: /build/program.mk: 没有那个文件或目录
Makefile.in:210: /os/os2/core.mk: 没有那个文件或目录
make: *** 没有规则可以创建目标“/os/os2/core.mk”。 停止。
[ 本帖最后由 拾梦 于 2007-5-9 09:24 编辑 ]
karon_fedora 于 2007-05-08 18:26:19发表:
有没有类似make的文档,很有可能是makein
make -f makein
load 于 2007-05-08 17:13:08发表:
你看着install文档来安装啊