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 fi replace to fi make LDFLAGS=-all-static make install git config --global --unset http.proxy