<div>seems i succeed, thank you</div><div><br></div><div>autotools is rather tricky sometimes, haha</div><div><br></div><div><div>export PKG_CONFIG_PATH=/home/bigforest/ins_t/lib/pkgconfig</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>make then ...</div><div><br></div><div>make[2]: Leaving directory `/home/bigforest/code/mosh/man'</div><div>Making all in conf</div><div>make[2]: Entering directory `/home/bigforest/code/mosh/conf'</div><div>make[2]: Nothing to be done for `all'.</div><div>make[2]: Leaving directory `/home/bigforest/code/mosh/conf'</div><div>make[2]: Entering directory `/home/bigforest/code/mosh'</div><div>make[2]: Leaving directory `/home/bigforest/code/mosh'</div><div>make[1]: Leaving directory `/home/bigforest/code/mosh'</div><div>[bigforest@309223 mosh]$ echo $?</div><div>0</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;"Anders Kaseorg";&lt;andersk@MIT.EDU&gt;;</div><div><b>Date: </b>&nbsp;Jun 13, 2014</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 haveinstalledprotobuf,but configure said it cannot find it, why?</div></div><div><br></div>On Fri, 13 Jun 2014, wowmailman wrote:<br>&gt; make clean<br>&gt; export protobuf_CFLAGS=-I/home/bigforest/ins_t/include<br>&gt; export protobuf_LIBS=-L/home/bigforest/ins_t/lib<br>&gt; export PKG_CONFIG_PATH=/home/bigforest/ins_t/lib/pkgconfig<br>&gt; ./configure --prefix=$HOME/ins_t<br>&gt; make<br><br>Can you try again without protobuf_CFLAGS and protobuf_LIBS (unset them if <br>necessary), keeping only PKG_CONFIG_PATH?&nbsp; protobuf_CFLAGS and <br>protobuf_LIBS are preventing the linker from seeing the needed -l flags.<br><br>Anders<br>.<br></div>