denji/homebrew-nginx

Error with WebDav

Closed this issue · 5 comments

$ brew doctor show this error:

Error: Error: WebDav Extended Module not work without webdav support in nginx.
Please use '--with-webdav' with nginx-full.

Reinstall don't help((
$ brew reinstall nginx-full --with-webdav --with-image-filter

$ brew doctor
Error: Error: WebDav Extended Module not work without webdav support in nginx.
Please use '--with-webdav' with nginx-full.

OS X 10.9

The same, OS X Mavericks.

I need the dab-ext module, so a workaround for me is to remove https://github.com/linjunpop/homebrew-nginx/blob/master/dav-ext-nginx-module.rb#L10-L16

then install nginx-full with $ brew install nginx-full --with-webdav --with-dav-ext-module

Sorry for the delay getting back to you. This should now be fixed in this commit 44f2e52. The main issue was changing .without? to .include? and moving that block into the install method.

Let me know if you have any other issues.

I'm getting the same error as the original poster:

==> Installing nginx-full from homebrew/homebrew-nginx
==> Installing dependencies for nginx-full: dav-ext-nginx-module, fancyindex-nginx-module, mp4-h264-nginx-module, upload-nginx-module, upload-pr
==> Installing nginx-full dependency: dav-ext-nginx-module
==> Downloading https://github.com/arut/nginx-dav-ext-module/archive/v0.0.3.tar.gz
Already downloaded: /Library/Caches/Homebrew/dav-ext-nginx-module-0.0.3.tar.gz
Error: Error: WebDav Extended Module not work without webdav support in nginx.
Please use "--with-webdav" with nginx-full.

Event though I'm installing with --with-webdav --with-dav-ext-module
My command line is brew install nginx-full --with-webdav --with-dav-ext-module --devel
and the current formula file is

require "formula"

class DavExtNginxModule < Formula
  # NGINX WebDAV missing commands support (PROPFIND & OPTIONS)
  homepage "https://github.com/arut/nginx-dav-ext-module"
  url "https://github.com/arut/nginx-dav-ext-module/archive/v0.0.3.tar.gz"
  sha1 "80714f9471cb5c8259ecdca9e25eb32f4d581074"
  version "0.0.3"

  def install
    unless build.include? "with-webdav"
      onoe <<-EOS.undent
       Error: WebDav Extended Module not work without webdav support in nginx.
       Please use "--with-webdav" with nginx-full.
      EOS
      exit -1
    end
    (share+"dav-ext-nginx-module").install Dir["*"]
  end
end

This is on OSX 10.10. Any help would be welcome.

Worked. Thanks.