질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

apache + ucd-snmp + php 컴파일 오류

작성자 정보

  • 우라차 작성
  • 작성일

컨텐츠 정보

본문

안녕하세요... 고수님들... 다름이 아니라..

제가 ucd-snmp-4.2.3 이랑.. apache .1.3.x 랑 php 4.x랑 컴파일을 했는데 마지막 apache 컴파일 도중 에러가 나더라구요..   아래와 같이 실행 했거든요..  -lsnmp 옶션이 없어서 그런것같은데..  ucd-snmp컴파일할때 따로 옵션을 줘야하나요...?  답변 부탁드립니다...(-.-)(__)

./configure --prefix=/home/httpd --enable-rule=SHARED_CORE --enable-shared=max --enable-module=all --activate-module=src/modules/php4/libphp4.a

Configuring for Apache, Version 1.3.23
+ using installation path layout: Apache (config.layout)
+ activated php4 module (modules/php4/libphp4.a)
Creating Makefile
Creating Configuration.apaci in src
cd ..; gcc  -DLINUX=22 -I/usr/include/db1 -I/usr/local/php -I/usr/local/php/main
-I/usr/local/php/main -I/usr/local/php/Zend -I/usr/local/php/Zend -I/usr/local/
php/TSRM -I/usr/local/php/TSRM -I/usr/local/php -fpic -DSHARED_CORE `./apaci`  
  -o helpers/dummy helpers/dummy.c   -Wl,-rpath,/usr/local/libmcrypt/lib -Wl,-rp
ath,/usr/local/mhash/lib -Wl,-rpath,/home/mysql//lib/mysql -Wl,-rpath,/home/pgsq
l//lib -Wl,-rpath,/usr/local/ucd-smp/lib  -rdynamic -L/usr/local/libmcrypt/lib -
L/usr/local/mhash/lib -L/home/mysql//lib/mysql -L/home/pgsql//lib -L/usr/local/u
cd-smp/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4   -ld
l -lsnmp -lpq -lmysqlclient -lmhash -lmcrypt -lltdl -lgd -lcrypt -lresolv -lm -l
dl -lnsl  -lresolv -lcrypt   -lm -lcrypt -lndbm -ldb -lexpat -ldl
/usr/bin/ld: cannot find -lsnmp 
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 rewrite_module uses ConfigStart/End
+ using -lndbm for DBM support
      enabling DBM support for mod_rewrite
    o dbm_auth_module uses ConfigStart/End
    o db_auth_module uses ConfigStart/End
      using Berkeley-DB/3.x for mod_auth_db (-ldb)
    o php4_module uses ConfigStart/End
+ using system Expat
+ enabling generation of Apache core as DSO
+ using -ldl for vendor DSO support
+ 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 =============

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,284 명
  • 현재 강좌수 :  36,959 개
  • 현재 접속자 :  361 명