首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

ubuntu 停编译tomcat-connectors没有mod_jk.so文件?

2013-03-27 
ubuntu 下编译tomcat-connectors没有mod_jk.so文件??如题,我是新手,想在ubuntu上离线安装apache,tomcat my

ubuntu 下编译tomcat-connectors没有mod_jk.so文件??
如题,我是新手,想在ubuntu上离线安装apache,tomcat mysql,其实最终的目的是写个脚本离线安装所有的东西。现在编译tomcat-connectors只有.c .lo等等,什么原因?如何得到.so文件?


root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native# make
Making all in common
make[1]: Entering directory `/home/test/tomcat-connectors-1.2.37-src/native/common'
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp12_worker.c -o jk_ajp12_worker.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_connect.c -o jk_connect.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_msg_buff.c -o jk_msg_buff.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_util.c -o jk_util.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp13.c -o jk_ajp13.lo
...
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp14.c -o jk_ajp14.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp14_worker.c -o jk_ajp14_worker.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_md5.c -o jk_md5.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_shm.c -o jk_shm.lo


/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_ajp_common.c -o jk_ajp_common.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_context.c -o jk_context.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_url.c -o jk_url.lo
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c jk_status.c -o jk_status.lo
make[1]: Leaving directory `/home/test/tomcat-connectors-1.2.37-src/native/common'
Making all in apache-2.0
make[1]: Entering directory `/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0'
/home/cps/apache/build/libtool --silent --mode=compile gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I ../common -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -c mod_jk.c -o mod_jk.lo
/home/cps/apache/build/libtool --silent --mode=link gcc -I/home/cps/apache/include  -DHAVE_CONFIG_H -DUSE_APACHE_MD5 -I ../common -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -g -O2 -pthread -DHAVE_APR  -I/home/cps/apache/include -I/home/cps/apache/include  -DHAVE_CONFIG_H -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -o mod_jk.la -module -rpath /home/cps/apache/modules -avoid-version mod_jk.lo ../common/jk_ajp12_worker.lo ../common/jk_connect.lo ../common/jk_msg_buff.lo ../common/jk_util.lo ../common/jk_ajp13.lo ../common/jk_pool.lo ../common/jk_worker.lo ../common/jk_ajp13_worker.lo ../common/jk_lb_worker.lo ../common/jk_sockbuf.lo ../common/jk_map.lo ../common/jk_uri_worker_map.lo ../common/jk_ajp14.lo ../common/jk_ajp14_worker.lo ../common/jk_md5.lo ../common/jk_shm.lo ../common/jk_ajp_common.lo ../common/jk_context.lo ../common/jk_url.lo ../common/jk_status.lo
../scripts/build/instdso.sh SH_LIBTOOL='/home/cps/apache/build/libtool --silent' mod_jk.la `pwd`
/home/cps/apache/build/libtool --silent --mode=install cp mod_jk.la /home/test/tomcat-connectors-1.2.37-src/native/apache-2.0/
libtool: install: warning: remember to run `libtool --finish /home/cps/apache/modules'


Warning!  dlname not found in /home/test/tomcat-connectors-1.2.37-src/native/apache-2.0/mod_jk.la.
Assuming installing a .so rather than a libtool archive.
make[1]: Leaving directory `/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0'
make[1]: Entering directory `/home/test/tomcat-connectors-1.2.37-src/native'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/test/tomcat-connectors-1.2.37-src/native'
target="all"; \
list='common apache-2.0'; \
for i in $list; do \
    echo "Making $target in $i"; \
    if test "$i" != "."; then \
       (cd $i && make $target) || exit 1; \
    fi; \
done;
Making all in common
make[1]: Entering directory `/home/test/tomcat-connectors-1.2.37-src/native/common'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/test/tomcat-connectors-1.2.37-src/native/common'
Making all in apache-2.0
make[1]: Entering directory `/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0'
../scripts/build/instdso.sh SH_LIBTOOL='/home/cps/apache/build/libtool --silent' mod_jk.la `pwd`
/home/cps/apache/build/libtool --silent --mode=install cp mod_jk.la /home/test/tomcat-connectors-1.2.37-src/native/apache-2.0/
libtool: install: warning: remember to run `libtool --finish /home/cps/apache/modules'
Warning!  dlname not found in /home/test/tomcat-connectors-1.2.37-src/native/apache-2.0/mod_jk.la.
Assuming installing a .so rather than a libtool archive.
make[1]: Leaving directory `/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0'
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native# cd apache-2.0/
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0# ls
bldjk54.qclsrc  Makefile          Makefile.in  mod_jk.c    mod_jk.lo
bldjk.qclsrc    Makefile.apxs     Makefile.vc  mod_jk.dsp  mod_jk.o
config.m4       Makefile.apxs.in  mod_jk.a     mod_jk.la   NWGNUmakefile
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0# cp mod_jk.so /home/cps/apache/modules/
cp: cannot stat `mod_jk.so': No such file or directory
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0# cp mod_jk.so /home/cps/apache/modules
cp: cannot stat `mod_jk.so': No such file or directory
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0# ls
bldjk54.qclsrc  Makefile          Makefile.in  mod_jk.c    mod_jk.lo
bldjk.qclsrc    Makefile.apxs     Makefile.vc  mod_jk.dsp  mod_jk.o
config.m4       Makefile.apxs.in  mod_jk.a     mod_jk.la   NWGNUmakefile
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0# cp mod_jk.so /home/cps/apache/modules/


cp: cannot stat `mod_jk.so': No such file or directory
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0# ll
total 1460
drwxr-xr-x  3 root bin     4096 2012-10-21 21:48 ./
drwxr-xr-x 10 root bin     4096 2012-10-21 21:47 ../
-rw-r--r--  1 root bin    10350 2011-11-16 15:07 bldjk54.qclsrc
-rw-r--r--  1 root bin     9541 2011-11-16 15:07 bldjk.qclsrc
-rw-r--r--  1 root bin     1335 2010-09-14 00:50 config.m4
drwxr-xr-x  2 root root    4096 2012-10-21 21:48 .libs/
-rw-r--r--  1 root root    3026 2012-10-21 21:47 Makefile
-rw-r--r--  1 root root    1392 2012-10-21 21:47 Makefile.apxs
-rw-r--r--  1 root bin     1299 2012-05-09 21:08 Makefile.apxs.in
-rw-r--r--  1 root bin     2848 2012-05-09 21:08 Makefile.in
-rw-r--r--  1 root bin     6947 2012-03-09 14:42 Makefile.vc
-rw-r--r--  1 root root 1128910 2012-10-21 21:48 mod_jk.a
-rw-r--r--  1 root bin   135909 2012-05-05 20:44 mod_jk.c
-rw-r--r--  1 root bin    11019 2011-11-14 22:56 mod_jk.dsp
-rw-r--r--  1 root root     748 2012-10-21 21:48 mod_jk.la
-rw-r--r--  1 root root     297 2012-10-21 21:48 mod_jk.lo
-rw-r--r--  1 root root  129576 2012-10-21 21:48 mod_jk.o
-rw-r--r--  1 root bin     6351 2011-11-16 14:46 NWGNUmakefile
root@ubuntu:/home/test/tomcat-connectors-1.2.37-src/native/apache-2.0# 


[解决办法]
换个版本编译试试

热点排行