Install error: The GeoIP module requires the GeoIP library.
Indicate troubleshooting steps taken
- [x] Ran
brew updateand retried your prior step? - [x] Ran
brew doctor, fixed as many issues as possible and retried your prior step? - [x] Checked that a similar issue hasn't already been filed?
- [ ] Looked up the software bug tracker if reporting a build error?
- [ ] If you're seeing permission errors tried running
sudo chown -R $(whoami) $(brew --prefix)?
Bug reports / build errors:
When running brew install openresty/brew/openresty I'm getting the following error:
./configure: error: the GeoIP module requires the GeoIP library.
You can either do not enable the module or install the library.
ERROR: failed to run command: sh ./configure --prefix=/opt/homebrew/Cellar/openresty/1.27.1.1_2/nginx \...
Brief summary of issue:
The complete command that you issued:
brew install openresty/brew/openresty
Gist with output of brew doctor:
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
[email protected]
Link output by brew gist-logs <formula>:
Output of brew config:
HOMEBREW_VERSION: 4.4.8
ORIGIN: https://github.com/Homebrew/brew
HEAD: e78a0adb4f260913fffdc956cc8c20fb54109feb
Last commit: 3 days ago
Branch: stable
Core tap JSON: 28 Nov 13:31 UTC
Core cask tap JSON: 28 Nov 13:31 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.1.1-arm64
CLT: 16.0.0.0.1.1724870825
Xcode: N/A
Rosetta 2: false
Formula Requests:
The quickest way to get a new formula into Homebrew is to file a Pull Request.
We will consider your request but it may be closed if it's something we're not actively planning to work on.
Installing the (deprecated) geoip package fixed this error for me.
geoip has been disabled, making this issue even more annoying.
Still no solution?
Installing the (deprecated) geoip package fixed this error for me.
Unfortunately, there is no way to install the geoip package
brew install geoip --force
Can solve the current problem
Thanks @ymsun , this will worked for me
@ymsun works for me! Thanks you!
Alright so, we just need to install a deprecated irrelevant unsafe package to use openresty now?
./configure: error: the GeoIP module requires the GeoIP library.
You can either do not enable the module or install the library.
Can we disable it ???
thank @ymsun works for me
I haven't tested every feature, but this works!
❯ brew install openresty/brew/openresty --without-geoip
==> Fetching downloads for: openresty
✔︎ Formula openresty (1.27.1.2) [Verifying 6.1MB/ 6.1MB]
==> Installing openresty from openresty/brew
==> ./configure -j14 --pid-path=/opt/homebrew/var/run/openresty.pid --lock-path=
==> make
==> make install
==> Caveats
You can find the configuration files for openresty under /opt/homebrew/etc/openresty/.
To start openresty/brew/openresty now and restart at startup:
sudo brew services start openresty/brew/openresty
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/openresty/bin/openresty -g daemon\ off\;
==> Summary
🍺 /opt/homebrew/Cellar/openresty/1.27.1.2_1: 326 files, 8.0MB, built in 40 seconds
==> Running `brew cleanup openresty`...
Disable this behaviour by setting `HOMEBREW_NO_INSTALL_CLEANUP=1`.
Hide these hints with `HOMEBREW_NO_ENV_HINTS=1` (see `man brew`).
Removing: /Users/user/Library/Caches/Homebrew/openresty--1.27.1.2.tar.gz... (6MB)
❯ openresty -v
nginx version: openresty/1.27.1.2
❯ openresty -t
nginx: the configuration file /opt/homebrew/etc/openresty/nginx.conf syntax is ok
nginx: configuration file /opt/homebrew/etc/openresty/nginx.conf test is successful