Hi, You should export protobuf_CFLAGS=-I/home/bigforest/ins_t/include export protobuf_LIBS=-L/home/bigforest/ins_t/lib
(note the -I and -L) Sincerely, -Alex On Fri, Jun 13, 2014 at 1:44 AM, wowmailman <wowmail...@qq.com> wrote: > seems i should add cc manually, since it is remove by email service > provider:( > > 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. > > export protobuf_CFLAGS=/home/bigforest/ins_t/include > export protobuf_LIBS=/home/bigforest/ins_t/lib > ./configure --libdir=$HOME/ins_t/lib --includedir=$HOME/ins_t/include > > failed when run make command > > export protobuf_CFLAGS=/home/bigforest/ins_t/include > export protobuf_LIBS=/home/bigforest/ins_t/lib > ./configure CFLAGS=-I/home/bigforest/ins_t/include > LDFLAGS=-L/home/bigforest/ins_t/lib --prefix=$HOME/ins_t > > /home/bigforest/ins_t/include > > make and failed, error message is as follows: > > make > make all-recursive > make[1]: Entering directory `/home/bigforest/code/mosh' > Making all in src > make[2]: Entering directory `/home/bigforest/code/mosh/src' > Making all in protobufs > make[3]: Entering directory `/home/bigforest/code/mosh/src/protobufs' > make all-am > make[4]: Entering directory `/home/bigforest/code/mosh/src/protobufs' > CXX userinput.pb.o > In file included from userinput.pb.cc:5: > userinput.pb.h:9:42: error: google/protobuf/stubs/common.h: No such file or > directory > userinput.pb.h:12:2: error: #error This file was generated by a newer > version of protoc which is > userinput.pb.h:13:2: error: #error incompatible with your Protocol Buffer > headers. Please update > userinput.pb.h:14:2: error: #error your headers. > userinput.pb.h:22:52: error: google/protobuf/generated_message_util.h: No > such file or directory > userinput.pb.h:23:42: error: google/protobuf/message_lite.h: No such file or > directory > userinput.pb.h:24:44: error: google/protobuf/repeated_field.h: No such file > or directory > userinput.pb.h:25:43: error: google/protobuf/extension_set.h: No such file > or directory > userinput.pb.cc:10:40: error: google/protobuf/stubs/once.h: No such file or > directory > userinput.pb.cc:11:45: error: google/protobuf/io/coded_stream.h: No such > file or directory > userinput.pb.cc:12:50: error: google/protobuf/wire_format_lite_inl.h: No > such file or directory > > > but the files are there, why make command cannot find them: > > [bigforest@host mosh]$ ls src > crypto examples frontend Makefile Makefile.am Makefile.in network > protobufs statesync terminal tests util > [bigforest@host mosh]$ > [bigforest@host mosh]$ > [bigforest@host mosh]$ > [bigforest@host mosh]$ ls /home/bigforest/ins_t/include > google > [bigforest@host mosh]$ ls /home/bigforest/ins_t/include/google > protobuf > [bigforest@host mosh]$ ls > /home/bigforest/ins_t/include/google/protobuf/stubs/ > atomicops.h atomicops_internals_arm_qnx.h > atomicops_internals_macosx.h atomicops_internals_pnacl.h > atomicops_internals_x86_msvc.h once.h template_util.h > atomicops_internals_arm_gcc.h atomicops_internals_atomicword_compat.h > atomicops_internals_mips_gcc.h atomicops_internals_x86_gcc.h common.h > platform_macros.h type_traits.h > > > ------------------ Original ------------------ > From: "Alex Chernyakhovsky";<acher...@mit.edu>; > Send time: Friday, Jun 13, 2014 1:16 PM > To: "wowmailman"<wowmail...@qq.com>; > Cc: "mosh-users"<mosh-users@mit.edu>; > Subject: Re: 回复: [mosh-users] why i failed to build mosh? i have > installedprotobuf, but configure said it cannot find it, why? > > 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