Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/local/bin/apachectl: line 95: lynx: command not found #170930

Open
3 tasks done
nbro opened this issue May 6, 2024 · 0 comments
Open
3 tasks done

/usr/local/bin/apachectl: line 95: lynx: command not found #170930

nbro opened this issue May 6, 2024 · 0 comments
Labels
bug Reproducible Homebrew/homebrew-core bug

Comments

@nbro
Copy link

nbro commented May 6, 2024

brew doctor output

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: You have the following deprecated, cask taps tapped:
  caskroom/cask
Untap them with `brew untap`.

Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  openssl@1.1
  python@3.8

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  glib
  numpy
  kubernetes-cli
  gnupg

Warning: You have an unnecessary local Cask tap.
This can cause problems installing up-to-date casks.
Please remove it by running:
  brew untap homebrew/cask

Warning: You have an unnecessary local Core tap!
This can cause problems installing up-to-date formulae.
Please remove it by running:
 brew untap homebrew/core

Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting your PATH for example like so:
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc

Warning: Your Xcode (13.4.1) is outdated.
Please update to Xcode 14.2 (or delete it).
Xcode can be updated from the App Store.

Verification

  • My "brew doctor output" above says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update twice and am still able to reproduce my issue.
  • This issue's title and/or description do not reference a single formula e.g. brew install wget. If they do, open an issue at https://github.com/Homebrew/homebrew-core/issues/new/choose instead.

brew config output

HOMEBREW_VERSION: 4.2.20
ORIGIN: https://github.com/Homebrew/brew
HEAD: c2ed3327c605c3e738359c9807b8f4cd6fec09eb
Last commit: 7 days ago
Core tap HEAD: d6500a8912b02f838d9edf36263f6487fb8af34d
Core tap last commit: 41 minutes ago
Core tap JSON: 06 May 12:13 UTC
Core cask tap HEAD: 8f1cdf8d25c0f626b622362cedaf76c4c428c6f5
Core cask tap last commit: 32 minutes ago
Core cask tap JSON: 06 May 12:13 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.1.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit haswell
Clang: 13.1.6 build 1316
Git: 2.32.1 => /Applications/Xcode.app/Contents/Developer/usr/bin/git
Curl: 8.4.0 => /usr/bin/curl
macOS: 12.7.4-x86_64
CLT: 14.2.0.0.1.1668646533
Xcode: 13.4.1

What were you trying to do (and why)?

I was just trying to call apachectl status (or with sudo) and I get the error

/usr/local/bin/apachectl: line 95: lynx: command not found

The following command does not return anything, so this dependency, which seems to be needed, was not installed when I installed httpd, so I think this is a bug

brew list | grep lynx

My MacOS (Monterey) already comes with an apache server, but I didn't want to use this one, so I installed it with brew too. Now, it seems that apachectl is automatically referring to the brew's httpd, because of the order of the exported paths (I suppose). Anyway, I don't know if this has anything to do with the issue.

I saw this discussion https://github.com/orgs/Homebrew/discussions/2960, but I still don't get why after 2 years this has not yet been solved and what the official solution is and why. If I do brew reinstall $(brew deps httpd) httpd , it does not solve the issue, because, indeed, lynx will not appear in brew deps httpd

Doing brew install lynx does seem to solve this specific issue, but then shouldn't the httpd formula depend on lynx and so automatically install it, if it uses it?

What happened (include all command output)?

/usr/local/bin/apachectl: line 95: lynx: command not found

What did you expect to happen?

No error

Step-by-step reproduction instructions (by running brew commands)

  1. brew install httpd php
  2. apachectl status
@nbro nbro added the bug Reproducible Homebrew/homebrew-core bug label May 6, 2024
@carlocab carlocab transferred this issue from Homebrew/brew May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reproducible Homebrew/homebrew-core bug
Projects
None yet
Development

No branches or pull requests

1 participant