关于 jq 工具请参考 http://blog.csdn.net/u011641885/article/details/45559031
jq 源码下载:
git clone https://github.com/stedolan/jq.git
cd jq autoreconf -i CC=i486-openwrt-linux-gcc ./configure --disable-maintainer-mode --host=mipsel-linux --build=i686-linux --prefix=${PWD}/_install/ make sudo make install
编译完成之后将安装目录下的 执行文件 拷贝到目标主机即可
在执行 autoreconf 时,报了一个错。如下:
configure.ac:14: installing 'config/ar-lib' configure.ac:14: installing 'config/compile' configure.ac:12: installing 'config/install-sh' configure.ac:12: installing 'config/missing' Makefile.am:47: error: Libtool library used but 'LIBTOOL' is undefined Makefile.am:47: The usual way to define 'LIBTOOL' is to add 'LT_INIT' Makefile.am:47: to 'configure.ac' and run 'aclocal' and 'autoconf' again. Makefile.am:47: If 'LT_INIT' is in 'configure.ac', make sure Makefile.am:47: its definition is in aclocal's search path. Makefile.am: installing 'config/depcomp' configure.ac: installing 'config/ylwrap' parallel-tests: installing 'config/test-driver' autoreconf: automake failed with exit status: 1
后来发现是没有安装 libtool
sudo apt-get install libtool
版权声明:本文为博主原创文章,未经博主允许不得转载。
时间: 2024-11-06 03:46:27