>> Edit article
이름
제목
패스워드
리눅스는 레드햇 6.2입니다. mysql(mysql-3.23.12)을 설치했습니다. 그리고 아파치 데몬을 죽이고 압축을 푼다음 /etc/httpd 디렉토리에 옮기고 여기서 ./configure --prefix=/home/httpd를 하고나서 /usr/local/php에 압축을 풀고 다음과 같이 했습니다. #pwd /usr/local/php #./configure --with-mysql=/usr/local/mysql --with-apache=/home/httpd --enable-track-vars 위와 같이 하고 make, make install을 했습니다. 여기까지 문제가 없습니다. 그리고 아파치를 설치하는데 에러가 생겨요 #cd /home/httpd [root@ns httpd]# ./configure --prefix=/home/httpd --activate-module=src/modules/php4/libphp4.a Configuring for Apache, Version 1.3.12 + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src cd ..; gcc -DLINUX=2 -I/usr/local/php -I/usr/local/php/Zend -I/usr/local/php/Zend -I/usr/local/php -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy helpers/dummy.c -Wl,-rpath,/usr/local/mysql/lib/mysql -rdynamic -L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -lgdbm -ldl -lmysqlclient -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl -lresolv -lm -lcrypt /usr/bin/ld: cannot find -lmysqlclient collect2: ld returned 1 exit status make: *** [dummy] Error 1 <<------이부분 에러 Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + checking sizeof various data types + doing sanity check on compiler and options ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. ======== Error Output for sanity check ======== ============= End of Error Report ============= Aborting! [root@ns httpd]# make ===> src make[1]: Entering directory `/home/httpd' make[2]: Entering directory `/home/httpd/src' make[2]: *** No rule to make target `all'. Stop. make[2]: Leaving directory `/home/httpd/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/home/httpd' make: *** [build] Error 2 [root@ns httpd]# make all ===> src make[1]: Entering directory `/home/httpd' make[2]: Entering directory `/home/httpd/src' make[2]: *** No rule to make target `all'. Stop. make[2]: Leaving directory `/home/httpd/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/home/httpd' make: *** [build] Error 2 컴파일을 하면 위와같은 에러가 나옵니다. 이전버전으로 똑같은 방법으로 설치를 했는데 아무 문제가 없었는데 아파치와 php를 업하면서 에러가 나요 처음부터 잘못됐는지 어디서 틀렸는지 가르쳐 주세요 고수님들의 답변 부탁드립니다.
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved