n8felton / homebrew

:beer: The missing package manager for OS X.
http://brew.sh
Other
0 stars 0 forks source link

fail2ban 0.9.1 PYTHONPATH #1

Open n8felton opened 9 years ago

n8felton commented 9 years ago

brew install -vd fail2ban /usr/local/Library/brew.rb (Formulary::FormulaLoader): loading /usr/local/Library/Formula/fail2ban.rb /usr/local/Library/Homebrew/build.rb (Formulary::FromPathLoader): loading /usr/local/Library/Formula/fail2ban.rb ==> Downloading https://github.com/fail2ban/fail2ban/archive/0.9.1.tar.gz Already downloaded: /Library/Caches/Homebrew/fail2ban-0.9.1.tar.gz ==> Verifying fail2ban-0.9.1.tar.gz checksum tar xf /Library/Caches/Homebrew/fail2ban-0.9.1.tar.gz ==> python setup.py install --prefix=/usr/local/Cellar/fail2ban/0.9.1 --install-lib=/usr/local/Cellar/fail2ban/0.9.1/libexec running install Checking .pth file support in /usr/local/Cellar/fail2ban/0.9.1/libexec/ /usr/bin/python -E -c pass TEST FAILED: /usr/local/Cellar/fail2ban/0.9.1/libexec/ does NOT support .pth files error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" files from. The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was:

/usr/local/Cellar/fail2ban/0.9.1/libexec/

and your PYTHONPATH environment variable currently contains:

''

Here are some of your options for correcting the problem:

Please make the appropriate changes for your system and try again. /usr/local/Library/Homebrew/debrew.rb:11:in `raise' BuildError: Failed executing: python setup.py install --prefix=/usr/local/Cellar/fail2ban/0.9.1 --install-lib=/usr/local/Cellar/fail2ban/0.9.1/libexec

  1. raise
  2. ignore
  3. backtrace
  4. irb
  5. shell Choose an action: 1
    ==> Formula Path: /usr/local/Library/Formula/fail2ban.rb ==> Configuration HOMEBREW_VERSION: 0.9.5 ORIGIN: https://github.com/Homebrew/homebrew HEAD: 577c6f9ebc61b16925560a3a7b811ba6a5b23d9e Last commit: 16 minutes ago HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar CPU: 8-core 64-bit ivybridge OS X: 10.10.3-x86_64 Xcode: 6.3.1 CLT: 6.3.1.0.1.1429149539 Clang: 6.1 build 602 X11: 2.7.8_beta3 => /opt/X11 System Ruby: 2.0.0-p481 Perl: /usr/bin/perl Python: /usr/bin/python Ruby: /usr/bin/ruby Java: 1.6.0_65 ==> ENV HOMEBREW_CC: clang HOMEBREW_CXX: clang++ MAKEFLAGS: -j8 CMAKE_PREFIX_PATH: /usr/local CMAKE_INCLUDE_PATH: /usr/include/libxml2:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers CMAKE_LIBRARY_PATH: /System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/usr/local/Library/ENV/pkgconfig/10.10 PATH: /usr/local/Library/ENV/4.3:/usr/bin:/bin:/usr/sbin:/sbin

Error: fail2ban 0.9.1 did not build Logs: /Users/n8felton/Library/Logs/Homebrew/fail2ban/01.python

n8felton commented 9 years ago

Fixed by reading https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md