编译 jq git版本

git config --global http.proxy http://127.0.0.1:9777

export     LIBS=' -lpsapi -lws2_32 -lmswsock -lshlwapi -static '
git clone https://github.com/stedolan/jq.git
cd jq
git submodule update --init
autoreconf -fi

./configure --prefix=/usr/local \
--with-oniguruma=builtin \
--disable-maintainer-mode \
--disable-shared \
--enable-static

./configure: line 15971: syntax error near unexpected token `fi'
./configure: line 15971: `fi'

if test "x$ac_cv_lib_m_acos" = xyes; then :

    eval "ac_tr_func=HAVE_`echo acos | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`"
    cat >>confdefs.h <<_ACEOF
#define $ac_tr_func 1
_ACEOF


else  <--- delete this line


fi

else\n\n\nfi replace to fi

make LDFLAGS=-all-static
make install

git config --global --unset http.proxy

 

posted @ 2020-08-22 21:42  1CM  阅读(230)  评论(0编辑  收藏  举报