Posted by & filed under CentOS.

日課と化してるgit pull後のmakeでエラー…
transportfragment.cc:20:44: error: google/protobuf/io/gzip_stream.h: No such file or directory

+#include <google/protobuf/io/gzip_stream.h>

[Use protobuf’s Gzip{Input,Output}Stream wrapper around zlib]

これっぽいのでprotobufを入れ直す。
% yum list installed | grep protobuf

protobuf.x86_64        2.3.0-7.el6      @epel
protobuf-compiler.x86_64
protobuf-devel.x86_64  2.3.0-7.el6      @epel

% yum remove protobuf\*
% wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2
protobuf-2.4.1% ./configure –with-PACKAGE=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.

mosh% PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

% cat /etc/ld.so.conf.d/ull.conf

/usr/local/lib

% ldconfig

Popularity: 3%

Posted by & filed under CentOS, OS X.

今更だけどcommitされてた。これかなりハードル下がった気が。

LC_ALL= でもおっけ < OS X 10.8.0
どんどん良くなるし、あのsaurikもいるのでiOS版も近いか…

Popularity: 2%

Posted by & filed under OS X.

何気にpullしたら動く様になってた。

Darwin bar.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

% mosh foo

setlocale: No such file or directory
setlocale: Illegal seek
mosh-server needs a UTF-8 native locale to run.

Unfortunately, the locale environment variables currently specify
the character set "US-ASCII (ANSI_X3.4-1968)".

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: LC_ALL?????????????????????: ??????????????????????
LANG=ja_JP.UTF-8
LC_CTYPE=UTF-8
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=
Connection to XXX.XXX.XXX.XXX closed.
/opt/local/bin/mosh: Did not find mosh server startup message.

% LC_ALL=ja_JP.UTF-8 mosh foo でおけ。

Popularity: 4%

Posted by & filed under OS X.

Darwin foo.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

% MOSH_KEY=key mosh-client remote-IP remote-PORT
なら繋がるのに
% mosh remote-IP
だと

setlocale: No such file or directory
Connection to remote-IP closed.
/opt/local/bin/mosh: Did not find mosh server startup message.

% locale

LANG="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_CTYPE="UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_ALL=

% LC_ALL=ja_JP.UTF-8 mosh remote-IP
yep!

ん?こっちは駄目だ…

Darwin bar.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

% locale

LANG="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_CTYPE="UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_ALL=

% LC_ALL=ja_JP.UTF-8 mosh remote-IP

mosh requires a UTF-8 locale.
Connection to remote-IP closed.
/opt/local/bin/mosh: Did not find mosh server startup message.

sigh…

 CentOS release 6.2 (Final)

% locale

LANG=ja_JP.UTF-8
LC_CTYPE="ja_JP.UTF-8"
LC_NUMERIC="ja_JP.UTF-8"
LC_TIME="ja_JP.UTF-8"
LC_COLLATE="ja_JP.UTF-8"
LC_MONETARY="ja_JP.UTF-8"
LC_MESSAGES="ja_JP.UTF-8"
LC_PAPER="ja_JP.UTF-8"
LC_NAME="ja_JP.UTF-8"
LC_ADDRESS="ja_JP.UTF-8"
LC_TELEPHONE="ja_JP.UTF-8"
LC_MEASUREMENT="ja_JP.UTF-8"
LC_IDENTIFICATION="ja_JP.UTF-8"
LC_ALL=

こっちは無問題なんだが…

Popularity: 5%