I was trying to install flex bison so i used the command
sudo apt install flex bison
in my mac but it appears the error
The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt.
Please visit http://www.java.com for information on installing Java.
the i insert the command
java -version
to make sure i have java installed and it appears
java version "17.0.1" 2021-10-19 LTS
Java(TM) SE Runtime Environment (build 17.0.1+12-LTS-39)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.1+12-LTS-39, mixed mode, sharing)
so i don´t know what else i can do to try to install flex bison