<div>seems i should add cc manually, since it is remove by email service provider:(</div><div><br></div><div>thank you, seems i should use export when i assign value to protobuf_CLFAGS and protobuf_LIBS, now succeeded to run configure, but failed to make.</div><div><br></div><div><div>export protobuf_CFLAGS=/home/bigforest/ins_t/include</div><div>export protobuf_LIBS=/home/bigforest/ins_t/lib</div><div>./configure --libdir=$HOME/ins_t/lib --includedir=$HOME/ins_t/include</div><div><br></div><div>failed when run make command</div><div><br></div><div>export protobuf_CFLAGS=/home/bigforest/ins_t/include</div><div>export protobuf_LIBS=/home/bigforest/ins_t/lib</div><div>./configure CFLAGS=-I/home/bigforest/ins_t/include LDFLAGS=-L/home/bigforest/ins_t/lib --prefix=$HOME/ins_t</div><div><br></div><div>/home/bigforest/ins_t/include</div><div><br></div><div><b>make and failed, error message is as follows:</b></div><div><br></div><div>make</div><div>make &nbsp;all-recursive</div><div>make[1]: Entering directory `/home/bigforest/code/mosh'</div><div>Making all in src</div><div>make[2]: Entering directory `/home/bigforest/code/mosh/src'</div><div>Making all in protobufs</div><div>make[3]: Entering directory `/home/bigforest/code/mosh/src/protobufs'</div><div>make &nbsp;all-am</div><div>make[4]: Entering directory `/home/bigforest/code/mosh/src/protobufs'</div><div>&nbsp; CXX &nbsp; &nbsp;userinput.pb.o</div><div>In file included from userinput.pb.cc:5:</div><div>userinput.pb.h:9:42: error: google/protobuf/stubs/common.h: No such file or directory</div><div>userinput.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is</div><div>userinput.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update</div><div>userinput.pb.h:14:2: error: #error your headers.</div><div>userinput.pb.h:22:52: error: google/protobuf/generated_message_util.h: No such file or directory</div><div>userinput.pb.h:23:42: error: google/protobuf/message_lite.h: No such file or directory</div><div>userinput.pb.h:24:44: error: google/protobuf/repeated_field.h: No such file or directory</div><div>userinput.pb.h:25:43: error: google/protobuf/extension_set.h: No such file or directory</div><div>userinput.pb.cc:10:40: error: google/protobuf/stubs/once.h: No such file or directory</div><div>userinput.pb.cc:11:45: error: google/protobuf/io/coded_stream.h: No such file or directory</div><div>userinput.pb.cc:12:50: error: google/protobuf/wire_format_lite_inl.h: No such file or directory</div><div><br></div><div><br></div><div><b>but the files are there, why make command cannot find them</b>:</div><div><br></div><div>[bigforest@host mosh]$ ls src</div><div>crypto &nbsp;examples &nbsp;frontend &nbsp;Makefile &nbsp;Makefile.am &nbsp;Makefile.in &nbsp;network &nbsp;protobufs &nbsp;statesync &nbsp;terminal &nbsp;tests &nbsp;util</div><div>[bigforest@host mosh]$&nbsp;</div><div>[bigforest@host mosh]$&nbsp;</div><div>[bigforest@host mosh]$&nbsp;</div><div>[bigforest@host mosh]$ ls /home/bigforest/ins_t/include</div><div>google</div><div>[bigforest@host mosh]$ ls /home/bigforest/ins_t/include/google</div><div>protobuf</div><div>[bigforest@host mosh]$ ls /home/bigforest/ins_t/include/google/protobuf/stubs/</div><div>atomicops.h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;atomicops_internals_arm_qnx.h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;atomicops_internals_macosx.h &nbsp; &nbsp;atomicops_internals_pnacl.h &nbsp; &nbsp;atomicops_internals_x86_msvc.h &nbsp;once.h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; template_util.h</div><div>atomicops_internals_arm_gcc.h &nbsp;atomicops_internals_atomicword_compat.h &nbsp;atomicops_internals_mips_gcc.h &nbsp;atomicops_internals_x86_gcc.h &nbsp;common.h &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;platform_macros.h &nbsp;type_traits.h</div></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;Original&nbsp;------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b>&nbsp;"Alex Chernyakhovsky";&lt;achernya@MIT.EDU&gt;;</div><div><b>Send time:</b>&nbsp;Friday, Jun 13, 2014 1:16 PM</div><div><b>To:</b>&nbsp;"wowmailman"&lt;wowmailman@qq.com&gt;; <wbr></div><div><b>Cc:</b>&nbsp;"mosh-users"&lt;mosh-users@mit.edu&gt;; <wbr></div><div><b>Subject: </b>&nbsp;Re: 回复: [mosh-users] why i failed to build mosh? i have installedprotobuf, but configure said it cannot find it, why?</div></div><div><br></div>Hi,<br><br>Please don't remove mosh-users from the CC list.<br><br>As per the output, please set protobuf_CFLAGS and protobuf_LIBS on the<br>command line of configure.<br><br>Sincerely,<br>-Alex<br><br>On Fri, Jun 13, 2014 at 1:05 AM, wowmailman &lt;wowmailman@qq.com&gt; wrote:<br>&gt; i have added protoc to the path, now the error message is a bit different,<br>&gt; but it cannot find that protobuf package<br>&gt;<br>&gt; the error message is as follows:<br>&gt;<br>&gt; checking whether __STDC_ISO_10646__ is declared... yes<br>&gt; checking whether IUTF8 is declared... yes<br>&gt; checking for protobuf... no<br>&gt; configure: error: Package requirements (protobuf) were not met:<br>&gt;<br>&gt; No package 'protobuf' found<br>&gt;<br>&gt; Consider adjusting the PKG_CONFIG_PATH environment variable if you<br>&gt; installed software in a non-standard prefix.<br>&gt;<br>&gt; Alternatively, you may set the environment variables protobuf_CFLAGS<br>&gt; and protobuf_LIBS to avoid the need to call pkg-config.<br>&gt; See the pkg-config man page for more details.<br>&gt; [bigforest@host mosh]$ which protoc<br>&gt; ~/ins_t/bin/protoc<br>&gt; [bigforest@host mosh]$ echo $protobuf_CFLAGS<br>&gt; /home/bigforest/ins_t/include<br>&gt; [bigforest@host mosh]$ echo $protobuf_LIBS<br>&gt; /home/bigforest/ins_t/lib<br>&gt;<br>&gt; ./configure --libdir=$HOME/ins_t/lib --includedir=$HOME/ins_t/include<br>&gt; ./configure CFLAGS=-I/home/bigforest/ins_t/include<br>&gt; LDFLAGS=-L/home/bigforest/ins_t/lib --prefix=$HOME/ins_t<br>&gt; both failed<br>&gt; ------------------ 原始邮件 ------------------<br>&gt; 发件人: "Alex Chernyakhovsky";&lt;achernya@MIT.EDU&gt;;<br>&gt; 发送时间: 2014年6月13日(星期五) 中午12:51<br>&gt; 收件人: "wowmailman"&lt;wowmailman@qq.com&gt;;<br>&gt; 抄送: "mosh-users"&lt;mosh-users@mit.edu&gt;;<br>&gt; 主题: Re: [mosh-users] why i failed to build mosh? i have installedprotobuf,<br>&gt; but configure said it cannot find it, why?<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; Is there a protoc binary available in your $PATH?<br>&gt;<br>&gt; Sincerely,<br>&gt; -Alex<br>&gt;<br>&gt;<br>&gt; On Fri, Jun 13, 2014 at 12:49 AM, wowmailman &lt;wowmailman@qq.com&gt; wrote:<br>&gt;&gt; i have tried lots of options, and all failed to build mosh.<br>&gt;&gt; the main part of error message is as follows:<br>&gt;&gt;<br>&gt;&gt; ./configure CFLAGS=-I/home/bigforest/ins_t/include<br>&gt;&gt; LDFLAGS=-L/home/bigforest/ins_t/lib --prefix=$HOME/ins_t<br>&gt;&gt; checking for a BSD-compatible install... /usr/bin/install -c<br>&gt;&gt; checking whether build environment is sane... yes<br>&gt;&gt; checking for a thread-safe mkdir -p... /bin/mkdir -p<br>&gt;&gt; checking for gawk... gawk<br>&gt;&gt; checking whether make sets $(MAKE)... yes<br>&gt;&gt; checking for gcc... gcc<br>&gt;&gt; checking for C compiler default output file name... a.out<br>&gt;&gt; checking whether the C compiler works... yes<br>&gt;&gt; checking whether we are cross compiling... no<br>&gt;&gt; checking for suffix of executables...<br>&gt;&gt; checking for suffix of object files... o<br>&gt;&gt; checking whether we are using the GNU C compiler... yes<br>&gt;&gt; checking whether gcc accepts -g... yes<br>&gt;&gt; checking for gcc option to accept ISO C89... none needed<br>&gt;&gt; checking for style of include used by make... GNU<br>&gt;&gt; checking dependency style of gcc... gcc3<br>&gt;&gt; checking for g++... g++<br>&gt;&gt; checking whether we are using the GNU C++ compiler... yes<br>&gt;&gt; checking whether g++ accepts -g... yes<br>&gt;&gt; checking dependency style of g++... gcc3<br>&gt;&gt; checking for ranlib... ranlib<br>&gt;&gt; checking for protoc... no<br>&gt;&gt; configure: error: cannot find protoc, the Protocol Buffers compiler<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; ./configure --libdir=$HOME/ins_t/lib --includedir=$HOME/ins_t/include<br>&gt;&gt; failed with the same error<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; mosh-users mailing list<br>&gt;&gt; mosh-users@mit.edu<br>&gt;&gt; http://mailman.mit.edu/mailman/listinfo/mosh-users<br>&gt;&gt;<br>&gt; .<br>.<br></div>