-
Problema bandwidthd
Galera estou tentando instalar o programa bandwidthd e está dando problema na hora execute o configure, alertando que nao tem a biblioteca libpng, o problema que instalei esta biblioteca e esta funcionando e mesmo assim o erro persiste, tem como alguem me dar uma luz ?
/opt/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/ginstall -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... libraries /usr/X11/lib, headers
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... no
configure: error: Bandwidthd requires but cannot libpng
Obrigado
-
Re: Problema bandwidthd
E ai pessoal consegui uma luz mas veio outro problema, desta vez pior indica qua biblioteca GD nao esta instalada, mas ja instalei pq encontrei o pacote no slackware chamado: gd-2.0.1-i386-1.tgz e mesmo assim o problema persiste.
./configure CFLAGS=-lz
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/ginstall -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... libraries /usr/X11/lib, headers
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... no
configure: error: Bandwidthd requires but cannot find libgd
E agora oque eu faco ?
Valeu !!! :mrgreen:
-
Re: Problema bandwidthd
Caro usuario,
sempre que der este tipo de erro eh porque o configure nao achou um determinada biblioteca, entao voce tenta instalar a biblioteca.
ex.:
configure: error: Bandwidthd requires but cannot libpng
instale a libpng-dev (sempre o pacote de desenvolvimento tambem)
-
Re: Problema bandwidthd
A biblioteca libpng está instalada
root@bigbrother:/home/junior# ls /usr/local/libpng/*/
/usr/local/libpng/bin/:
libpng-config libpng12-config
/usr/local/libpng/include/:
libpng libpng12 png.h pngconf.h
/usr/local/libpng/lib/:
libpng.a libpng.so libpng.so.3 libpng.so.3.1.2.12 libpng12.a libpng12.so libpng12.so.0 libpng12.so.0.1.2.12 pkgconfig
/usr/local/libpng/man/:
man3 man5
E quando execute este comando
root@bigbrother:/opt/bandwidthd-2.0.1# ./configure --with-png-dir=/usr/local/libpng/
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/ginstall -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... libraries /usr/X11/lib, headers
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... no
configure: error: Bandwidthd requires but cannot libpng
Entaoisto que acontece, vc tem ideia ?
-
Re: Problema bandwidthd
Olá galera, continuando na minha batalha para instalar as maledetas biblioteca no slackware, comecei do zero vou instalar a biblioteca Gd, para instalar a biblioteca GD preciso antes instalar o Freetype, instalei o Freetype normalmente. como podem ver mais abaixo :
ls /usr/local/freetype/*/
/usr/local/freetype/bin/:
freetype-config
/usr/local/freetype/include/:
freetype2 ft2build.h
/usr/local/freetype/lib/:
libfreetype.a libfreetype.la libfreetype.so libfreetype.so.6 libfreetype.so.6.3.10 pkgconfig
/usr/local/freetype/share/:
aclocal
Ok , freetype instalado, agora vou instalar o GD, fiz a configure do gd até a funcionou, abaixo resultado :
root@bigbrother:/opt/gd-2.0.33# ./configure --prefix=/usr/local/gd/ --with-freetype=/usr/local/freetype/
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking for a sed that does not truncate output... /bin/sed
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking command to parse /usr/bin/nm -B output... ok
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... (cached) ranlib
checking for X... libraries /usr/X11/lib, headers
checking for ANSI C header files... (cached) yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking for iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking whether iconv.h defines iconv_t... yes
checking for sin... no
checking for sin in -lm... yes
checking for deflate in -lz... yes
checking for libpng12-config... /usr/bin/libpng12-config
checking for libpng-config... /usr/bin/libpng-config
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_read_struct in -lpng12... yes
checking for freetype-config... /usr/local/freetype//bin/freetype-config
checking for FT_Init_FreeType in -lfreetype... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
checking for FcInit in -lfontconfig... yes
checking for jpeg_set_defaults in -ljpeg... yes
checking for XpmReadFileToXpmImage in -lXpm... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for cc_r... gcc
** Configuration summary for gd 2.0.33:
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: yes
Support for Fontconfig library: yes
Support for Xpm library: yes
Support for pthreads: yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/Makefile
config.status: creating config/gdlib-config
config.status: creating test/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
--------------
agora quando executo o comando make install, olha que maravilha de erro !!
root@bigbrother:/opt/gd-2.0.33# make install
Making install in config
make[1]: Entering directory `/opt/gd-2.0.33/config'
make[2]: Entering directory `/opt/gd-2.0.33/config'
test -z "/usr/local/gd//bin" || mkdir -p -- "/usr/local/gd//bin"
/usr/bin/ginstall -c 'gdlib-config' '/usr/local/gd//bin/gdlib-config'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/opt/gd-2.0.33/config'
make[1]: Leaving directory `/opt/gd-2.0.33/config'
Making install in test
make[1]: Entering directory `/opt/gd-2.0.33/test'
make[2]: Entering directory `/opt/gd-2.0.33/test'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/opt/gd-2.0.33/test'
make[1]: Leaving directory `/opt/gd-2.0.33/test'
make[1]: Entering directory `/opt/gd-2.0.33'
if /bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/freetype//include/freetype2 -I/usr/local/freetype//include -I/usr/local/freetype//include -g -O2 -MT gdft.lo -MD -MP -MF ".deps/gdft.Tpo" -c -o gdft.lo gdft.c; \
then mv -f ".deps/gdft.Tpo" ".deps/gdft.Plo"; else rm -f ".deps/gdft.Tpo"; exit 1; fi
rm -f .libs/gdft.lo
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/freetype//include/freetype2 -I/usr/local/freetype//include -I/usr/local/freetype//include -g -O2 -MT gdft.lo -MD -MP -MF .deps/gdft.Tpo -c gdft.c -fPIC -DPIC -o .libs/gdft.lo
gdft.c:1366:35: fontconfig/fontconfig.h: No such file or directory
gdft.c:1429: error: syntax error before '*' token
gdft.c:1429: error: syntax error before '*' token
gdft.c: In function `find_font':
gdft.c:1431: error: `FcResult' undeclared (first use in this function)
gdft.c:1431: error: (Each undeclared identifier is reported only once
gdft.c:1431: error: for each function it appears in.)
gdft.c:1431: error: syntax error before "result"
gdft.c:1433: error: `pattern' undeclared (first use in this function)
gdft.c:1433: error: `FcMatchPattern' undeclared (first use in this function)
gdft.c:1434: error: `FcMatchFont' undeclared (first use in this function)
gdft.c:1437: error: `result' undeclared (first use in this function)
gdft.c:1437: warning: return makes pointer from integer without a cast
gdft.c: At top level:
gdft.c:1442: error: syntax error before '*' token
gdft.c: In function `find_postscript_font':
gdft.c:1444: error: `FcPattern' undeclared (first use in this function)
gdft.c:1444: error: `font' undeclared (first use in this function)
gdft.c:1447: error: `fontpattern' undeclared (first use in this function)
gdft.c:1449: error: `fontname' undeclared (first use in this function)
gdft.c:1450: error: `FcChar8' undeclared (first use in this function)
gdft.c:1450: error: `family' undeclared (first use in this function)
gdft.c:1452: error: `pattern' undeclared (first use in this function)
gdft.c:1454: error: `FC_FAMILY' undeclared (first use in this function)
gdft.c:1454: error: `FcTypeString' undeclared (first use in this function)
gdft.c:1455: error: `FC_STYLE' undeclared (first use in this function)
gdft.c:1460: error: `FcResultMatch' undeclared (first use in this function)
gdft.c: In function `font_pattern':
gdft.c:1479: error: `FcPattern' undeclared (first use in this function)
gdft.c:1479: error: `font' undeclared (first use in this function)
gdft.c:1480: error: `FcChar8' undeclared (first use in this function)
gdft.c:1480: error: `file' undeclared (first use in this function)
gdft.c:1481: error: `pattern' undeclared (first use in this function)
gdft.c:1494: error: syntax error before "FcChar8"
gdft.c:1501: error: `FC_FILE' undeclared (first use in this function)
gdft.c:1501: error: `FcResultMatch' undeclared (first use in this function)
make[1]: *** [gdft.lo] Error 1
make[1]: Leaving directory `/opt/gd-2.0.33'
make: *** [install-recursive] Error 1
Pessoal o que esta acontecendo preciso da ajuda de voce !
vou continuar aqui pesquisa para aresolver este problema !!!
Obrigado