: 제가 올린방법은 connector 소스를 직접 컴파일 하는것입니다.
: connector 소스를 컴파일하면 아파치 홈에 modules 디렉토리에
: mod_jk.so 화일이 생성됍니다.
:
: 그리고 제가 올린 환경 설정부분에서
: server.xml 에 listener 태그를 추가 하고
: tomcat 실행후에
: conf 디렉토리에 auto/mod_jk.conf화일이 생성됍니다.
: 그화일 내용을 직접 보시길( virtual host )
:
: virtual host 에서도 잘 잘동합니다.
: 물론 아파치 쪽에서 가상 호스트 설정 해줘도 잘됍니다. ( 적절한수정 )
설명대로 소스 다운받고 컴파일 하고 했는데 이부분에서 잘 안되네요.
아파치는 httpd-2.0.39.tar
jdk 는 j2sdk-1.4.1-beta-linux-i586
톰켓은 jakarta-tomcat-4.0.4-src.tar
jakarta-tomcat-connectors-4.0.4-src.tar
아파치 경로는 /usr/local/apache 입니다
jdk 경로는 /usr/local/jdk 입니다..
아파치 설치후 httpd -l 로 mod.so.c 가 있는지 확인 한 상태이고..
그리고 바로 tomcat install 을 하고 경로는 /usr/local/tomcat 로 하였습니다
#tar xvzf apache-tomcat-connector-src-4.0.4.tar.gz
#cd jakarta-tomcat-connectors-src-4.0.4/jk/native
#./buildconf.sh;
#./configure --with-apxs=/usr/local/apache/bin/apxs --with-java-home=/usr/local/jdk --with-java-platform=2 -enable-jni
#make
#make install
make 는 error 없이 잘 되는데 make install 에서 error가 생기네여
error 부분입니다
Making install in common
make[1]: Entering directory `/home/netblue/bata/jakarta-tomcat-connectors-4.0.4-src/jk/native/common'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/netblue/bata/jakarta-tomcat-connectors-4.0.4-src/jk/native/common'
Making install in jni
make[1]: Entering directory `/home/netblue/bata/jakarta-tomcat-connectors-4.0.4-src/jk/native/jni'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/home/netblue/bata/jakarta-tomcat-connectors-4.0.4-src/jk/native/jni'
Making install in apache-2.0
make[1]: Entering directory `/home/netblue/bata/jakarta-tomcat-connectors-4.0.4-src/jk/native/apache-2.0'
Installing files to Apache Modules Directory...
/usr/local/apache/bin/apxs -i mod_jk.la
/usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' mod_jk.la /usr/local/apache/modules
/usr/local/apache/build/libtool --mode=install cp mod_jk.la /usr/local/apache/modules/
cp .libs/mod_jk.lai /usr/local/apache/modules/mod_jk.la
cp .libs/mod_jk.a /usr/local/apache/modules/mod_jk.a
ranlib /usr/local/apache/modules/mod_jk.a
chmod 644 /usr/local/apache/modules/mod_jk.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/apache/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/apache/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
mv: cannot move `/usr/local/apache/modules/' to a subdirectory of itself, `/usr/local/apache/modules/mod_jk.so'
chmod 755 /usr/local/apache/modules/mod_jk.so
chmod: getting attributes of `/usr/local/apache/modules/mod_jk.so': No such file or directory
apxs:Error: Command failed with rc=65536
.
make[1]: *** [install_dynamic] Error 1
make[1]: Leaving directory `/home/netblue/bata/jakarta-tomcat-connectors-4.0.4-src/jk/native/apache-2.0'
make: *** [install-recursive] Error 1
왜 이런지 답변부탁드립니다.
참,
제가 jakarta-tomcat-4.0.4-src.tar 제대로 다운 받은지 모르겠네요?
용량은 1.71MB 입니다
그런데 압축을 풀었는데 /bin 디렉토리가 없네요..
그럼 수고 하세요.