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@309223 mosh]$ echo $?
0
------------------ Original ------------------
From: "Anders Kaseorg";<[email protected]>;
Date: Jun 13, 2014
To: "wowmailman"<[email protected]>;
Cc: "mosh-users"<[email protected]>;
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
.
_______________________________________________
mosh-users mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/mosh-users