brew command and not brew installing or the post-install behaviour of one or more formulae? If it's a formulae-specific problem please file this issue at the relevant tap e.g. for Linuxbrew/homebrew-core https://github.com/Linuxbrew/homebrew-core/issues/newbrew update and retried your prior step?brew doctor, fixed all issues and retried your prior step?brew config and brew doctor and included their output with your issue?I have jdk@8 installed, and the following error appears when I installed ant. I expected that jdk@8 should already satisfy the java requirement. Replacing jdk@8 by jdk will do the job, but what I wanted was java 1.8.
(jupyter)-~$ brew install jdk@8
==> Downloading https://linuxbrew.bintray.com/bottles/[email protected]_64_linux.bottle.tar.gz
Already downloaded: /home/randy3k/.cache/Homebrew/[email protected]_64_linux.bottle.tar.gz
==> Pouring [email protected]_64_linux.bottle.tar.gz
==> Caveats
By installing and using JDK you agree to the
Oracle Binary Code License Agreement for the Java SE Platform Products and JavaFX
http://www.oracle.com/technetwork/java/javase/terms/license/index.html
This formula is keg-only, which means it was not symlinked into /home/linuxbrew/.linuxbrew,
because this is an alternate version of another formula.
If you need to have this software first in your PATH run:
echo 'export PATH="/home/linuxbrew/.linuxbrew/opt/jdk@8/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
LDFLAGS: -L/home/linuxbrew/.linuxbrew/opt/jdk@8/lib
CPPFLAGS: -I/home/linuxbrew/.linuxbrew/opt/jdk@8/include
==> Summary
🍺 /home/linuxbrew/.linuxbrew/Cellar/jdk@8/1.8.0-151: 1,630 files, 369.2MB
(jupyter)-~$ brew install ant
ant: Java 1.8+ is required to install this formula.
JavaRequirement unsatisfied!
You can download from:
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Error: An unsatisfied requirement failed this build.
(jupyter)-~$ brew config
HOMEBREW_VERSION: 1.5.1-2-g8ccb999
ORIGIN: https://github.com/Linuxbrew/brew
HEAD: 8ccb999ac04fa9fcb4df521004be5eeff9fd8ba6
Last commit: 6 days ago
Core tap ORIGIN: https://github.com/Linuxbrew/homebrew-core
Core tap HEAD: 14a6be54eb3688130e80f7091b942b14afd56a78
Core tap last commit: 3 hours ago
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_REPOSITORY: /home/linuxbrew/.linuxbrew/Homebrew
HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar
HOMEBREW_CACHE: /home/randy3k/.cache/Homebrew
HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_REPOSITORY: /home/linuxbrew/.linuxbrew/Homebrew
CPU: 16-core 64-bit 0x1502
Homebrew Ruby: 2.3.3 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.3/bin/ruby
Clang: N/A
Git: 2.7.4 => /usr/bin/git
Curl: 7.58.0 => /home/linuxbrew/.linuxbrew/opt/curl/bin/curl
Perl: /usr/bin/perl
Python: /home/linuxbrew/.linuxbrew/opt/python/libexec/bin/python => /home/linuxbrew/.linuxbrew/Cellar/python/2.7.14_5/bin/python2.7
Ruby: /home/linuxbrew/.linuxbrew/bin/ruby => /home/linuxbrew/.linuxbrew/Cellar/ruby/2.5.0/bin/ruby
Java: N/A
Kernel: Linux 4.4.0-104-generic x86_64 GNU/Linux
OS: Ubuntu 16.04.3 LTS (xenial)
Host glibc: 2.23
/usr/bin/gcc: 5.4.0
glibc: N/A
gcc: 5.5.0_1
xorg: 20170115_1
(jupyter)-~$ 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: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and what additional flags to use when
compiling and linking.
Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew provided
script of the same name. We found the following "config" scripts:
/opt/conda/bin/icu-config
/opt/conda/bin/libpng16-config
/opt/conda/bin/python3.6m-config
/opt/conda/bin/xml2-config
/opt/conda/bin/ncurses5-config
/opt/conda/bin/ncursesw5-config
/opt/conda/bin/libpng-config
/opt/conda/bin/pcre-config
/opt/conda/bin/python3-config
/opt/conda/bin/python3.6-config
/opt/conda/bin/freetype-config
You're timing is impeccable. I just ran into this issue myself 19 minutes ago.
Your reply is also impeccable. You replied in less than 30 seconds 👍
also related to https://github.com/Linuxbrew/brew/issues/509
And this: #594
A work around for now is…
brew uninstall jdk
brew install jdk@8
brew link --force jdk@8
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.