<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Since it's complaining about /lib/cpp,</div><div><br></div><div>./configure: line 5164: /lib/cpp: No such file or directory</div><div><br></div><div>I would say the problem is not zlib, but missing C++ compiler (at least on my machine, /lib/cpp eventually points to /usr/bin/cpp-5), although I don't know why ./configure would catch that problem earlier since a successful report contains:</div><div><br></div><div>  C compiler:                 clang -O2 -Wall -pedantic -Wextra <br>  C++ compiler:               clang++ -std=c++14 -fexceptions<br></div><div><br></div><div>The checking phase reports only about C compiler, so the difference is perhaps there.<br></div><div><br></div><div>checking for gcc... clang<br>checking whether the C compiler (clang -O2 -Wall -pedantic -Wextra -s) works... yes<br>checking whether the C compiler (clang -O2 -Wall -pedantic -Wextra -s) is a cross-compiler... no<br>checking whether we are using GNU C... yes<br>checking whether clang accepts -g... yes<br><br></div><div><br></div><div><br>On Fri, Nov 9, 2018 at 10:58 PM Michael Barton <<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>> wrote:<br>><br>> I could see that it could not find zlib in the configure output. I don't know why, since I DO have zlib in the appropriate place <br>><br>> MIchael<br>><br>> On Nov 9, 2018, at 4:21 PM, Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> wrote:<br>><br>> Just scroll to the end of the file.<br>><br>><br>> ; return 0; }<br>> configure:5066: checking for socket in -lsocket<br>> configure:5083:<br>> /Applications/GRASS-7.4.2.app/Contents/Resources/bin/clang -o conftest<br>> -g -O2    -I/Applications/GRASS-7.4.2.app/Contents/Resources/include<br>> -L/Applications/GRASS-7.4.2.app/Contents/Resources/lib conftest.c<br>> -lsocket   1>&5<br>> ld: library not found for -lsocket<br>> clang-4.0: error: linker command failed with exit code 1 (use -v to<br>> see invocation)<br>> configure: failed program was:<br>> #line 5072 "configure"<br>> #include "confdefs.h"<br>> /* Override any gcc2 internal prototype to avoid an error.  */<br>> /* We use char because int might match the return type of a gcc2<br>>    builtin and then its argument prototype would still apply.  */<br>> char socket();<br>><br>> int main() {<br>> socket()<br>> ; return 0; }<br>> configure:5131: checking for location of zlib includes<br>> configure:5157: checking for zlib.h<br>> configure:5165: /lib/cpp<br>> -I/Applications/GRASS-7.4.2.app/Contents/Resources/include conftest.c<br>><br>> /dev/null 2>conftest.out<br>><br>> ./configure: line 5164: /lib/cpp: No such file or directory<br>> configure: failed program was:<br>> #line 5160 "configure"<br>> #include "confdefs.h"<br>> #include <zlib.h></div></div></div></div></div>