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

wowmailman wowmailman at qq.com
Fri Jun 13 05:31:06 EDT 2014


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/20140613/67a89f83/attachment-0001.htm


More information about the mosh-users mailing list