[mosh-users] Fw:Re: why i failed to build mosh? i haveinstalledprotobuf, but configure said it cannot find it, why?

=?gb18030?B?d293bWFpbG1hbg==?= wowmailman at qq.com
Sat Jun 21 09:08:41 EDT 2014


do i succeed to start mosh server? seems i cannot connect to my remote vps using mobaxterm


Server Side:
 ~/ins_t/bin/mosh-server 


MOSH CONNECT 60001 10/TPxxxxxxxxxxxx7Fw


mosh-server (mosh 1.2.4)
Copyright 2012 Keith Winstein <mosh-devel at mit.edu>
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


[mosh-server detached, pid = 26278]
[wow at home mosh2]$ pgrep mosh
[wow at home mosh2]$ pgrep mosh -lf


Client Side:


SSH Connection: a.a.a.a 52165 x.x.x.x 22
bash: mosh-server: command not found
X11 forwarding request failed on channel 0
Connection to vps.iyanwu.com closed.


©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤©¤


Session stopped
    - Press <return> to exit tab
    - Press r to restart session
    - Press s to save terminal output to file





------------------ Original ------------------
From:  "wowmailman";<wowmailman at qq.com>;
Date:  Jun 13, 2014
To:  "Anders Kaseorg"<andersk at MIT.EDU>; 
Cc:  "mosh-users"<mosh-users at mit.edu>; 
Subject:  Re: [mosh-users] why i failed to build mosh? i haveinstalledprotobuf,but configure said it cannot find it, why?



seems i succeed, thank you


autotools is rather tricky sometimes, haha


export PKG_CONFIG_PATH=/home/bigforest/ins_t/lib/pkgconfig
./configure CFLAGS=-I/home/bigforest/ins_t/include LDFLAGS=-L/home/bigforest/ins_t/lib --prefix=$HOME/ins_t


make then ...


make[2]: Leaving directory `/home/bigforest/code/mosh/man'
Making all in conf
make[2]: Entering directory `/home/bigforest/code/mosh/conf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/bigforest/code/mosh/conf'
make[2]: Entering directory `/home/bigforest/code/mosh'
make[2]: Leaving directory `/home/bigforest/code/mosh'
make[1]: Leaving directory `/home/bigforest/code/mosh'
[bigforest at 309223 mosh]$ echo $?
0





------------------ Original ------------------
From:  "Anders Kaseorg";<andersk at MIT.EDU>;
Date:  Jun 13, 2014
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 haveinstalledprotobuf,but configure said it cannot find it, why?



On Fri, 13 Jun 2014, wowmailman wrote:
> make clean
> export protobuf_CFLAGS=-I/home/bigforest/ins_t/include
> export protobuf_LIBS=-L/home/bigforest/ins_t/lib
> export PKG_CONFIG_PATH=/home/bigforest/ins_t/lib/pkgconfig
> ./configure --prefix=$HOME/ins_t
> make

Can you try again without protobuf_CFLAGS and protobuf_LIBS (unset them if 
necessary), keeping only PKG_CONFIG_PATH?  protobuf_CFLAGS and 
protobuf_LIBS are preventing the linker from seeing the needed -l flags.

Anders
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/mosh-users/attachments/20140621/d86ec97f/attachment.htm


More information about the mosh-users mailing list