본문 바로가기
MiddleWare/Apache, Tomcat

아파치 설치 중 /usr/bin/apxs를 찾지 못하는 경우

by hnrupangit 2022. 9. 29.
아파치 설치 중 /usr/bin/apxs를 찾지 못하는 경우

 

아파치 설치 전 사전준비를 하던 중, apxs 경로를 찾지 못한다는 오류가 발생하였습니다.

[root@prdmetaap01 native]# ./configure --with-apxs=/usr/bin/apxs
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for test... /bin/test
checking for grep... /bin/grep
checking for echo... /bin/echo
checking for sed... /bin/sed
checking for cp... /bin/cp
checking for mkdir... /bin/mkdir
need to check for Perl first, apxs depends on it...
checking for perl... /bin/perl
configure: error: Invalid location for apxs: '/usr/bin/apxs'
[root@prdmetaap01 native]#

분명히 설치했었는데 왜 없을까요..

/usr/sbin/apxs 경로에도 보이지 않았고, find로 찾아도 보이지 않았습니다.

결국 httpd-devel 부터 재설치 해보기로 했습니다.

 

$ yum -y install httpd-devel

 

[root@prdmetaap01 native]# make install
Making install in common
make[1]: Entering directory `/etc/httpd/tomcat-connectors-1.2.48-src/native/common'
make[1]: Nothing to be done for `install'.
make[1]: Leaving directory `/etc/httpd/tomcat-connectors-1.2.48-src/native/common'
Making install in apache-2.0
make[1]: Entering directory `/etc/httpd/tomcat-connectors-1.2.48-src/native/apache-2.0'

Installing files to Apache Modules Directory...
/usr/bin/apxs -i mod_jk.la
/usr/lib64/httpd/build/instdso.sh SH_LIBTOOL='/usr/lib64/apr-1/build/libtool' mod_jk.la /usr/lib64/httpd/modules
/usr/lib64/apr-1/build/libtool --mode=install install mod_jk.la /usr/lib64/httpd/modules/
libtool: install: install .libs/mod_jk.so /usr/lib64/httpd/modules/mod_jk.so
libtool: install: install .libs/mod_jk.lai /usr/lib64/httpd/modules/mod_jk.la
libtool: install: install .libs/mod_jk.a /usr/lib64/httpd/modules/mod_jk.a
libtool: install: chmod 644 /usr/lib64/httpd/modules/mod_jk.a
libtool: install: ranlib /usr/lib64/httpd/modules/mod_jk.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/bin:/data/tomcat/bin:/root/bin:/sbin" ldconfig -n /usr/lib64/httpd/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib64/httpd/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.
----------------------------------------------------------------------
chmod 755 /usr/lib64/httpd/modules/mod_jk.so

Please be sure to arrange /etc/httpd/conf/httpd.conf...

make[1]: Leaving directory `/etc/httpd/tomcat-connectors-1.2.48-src/native/apache-2.0'
make[1]: Entering directory `/etc/httpd/tomcat-connectors-1.2.48-src/native'
make[2]: Entering directory `/etc/httpd/tomcat-connectors-1.2.48-src/native'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/etc/httpd/tomcat-connectors-1.2.48-src/native'
make[1]: Leaving directory `/etc/httpd/tomcat-connectors-1.2.48-src/native'

 

재설치 후 make / make install 에 성공하였습니다.

흠.. 설치하는 과정에서 문제가 있었던 걸까요.. 왜일까....

댓글