我从此网站http://ftp.gnu.org/gnu/wget/下载了wget-1.19.tar.gz,然后提取了tar文件并运行
./configure
输出为:
checking for ftello... yes
checking for sigblock... yes
checking for sigsetjmp... yes
checking for memrchr... (cached) no
checking for wcwidth... (cached) yes
checking for mbtowc... yes
checking for sleep... yes
checking for symlink... (cached) yes
checking for utime... yes
checking for strlcpy... yes
checking for random... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPSL... no
checking for library containing psl_builtin... no
configure: WARNING: *** libpsl was not found. Fallback to builtin cookie checking.
checking for ZLIB... yes
checking for GNUTLS... no
configure: error: Package requirements (gnutls) were not met:
No package 'gnutls' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables GNUTLS_CFLAGS
and GNUTLS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
我在网上找到了不同的指南,但没有一个能解决我的问题。 例如,我尝试使用brew安装其他软件包
brew install gnutls
但没有任何效果。 实际上,如果我冲煮安装了gnutls,似乎是正确的,但是如果我输入数字
make
错误是:
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in lib
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
make[4]: Nothing to be done for `all-am'.
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make all-am
CC ftp.o
ftp.c:1466:19: error: no member named 'rpl_unlink' in 'struct options'
if (opt.unlink && file_exists_p (con->target))
~~~ ^
../lib/unistd.h:1851:19: note: expanded from macro 'unlink'
# define unlink rpl_unlink
^
error: error opening '.deps/ftp.Tpo': Permission denied
2 errors generated.
make[3]: *** [ftp.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
有人可以帮助我吗?
我想在Mac上安装wget,因为我必须在此页面http://www.tlc.dii.univpm.it/fb4fd/下载文件夹,并且使用curl
无法以递归方式下载它们。
答案 0 :(得分:3)
有安装wget here的说明。它涉及使用Ruby加载wget,然后运行brew install wget。
从终端运行以下命令:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
然后运行:
brew install wget