방금 mod_jk 를 테스트해 보았는데
저 같은 경우 이상없습니다.(좀
오래된 시스템 : 한컴 1.2)
우선 apache2.x를 설치할때 /usr/local/apache
로 설치하지 마시고
/usr/local/apache2 로 설치하세요(기본
권장 사항입니다.)
/usr/local/apache2/build
디렉토리에
config_vars.mk instdso.sh library.mk libtool ltlib.mk program.mk rules.mk
special.mk
이런 파일들이 생길겁니다.
그리고,
...
# ./configure --with-apxs=/usr/local/apache2/bin/apxs
# make
# make install
로 해보세요.
libtool 문제가 아니라면 아마 기존 아파치 1.3 기본 설치 경로와
서로 충돌(?)이 아닌가 쉽네요.
굳지 /etc/ld.so.conf
파일에 /usr/local/apach2/lib 를 추가할 필요는 없습니다.
[타니]님이 남기신 글:
>]#/usr/local/apache/bin/apxs -i -a -c mod_info.c
>아파치에서 모듈을 생성하려고 하니 똑같은 에러가
나는데요..
>모듈을 생성하는 이것이 되면...톰켓도 되었었는데...^^;;
>OS 를 다시 깔어두 역시 마찬가지로 에러가
나는군여...
>아래 에러메세지에 뭔가 있을것 같은데....도저히
이해를 할수가 없군여...
>검토 좀 부탁드립니다................
>
>
>chmod 644 /usr/local/apache/modules/mod_info.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.
>----------------------------------------------------------------
>------
>Warning! dlname not found
>in /usr/local/apache/modules/mod_info.la.
>Assuming installing a .so rather than a libtool archive.
>chmod 755 /usr/local/apache/modules/mod_info.so
>chmod: failed to get attributes of
>`/usr/local/apache/modules/mod_info.so': 그런 파일이나
디렉토리
>가 없음
>apxs:Error: Command failed with rc=65536
>
>
>특히 이부분에서
>Warning! dlname not found
>in /usr/local/apache/modules/mod_info.la.
>
>그래서
>]#cat mod_info.la
>
># mod_info.la - a libtool library file
># Generated by ltmain.sh - GNU libtool 1.4.3 (1.922.2.110
>2002/10/23
>01:39:54)
>#
># Please DO NOT delete this file!
># It is necessary for linking the library.
>
># The name that we can dlopen(3).
>dlname=''
>
># Names of this library.
>library_names=''
>
># The name of the static archive.
>old_library='mod_info.a'
>
># Libraries that this one depends upon.
>dependency_libs=''
>
># Version information for mod_info.
>current=0
>age=0
>revision=0
>
># Is this an already installed library?
>installed=yes
>
># Files to dlopen/dlpreopen
>dlopen=''
>dlpreopen=''
>
># Directory that this library needs to be installed in:
>libdir='/usr/local/apache/modules'
>
>mod_info.la 파일에서 dlname='' library_names='' 등이 명시되지
>않아서 그런것같은데....명시를
해줘야 되는건지...아님
>libtool, apxs 같은데서 에러가 있는건지..................^^;;
>
>
>부디 조언줌 꼭 부탁드립니다....
>이것땜에 며칠째 삽질?하구 있답니다......
>
>꼭 좀 조언 부탁드립니다....................(((꾸벅)))
>
>[산이]님이 남기신 글:
>
>>아래의 설치방법은 제가 직접해보질 않아서
>>정확하게는 모르겠고..
>>다만
>>아파치2.0의 경우는
>>
>>--with-apxs= 가 아니고
>>
>>--with-apxs2=
>>
>>인걸로 아는데 한번 옵션을 체크해 보시길 바랍니다.
>>
>>
>>[타니]님이 남기신 글:
>>
>>>
>>>apache-2.0.44 tomcat-4.1.18 연동해서 인스톨하는데...
>>>tomcat-connectors-4.1.18 에서 mod_jk.so 생성시
>>># cd /tmp/jakarta-tomcat-connectors-4.1.12-src/jk/native
>>># ./buildconf.sh
>>># ./configure --with-apxs=/usr/local/apache/bin/apxs
>>># make
>>># make install
>>>아래와 같은 에러가 생겼는데....의미를
모르겠군여....
>>>조언 부탁드립니다...
>>>#cat ld.so.conf
>>>/usr/kerberos/lib
>>>/usr/X11R6/lib
>>>/usr/local/apache/lib
>>>/usr/local/apache/modules
>>>/usr/local/mysql/lib
>>>/lib
>>>/usr/lib
>>>/usr/local/lib
>>>
>>>-------------------------------------error---------
>>>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.
>>>----------------------------------------------------------------------
>>>Warning! dlname not found in /usr/local/apache/modules/mod_jk.la.
>>>Assuming installing a .so rather than a libtool archive.
>>>chmod 755 /usr/local/apache/modules/mod_jk.so
>>>chmod: failed to get attributes of `/usr/local/apache/modules/mod_jk.so': 그런
파일이나 디렉토리가 없음
>>>apxs:Error: Command failed with rc=65536
>>>.
>>>make[1]: *** [install_dynamic] 오류 1
>>>make[1]: 나감
`/usr/local/jakarta-tomcat-connectors-4.1.18-src/jk/native/apache-2.0'
디렉토리
>>>make: *** [install-recursive] 오류 1
>>
>>========================================
>
>========================================
========================================
|