下载地址:
https://ftp.gnu.org/gnu/wget/wget-1.20.1.tar.gz
wget编译:
tar -vxf wget-1.20.1.tar.gz
cd wget-1.20.1/
mkdir __install
./configure --prefix=$PWD/__install --host=arm-linux CC=aarch64-himix100-linux-gcc --without-ssl --without-zlib
make && make install
编译出的文件:
root@ubuntu:/neo/wget_test/wget-1.20.1/__install# ls
bin etc share
root@ubuntu:/neo/wget_test/wget-1.20.1/__install# file bin/wget
bin/wget: ELF 64-bit LSB executable, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.7.0, not stripped
root@ubuntu:/neo/wget_test/wget-1.20.1/__install#
ps:配置命令的后两个参数要加上,自己就是在这两个报错上耽误了时间。
pss:
如果有找不到动态链接库的报错,注意下是不是在共享目录下编译的。在共享目录下编译是不行的。
参考链接:
https://blog.csdn.net/yqa1027473639/article/details/79083670
https://blog.csdn.net/u011003120/article/details/51444081