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