LinuxSir.cn,穿越时空的Linuxsir!

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

apache编译出错

[复制链接]
发表于 2005-11-26 21:37:04 | 显示全部楼层 |阅读模式
apache的版本为1.3.34
而1.3.29版本的却并无此问题
编译为
./configure --prefix=/usr/local/apache/ --enable-shared=max --enable-module=most
------
mod_auth_dbm.c:41:18: ndbm.h: 没有那个文件或目录
mod_auth_dbm.c: In function `get_dbm_pw':
mod_auth_dbm.c:109: error: `DBM' undeclared (first use in this function)
mod_auth_dbm.c:109: error: (Each undeclared identifier is reported only once
mod_auth_dbm.c:109: error: for each function it appears in.)
mod_auth_dbm.c:109: error: `f' undeclared (first use in this function)
mod_auth_dbm.c:110: error: `datum' undeclared (first use in this function)
mod_auth_dbm.c:110: error: syntax error before "d"
mod_auth_dbm.c:113: error: `q' undeclared (first use in this function)
mod_auth_dbm.c:127: error: `d' undeclared (first use in this function)
make[4]: *** [mod_auth_dbm.so] 错误 1
make[3]: *** [all] 错误 1
make[2]: *** [subdirs] 错误 1
make[2]: Leaving directory `/home/den/soft/apache_1.3.34/src'
make[1]: *** [build-std] 错误 2
make[1]: Leaving directory `/home/den/soft/apache_1.3.34'
make: *** [build] 错误 2
----------

在网上搜索,得到N多结果,却并不解决问题
谢!
发表于 2005-11-26 23:41:29 | 显示全部楼层
先apt-get build-dep apache安装需要的软件包
然后再编译试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-27 13:31:30 | 显示全部楼层
没用。。。。。。。。
回复 支持 反对

使用道具 举报

发表于 2005-11-27 13:54:42 | 显示全部楼层
Post by 过客
          apache的版本为1.3.34
而1.3.29版本的却并无此问题
编译为
./configure --prefix=/usr/local/apache/ --enable-shared=max --enable-module=most
------
mod_auth_dbm.c:41:18: ndbm.h: 没有那个文件或目录
mod_auth_dbm.c: In function `get_dbm_pw':
mod_auth_dbm.c:109: error: `DBM' undeclared (first use in this function)
mod_auth_dbm.c:109: error: (Each undeclared identifier is reported only once
mod_auth_dbm.c:109: error: for each function it appears in.)
mod_auth_dbm.c:109: error: `f' undeclared (first use in this function)
mod_auth_dbm.c:110: error: `datum' undeclared (first use in this function)
mod_auth_dbm.c:110: error: syntax error before "d"
mod_auth_dbm.c:113: error: `q' undeclared (first use in this function)
mod_auth_dbm.c:127: error: `d' undeclared (first use in this function)
make[4]: *** [mod_auth_dbm.so] 错误 1
make[3]: *** [all] 错误 1
make[2]: *** [subdirs] 错误 1
make[2]: Leaving directory `/home/den/soft/apache_1.3.34/src'
make[1]: *** [build-std] 错误 2
make[1]: Leaving directory `/home/den/soft/apache_1.3.34'
make: *** [build] 错误 2
----------

在网上搜索,得到N多结果,却并不解决问题
谢!
這個我也不懂,或許可到網絡服務器架設版去問,那裡網絡高手較多
回复 支持 反对

使用道具 举报

发表于 2005-11-27 16:45:31 | 显示全部楼层
cp /usr/include/gdbm-ndbm.h /usr/include/ndbm.h就行了。apache 1.3比较傻,就认这个名。要先装libgdbm-dev
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-28 12:00:56 | 显示全部楼层
这个不解决问题
cp了ndbm.h后
后面的错误依然存在
安装了libgdbm-dev
郁闷得死
在网上搜索,结果有一大堆
可都是没有结果的
郁闷。。。

1.3.29的在3.0上没有此问题
移到3.1上也同样如此
我并不想装2.X
回复 支持 反对

使用道具 举报

发表于 2005-11-28 12:22:26 | 显示全部楼层
make clean 了没有?
回复 支持 反对

使用道具 举报

发表于 2005-11-28 13:06:23 | 显示全部楼层
hehe-就是这个问题的。我可以保证。我以前也遇过。你再好好看看吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-28 14:48:39 | 显示全部楼层
cp /usr/include/gdbm-ndbm.h /usr/include/ndbm.h
后好了
我系统里面的那个ndbm.h是用的别的包里面带的这个ndbm.h文件
呵。。。不好意思

非常感谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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