On Tuesday 09 December 2014 21:50:57 Charles Diza wrote: > Wget 1.16.1 refuses to build on OSX 10.10.1, with Xcode 6.1.1. > > I've posted the error below; I have never seen it before. It appears that > wget suddenly requires that pcre be installed. Is this true? There was no > mention of it in the latest NEWS file in the tarball. > > For the record, my ./configure flags were: ./configure --with-ssl=openssl > --with-libssl-prefix=/usr/local/ssl > > -Charles > > > gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" > -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../lib -I../lib > -I/usr/local/include -DHAVE_LIBSSL -DNDEBUG -MT html-url.o -MD -MP -MF > .deps/html-url.Tpo -c -o html-url.o html-url.c > html-url.c:628:33: warning: expression result unused [-Wunused-value] > mcharset = parse_charset (content); > ^~~~~~~ > ./iri.h:59:38: note: expanded from macro 'parse_charset' > #define parse_charset(str) (str, NULL) > ^ > 1 warning generated. > mv -f .deps/html-url.Tpo .deps/html-url.Po > gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" > -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../lib -I../lib > -I/usr/local/include -DHAVE_LIBSSL -DNDEBUG -MT http.o -MD -MP -MF > .deps/http.Tpo -c -o http.o http.c > http.c:2657:36: warning: expression result unused [-Wunused-value] > tmp = parse_charset (tmp2); > ^~~~ > ./iri.h:59:38: note: expanded from macro 'parse_charset' > #define parse_charset(str) (str, NULL) > ^ > 1 warning generated. > mv -f .deps/http.Tpo .deps/http.Po > gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC=\"/usr/local/etc/wgetrc\" > -DLOCALEDIR=\"/usr/local/share/locale\" -I. -I../lib -I../lib > -I/usr/local/include -DHAVE_LIBSSL -DNDEBUG -MT init.o -MD -MP -MF > .deps/init.Tpo -c -o init.o init.c > init.c:52:11: fatal error: 'pcre.h' file not found > # include <pcre.h> > ^ > 1 error generated. > make[3]: *** [init.o] Error 1 > make[2]: *** [all] Error 2 > make[1]: *** [all-recursive] Error 1 > make: *** [all] Error 2
Hi Charles, looks like you haven't installed pcre header files. You could either ./configure --disable-pcre or install pcre header files. see also http://stackoverflow.com/questions/19541066/how-to-install-pcre-development-headers-on-mac-osx Tim
