=?gb18030?B?UmU6ICC72Li0o7ogW21vc2gtdXNlcnNdIHdoeSBp?= =?gb18030?B?IGZhaWxlZCB0byBidWlsZCBtb3NoPyBpIGhhdmUg?= =?gb18030?B?aW5zdGFsbGVkcHJvdG9idWYsIGJ1dCBjb25maWd1?= =?gb18030?B?cmUgc2FpZCBpdCBjYW5ub3QgZmluZCBpdCwgd2h5?= =?gb18030?B?Pw==?=

=?gb18030?B?d293bWFpbG1hbg==?= wowmailman at qq.com
Fri Jun 13 02:31:30 EDT 2014


nice, but something absurd happens, don't know whether it is bug, 
it is the CODESET staff, as this github issue described






now the command i use is 
export protobuf_CFLAGS=-I/home/bigforest/ins_t/include
export protobuf_LIBS=-L/home/bigforest/ins_t/lib
./configure --prefix=$HOME/ins_t



failed with even 1.2.4


make[4]: Entering directory `/home/bigforest/code/mosh/src/protobufs'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/bigforest/code/mosh/src/protobufs'
make[3]: Leaving directory `/home/bigforest/code/mosh/src/protobufs'
Making all in util
make[3]: Entering directory `/home/bigforest/code/mosh/src/util'
  CXX    locale_utils.o
locale_utils.cc: In function ¡®const char* locale_charset()¡¯:
locale_utils.cc:78: error: ¡®CODESET¡¯ was not declared in this scope
locale_utils.cc:78: error: ¡®nl_langinfo¡¯ was not declared in this scope
make[3]: *** [locale_utils.o] Error 1
make[3]: Leaving directory `/home/bigforest/code/mosh/src/util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/bigforest/code/mosh/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/bigforest/code/mosh'
make: *** [all] Error 2
[bigforest at host mosh]$ locate zlib
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory







------------------ Original ------------------
From:  "Alex Chernyakhovsky";<achernya at MIT.EDU>;
Send time: Friday, Jun 13, 2014 1:50 PM
To: "wowmailman"<wowmailman at qq.com>; 
Cc: "Alex Chernyakhovsky"<achernya at mit.edu>; "mosh-users"<mosh-users at mit.edu>; 
Subject:  Re: »Ø¸´£º [mosh-users] why i failed to build mosh? i have installedprotobuf, but configure said it cannot find it, why?



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 <wowmailman at 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 at host mosh]$ ls src
> crypto  examples  frontend  Makefile  Makefile.am  Makefile.in  network
> protobufs  statesync  terminal  tests  util
> [bigforest at host mosh]$
> [bigforest at host mosh]$
> [bigforest at host mosh]$
> [bigforest at host mosh]$ ls /home/bigforest/ins_t/include
> google
> [bigforest at host mosh]$ ls /home/bigforest/ins_t/include/google
> protobuf
> [bigforest at 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";<achernya at MIT.EDU>;
> Send time: Friday, Jun 13, 2014 1:16 PM
> To: "wowmailman"<wowmailman at qq.com>;
> Cc: "mosh-users"<mosh-users at 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 <wowmailman at 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 at host mosh]$ which protoc
>> ~/ins_t/bin/protoc
>> [bigforest at host mosh]$ echo $protobuf_CFLAGS
>> /home/bigforest/ins_t/include
>> [bigforest at 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";<achernya at MIT.EDU>;
>> ·¢ËÍʱ¼ä: 2014Äê6ÔÂ13ÈÕ(ÐÇÆÚÎå) ÖÐÎç12:51
>> ÊÕ¼þÈË: "wowmailman"<wowmailman at qq.com>;
>> ³­ËÍ: "mosh-users"<mosh-users at 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 <wowmailman at 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 at mit.edu
>>> http://mailman.mit.edu/mailman/listinfo/mosh-users
>>>
>> .
> .
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/mosh-users/attachments/20140613/3b7e9d1b/attachment-0001.htm


More information about the mosh-users mailing list