QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 665|回复: 6

编译mod_jk2失败,请帮忙看看

[复制链接]
发表于 2004-3-31 15:23:14 | 显示全部楼层 |阅读模式
list=' server/apache2'; \
for i in $list; do \
        echo "Making $target in $i"; \
        if test "$i" != "."; then \
        (cd $i && make) || exit 1; \
fi; \
done;
Making  in server/apache2
make[1]: Entering directory `/root/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
mkdir -p ../../../build/jk2/apache2/usr/lib/httpd/modules
mode=link gcc -avoid-version -module -rpath /usr/lib/httpd/modules     -o ../../../build/jk2/apache2/mod_jk2.la ../../../build/jk2/apache2/jk_channel_apr_socket.lo ../../../build/jk2/apache2/jk_channel.lo ../../../build/jk2/apache2/jk_channel_jni.lo ../../../build/jk2/apache2/jk_channel_un.lo ../../../build/jk2/apache2/jk_config.lo ../../../build/jk2/apache2/jk_config_file.lo ../../../build/jk2/apache2/jk_endpoint.lo ../../../build/jk2/apache2/jk_env.lo ../../../build/jk2/apache2/jk_handler_logon.lo ../../../build/jk2/apache2/jk_handler_response.lo ../../../build/jk2/apache2/jk_logger_file.lo ../../../build/jk2/apache2/jk_logger_win32.lo ../../../build/jk2/apache2/jk_map.lo ../../../build/jk2/apache2/jk_md5.lo
../../../build/jk2/apache2/jk_msg_ajp.lo ../../../build/jk2/apache2/jk_mutex.lo
../../../build/jk2/apache2/jk_mutex_proc.lo ../../../build/jk2/apache2/jk_mutex_thread.lo ../../../build/jk2/apache2/jk_nwmain.lo ../../../build/jk2/apache2/jk_objCache.lo ../../../build/jk2/apache2/jk_pool_apr.lo ../../../build/jk2/apache2/jk_registry.lo ../../../build/jk2/apache2/jk_requtil.lo ../../../build/jk2/apache2/jk_shm.lo ../../../build/jk2/apache2/jk_signal.lo ../../../build/jk2/apache2/jk_uriEnv.lo ../../../build/jk2/apache2/jk_uriMap.lo ../../../build/jk2/apache2/jk_user.lo ../../../build/jk2/apache2/jk_vm_default.lo ../../../build/jk2/apache2/jk_worker_ajp13.lo ../../../build/jk2/apache2/jk_workerEnv.lo ../../../build/jk2/apache2/jk_worker_jni.lo ../../../build/jk2/apache2/jk_worker_lb.lo ../../../build/jk2/apache2/jk_worker_run.lo ../../../build/jk2/apache2/jk_worker_status.lo ../../../build/jk2/apache2/jk_jni_aprImpl.lo ../../../build/jk2/apache2/jk_logger_apache2.lo ../../../build/jk2/apache2/jk_map_aprtable.lo ../../../build/jk2/apache2/jk_service_apache2.lo ../../../build/jk2/apache2/mod_jk2.lo
gcc: unrecognized option `-rpath'
/usr/lib/httpd/modules: file not recognized: 是一个目录
collect2: ld returned 1 exit status
make[1]: [../../../build/jk2/apache2/mod_jk2.la] Error 1 (ignored)
mode=install /bin/cp ../../../build/jk2/apache2/mod_jk2.la `pwd`/../../../build/jk2/apache2//usr/lib/httpd/modules
/bin/cp: stat‘../../../build/jk2/apache2/mod_jk2.la’失败: 没有那个文件或目录
make[1]: [../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so] Error 1
(ignored)
/bin/cp ../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so ../../../build/jk2/apache2/mod_jk2.so
/bin/cp: stat‘../../../build/jk2/apache2//usr/lib/httpd/modules/mod_jk2.so’失败: 没有那个文件或目录
make[1]: *** [../../../build/jk2/apache2/mod_jk2.so] Error 1
make[1]: Leaving directory `/root/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache2'
make: *** [jk2-build] Error 1
发表于 2004-3-31 22:23:21 | 显示全部楼层
在编译的目录,忘记了是哪个了
看看有没有生成mod_jk2.so这个文件
有的话应该成功了
只需把mod_jk2.so copy到apache2/modules 再改一下httpd.conf
回复

使用道具 举报

发表于 2004-4-1 01:53:45 | 显示全部楼层
我也是怎么make 都不能成功,不过所幸的是在目录里 找到了 .so  cp 过去了。

但是 ,我发现APACHE还是不会解释JSP页 ,怎么办?
回复

使用道具 举报

发表于 2004-4-4 16:46:24 | 显示全部楼层
你装了tomcat|?
回复

使用道具 举报

 楼主| 发表于 2004-4-7 00:51:55 | 显示全部楼层
没有找到mod_jk2.so啊
回复

使用道具 举报

 楼主| 发表于 2004-4-9 11:46:52 | 显示全部楼层
没有人帮忙看看吗?我都要急死了
回复

使用道具 举报

发表于 2004-4-9 22:45:44 | 显示全部楼层
[quote:1b9d465c79="crazygundam"]没有找到mod_jk2.so啊[/quote]

mod_jk2.so编译成功了吗
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-8 23:34 , Processed in 0.052167 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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