Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 如何在自制软件上安装具有调试支持的wget?_Macos_Homebrew_Wget - Fatal编程技术网

Macos 如何在自制软件上安装具有调试支持的wget?

Macos 如何在自制软件上安装具有调试支持的wget?,macos,homebrew,wget,Macos,Homebrew,Wget,wget在自制默认安装中不支持-d。如何在自制软件上安装具有调试支持的wget?谢谢 $ wget -d -o/tmp/log -qO- http://httpbin.org/get Debugging support not compiled in. Ignoring --debug flag. 如果你想用一种不太复杂的方式安装软件包,而不是使用Homebrew,那么不妨试试MacPorts $ sudo port install wget ---> Computing depen

wget
在自制默认安装中不支持
-d
。如何在自制软件上安装具有调试支持的wget?谢谢

$ wget -d -o/tmp/log -qO- http://httpbin.org/get
Debugging support not compiled in. Ignoring --debug flag.

如果你想用一种不太复杂的方式安装软件包,而不是使用
Homebrew
,那么不妨试试
MacPorts

$ sudo port install wget

--->  Computing dependencies for wget
--->  Cleaning wget
--->  Scanning binaries for linking errors
--->  No broken files found.  
完成了

wget版本的MacPorts支持调试标志(
-d
)开箱即用:

$ wget -d -o/tmp/log -qO- http://httpbin.org/get
Setting --output-file (logfile) to /tmp/log
Setting --output-file (logfile) to /tmp/log
Setting --quiet (quiet) to 1
Setting --quiet (quiet) to 1
Setting --output-document (outputdocument) to -
Setting --output-document (outputdocument) to -
{
  "args": {}, 
  "headers": {
    "Accept": "*/*", 
    "Accept-Encoding": "identity", 
    "Connection": "close", 
    "Host": "httpbin.org", 
    "User-Agent": "Wget/1.19.4 (darwin17.3.0)"
  }, 
  "origin": "23.198.166.150", 
  "url": "http://httpbin.org/get"
}

$ wget --version
GNU Wget 1.19.4 built on darwin17.3.0.

仅用于记录:卸载wget后,请使用以下工具安装:

brew install wget --with-debug

来源:

我没有使用MacPorts。它有它自己的一系列问题,这让我在一段时间前远离它。这似乎不再起作用,似乎他们消除了它。