您的位置:首页 > 其它

移植 jq

2015-08-31 10:58 253 查看
关于 jq 工具请参考 /article/10904710.html

jq 源码下载:

git clone https://github.com/stedolan/jq.git[/code] 
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: