Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Error: undefined method 'mkdir_p' ... #19133

Closed
mholt opened this issue Apr 11, 2013 · 1 comment
Closed

Error: undefined method 'mkdir_p' ... #19133

mholt opened this issue Apr 11, 2013 · 1 comment

Comments

@mholt
Copy link

mholt commented Apr 11, 2013

Doing a routine install of nginx with Homebrew on Mac OS X 10.8 and getting this error:

==> Installing nginx dependency: pcre
==> Downloading ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.32.
######################################################################## 100.0%
######################################################################## 100.0%==> ./configure --prefix=/usr/local/Cellar/pcre/8.32 --enable-utf8 --enable-unic
==> make test
==> make install
  /usr/local/Cellar/pcre/8.32: 135 files, 3.6M, built in 42 seconds
==> Installing nginx
==> Downloading http://nginx.org/download/nginx-1.2.8.tar.gz
######################################################################## 100.0%
==> Patching
patching file conf/nginx.conf
==> ./configure --prefix=/usr/local/Cellar/nginx/1.2.8 --with-http_ssl_module --
==> make
==> make install
Error: undefined method `mkdir_p' for #<Pathname:/usr/local/var>

Please report this bug:
    https://github.com/mxcl/homebrew/wiki/troubleshooting

However, ran "brew doctor" ... and re-installed again, and it magically worked. (Brew doctor showed no output except "raring to brew")

@jacknagel
Copy link
Contributor

It's f5543c3; there is no mkdir_p method on Pathname, should be mkpath.

jacknagel referenced this issue Apr 11, 2013
No shin, screw that. Make nginx use a sensible docroot. All web servers should use this docroot from now on. I suggest the symlink method to making them do this so it is easy for people to change this on a server-by-server basis and have multiple docroots.
@mxcl mxcl closed this as completed in 7b030e8 Apr 12, 2013
ekarulf pushed a commit to ekarulf/homebrew that referenced this issue Apr 15, 2013
I did test this, but then I broke it and didn't test it again.

Also corrects the plist binary location. Since I changed that from sbin to bin.
dshean pushed a commit to dshean/homebrew that referenced this issue Sep 24, 2013
I did test this, but then I broke it and didn't test it again.

Also corrects the plist binary location. Since I changed that from sbin to bin.
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants