I have installed JDK in Mac OS.
I am trying to install Apache2,
sudo apt install apache2
Output :-
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/apt" (-1)
But, executable file is present in /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/
$find /Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home -name java*
/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/java
/Library/Java/JavaVirtualMachines/jdk-10.0.2.jdk/Contents/Home/bin/javac
I have installed JDK in Mac OS.
Well, apt
is not an MacOS command. Wherever you copied those instructions from was for Debian/Ubuntu, not Mac
If you want to install Apache HTTPd on Mac, I'd recommend using Homebrew or Docker. And if using Docker, you don't need Java installed on your Mac
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With