Hi, Please don't remove mosh-users from the CC list.
As per the output, please set protobuf_CFLAGS and protobuf_LIBS on the command line of configure. Sincerely, -Alex On Fri, Jun 13, 2014 at 1:05 AM, wowmailman <wowmail...@qq.com> wrote: > i have added protoc to the path, now the error message is a bit different, > but it cannot find that protobuf package > > the error message is as follows: > > checking whether __STDC_ISO_10646__ is declared... yes > checking whether IUTF8 is declared... yes > checking for protobuf... no > configure: error: Package requirements (protobuf) were not met: > > No package 'protobuf' found > > Consider adjusting the PKG_CONFIG_PATH environment variable if you > installed software in a non-standard prefix. > > Alternatively, you may set the environment variables protobuf_CFLAGS > and protobuf_LIBS to avoid the need to call pkg-config. > See the pkg-config man page for more details. > [bigforest@host mosh]$ which protoc > ~/ins_t/bin/protoc > [bigforest@host mosh]$ echo $protobuf_CFLAGS > /home/bigforest/ins_t/include > [bigforest@host mosh]$ echo $protobuf_LIBS > /home/bigforest/ins_t/lib > > ./configure --libdir=$HOME/ins_t/lib --includedir=$HOME/ins_t/include > ./configure CFLAGS=-I/home/bigforest/ins_t/include > LDFLAGS=-L/home/bigforest/ins_t/lib --prefix=$HOME/ins_t > both failed > ------------------ 原始邮件 ------------------ > 发件人: "Alex Chernyakhovsky";<acher...@mit.edu>; > 发送时间: 2014年6月13日(星期五) 中午12:51 > 收件人: "wowmailman"<wowmail...@qq.com>; > 抄送: "mosh-users"<mosh-users@mit.edu>; > 主题: Re: [mosh-users] why i failed to build mosh? i have installedprotobuf, > but configure said it cannot find it, why? > > Hi, > > Is there a protoc binary available in your $PATH? > > Sincerely, > -Alex > > > On Fri, Jun 13, 2014 at 12:49 AM, wowmailman <wowmail...@qq.com> wrote: >> i have tried lots of options, and all failed to build mosh. >> the main part of error message is as follows: >> >> ./configure CFLAGS=-I/home/bigforest/ins_t/include >> LDFLAGS=-L/home/bigforest/ins_t/lib --prefix=$HOME/ins_t >> checking for a BSD-compatible install... /usr/bin/install -c >> checking whether build environment is sane... yes >> checking for a thread-safe mkdir -p... /bin/mkdir -p >> checking for gawk... gawk >> checking whether make sets $(MAKE)... yes >> checking for gcc... gcc >> checking for C compiler default output file name... a.out >> checking whether the C compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> checking whether we are using the GNU C compiler... yes >> checking whether gcc accepts -g... yes >> checking for gcc option to accept ISO C89... none needed >> checking for style of include used by make... GNU >> checking dependency style of gcc... gcc3 >> checking for g++... g++ >> checking whether we are using the GNU C++ compiler... yes >> checking whether g++ accepts -g... yes >> checking dependency style of g++... gcc3 >> checking for ranlib... ranlib >> checking for protoc... no >> configure: error: cannot find protoc, the Protocol Buffers compiler >> >> >> ./configure --libdir=$HOME/ins_t/lib --includedir=$HOME/ins_t/include >> failed with the same error >> >> _______________________________________________ >> mosh-users mailing list >> mosh-users@mit.edu >> http://mailman.mit.edu/mailman/listinfo/mosh-users >> > . _______________________________________________ mosh-users mailing list mosh-users@mit.edu http://mailman.mit.edu/mailman/listinfo/mosh-users