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

Bandwidth설정시 에러 문제

작성자 정보

  • 지나가는 이 작성
  • 작성일

컨텐츠 정보

본문

홍석범님의 서버 보안관리 실무에 나온 것들을 실습하는 도중에

Bandwidthd에 관련된 에러가 나와서 알아보다가 이렇게 질문을 합니다.

우선 설치는 libgd, libpng, ligpcap를 Source로 하여 ./configure -> make -> make install를 하여 설치를 하였습니다.

설치하는 동안 에러 메세지는 보지 못했습니다.

그런데,  bandwidth를 설치할때 ./configure 는 아래와 이상이 없이 되었습니다.

bandwidthd-2.0.1]# ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for bison... bison -y
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking how to run the C preprocessor... gcc -E
checking for X... no
checking for /sw/lib... no
checking for /sw/include... no
checking for /usr/pkg/lib... no
checking for /usr/pkg/include... no
checking for connect in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for inet_aton in -lresolv... yes
checking for pow in -lm... yes
checking for libiconv_open in -liconv... no
checking for png_read_info in -lpng... yes
checking for gdImageCreate in -lgd... yes
checking for pcap_open_live in -lpcap... yes
checking for /usr/local/pgsql/lib... no
checking for /usr/local/pgsql/include... no
checking for PQconnectdb in -lpq... no
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for gd.h... yes
checking for gdfonts.h... yes
checking for pcap.h... yes
checking for arpa/inet.h... yes
checking for errno.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for stddef.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/socket.h... yes
checking for sys/time.h... yes
checking for sys/wait.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for arpa/nameser.h... yes
checking for resolv.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ANSI C header files... no
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for unistd.h... (cached) yes
checking for pid_t... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tcphdr.source... yes
checking for struct tcphdr.th_sport... no
checking for struct tcphdr.dest... yes
checking for struct tcphdr.th_dport... no
checking for stdlib.h... (cached) yes
checking for working malloc... no
checking for ANSI C header files... (cached) no
checking whether time.h and sys/time.h may both be included... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... no
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... no
checking whether stat accepts an empty string... no
checking for alarm... (cached) yes
checking for gethostbyaddr... yes
checking for inet_ntoa... yes
checking for memset... yes
checking for strdup... yes
checking for strftime... yes
checking for pcap_findalldevs... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged

단, make를 할 경우 아래와 같은 에러 메세지가 나옵니다.

bandwidthd-2.0.1]# make
gcc -Wall -g -O2  -I/usr/local/include -DHAVE_CONFIG_H -DINSTALL_DIR=""/usr/local/bandwidthd"" bandwidthd.o graph.o conf.tab.o conf.l.o -o bandwidthd -L/usr/local/lib -lpcap -lgd -lpng -lm -lresolv -lnsl 
graph.o(.text+0xf4f): In function `GraphIp':
/usr/local/src/bandwidthd-2.0.1/graph.c:416: undefined reference to `gdImagePng'
graph.o(.text+0xf87):/usr/local/src/bandwidthd-2.0.1/graph.c:421: undefined reference to `gdImagePng'
collect2: ld returned 1 exit status
make: *** [bandwidthd] Error 1

문제해결을 할려고 하는데.. 어찌 해야 하는지 알려주시면 감사하겠습니다.

그럼..

꾸벅..

 

 

 

 

관련자료

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

공지사항


뉴스광장


  • 현재 회원수 :  60,133 명
  • 현재 강좌수 :  36,171 개
  • 현재 접속자 :  226 명